:root {
  --navy: #0f2a4a;
  --navy-2: #173b64;
  --amber: #f5a524;
  --amber-dark: #c77f00;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #1c2733;
  --muted: #5b6878;
  --border: #dde3ea;
  --card: #ffffff;
  --code-bg: #0f2a4a;
  --code-text: #e6edf5;
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1522;
    --bg-alt: #101d2e;
    --text: #e3e9f0;
    --muted: #9aa8b8;
    --border: #22344b;
    --card: #12223a;
    --code-bg: #07101b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: inherit; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: 0.05em 0.35em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46rem; }
.note { color: var(--muted); font-size: 0.9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand b { color: var(--amber); }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-icon svg { width: 20px; height: 20px; display: block; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 0.8rem; font-weight: 600; }
.lang-switch > * { padding: 2px 10px; }
.lang-switch [aria-current] { background: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .nav > a:not(.nav-icon) { display: none; }
}

/* buttons */
.btn { display: inline-block; padding: 0.7em 1.3em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform 0.1s, background 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a1300; }
.btn-primary:hover { background: #ffb53d; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--border); }
.btn-outline:hover { border-color: var(--amber); }
.btn-large { font-size: 1.15rem; }

/* hero */
.hero { background: radial-gradient(circle at 80% 20%, var(--navy-2), var(--navy) 60%); color: #fff; padding: 88px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.2em 0 0.4em; max-width: 16ch; }
.hero .lead { color: #c9d6e6; }
.eyebrow { color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-links a { display: inline-flex; align-items: center; gap: 8px; color: #c9d6e6; text-decoration: none; }
.hero-links a:hover { color: #fff; }
.hero-links svg { width: 18px; height: 18px; }
.hero-logo { width: 240px; height: 240px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); border-radius: 52px; outline: 1px solid rgba(255, 255, 255, 0.12); }
@media (max-width: 760px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
}

/* sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.grid { display: grid; gap: 20px; margin-top: 32px; }
.features { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--amber); }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* install */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; margin-top: 32px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.code { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font: 0.85rem var(--mono); color: #9fb3c8; }
.copy { background: none; border: 1px solid rgba(255, 255, 255, 0.25); color: #e6edf5; border-radius: 6px; padding: 2px 10px; cursor: pointer; font: inherit; }
.copy:hover { border-color: var(--amber); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; }
.links-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; overflow: hidden; }
.link-card:hover { border-color: var(--amber); }
.link-card code { overflow-wrap: anywhere; }
.link-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) {
  .install, .links-row { grid-template-columns: 1fr; }
}

/* pricing */
.period { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-top: 16px; background: var(--card); }
.period button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.period button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.period small { color: var(--amber); font-weight: 600; }
.plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.plan-featured { border: 2px solid var(--amber); box-shadow: 0 16px 40px rgba(15, 42, 74, 0.15); }
.badge { position: absolute; top: -12px; left: 22px; background: var(--amber); color: #1a1300; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan-text { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.plan-price { margin: 0 0 16px; color: var(--muted); }
.plan-price strong { font-size: 1.8rem; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.95rem; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--amber-dark); }
.plan .btn { text-align: center; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* contact, legal, footer */
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }

/* enquiry dialog */
button.btn { font: inherit; font-weight: 600; cursor: pointer; background-color: transparent; color: inherit; }
button.btn-primary { background: var(--amber); color: #1a1300; }
.ask { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.ask::backdrop { background: rgba(8, 20, 36, 0.6); }
.ask h2 { font-size: 1.4rem; }
.ask-close-form { position: absolute; top: 10px; right: 12px; }
.ask-close { border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ask-form { display: flex; flex-direction: column; gap: 14px; }
.ask-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.ask-form input, .ask-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); resize: vertical; }
.ask-form input:focus, .ask-form textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }
.ask-form .note, .ask-form h2 { margin: 0; }
.ask .hp { position: absolute; left: -9999px; }
.ask-result p { margin-top: 0; }
.ask [hidden] { display: none; }
