:root {
  --bg: #001050;
  --bg-soft: #001544;
  --surface: #ffffff;
  --surface-alt: #f4f8ff;
  --text: #0a1a3a;
  --text-soft: #4a5b7d;
  --muted: #64748b;
  --brand: #0074c8;
  --brand-2: #00c8f8;
  --brand-ink: #0068b8;
  --navy: #001050;
  --navy-2: #00307a;
  --line: #dfe7f5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -25px rgba(0, 48, 122, 0.35);
  --container: clamp(1120px, 80vw, 1440px);
  --font-head: "Quicksand", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: clamp(84px, 4.4vw + 16px, 96px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: var(--font-head); line-height: 1.15; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-2), var(--brand));
  color: #fff; font-weight: 600; font-family: var(--font-body);
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 25px -12px rgba(0, 116, 200, .65);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 30px -12px rgba(0, 116, 200, .75); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--brand-ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand); background: rgba(0, 116, 200, .06); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 600; color: var(--brand-ink); margin: 0 0 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: clamp(68px, 4.4vw, 78px); }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo strong { color: var(--brand); }
.logo-mark { width: clamp(38px, 2.4vw, 44px); height: auto; display: block; flex: none; }
.logo-word { height: clamp(28px, 1.8vw, 33px); width: auto; display: block; }
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(28px, 1.8vw, 38px); list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--text-soft); font-weight: 500; }
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.nav-menu a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero {
  background: radial-gradient(1200px 520px at 82% -12%, rgba(0, 200, 248, .16), transparent 62%),
              radial-gradient(900px 420px at -5% 5%, rgba(0, 116, 200, .14), transparent 58%),
              var(--surface);
  padding: clamp(72px, 5vw, 104px) 0 clamp(84px, 6vw, 126px);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 3.6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 4.1rem); margin: 0 0 18px; font-weight: 700; letter-spacing: -.02em; }
.lede { font-size: clamp(1.15rem, .95rem + .25vw, 1.32rem); color: var(--text-soft); margin: 0 0 28px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-soft); font-size: .95rem; font-weight: 500; }

/* Browser mock */
.browser-mock {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: rotate(1.2deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d7dcec; }
.browser-bar > span:nth-child(1) { background: #ff6058; }
.browser-bar > span:nth-child(2) { background: #ffbd2e; }
.browser-bar > span:nth-child(3) { background: #29c93f; }
.browser-url { margin-left: 12px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: .8rem; color: var(--muted); }
.browser-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { height: clamp(90px, 5.6vw, 118px); border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--brand) 55%, var(--brand-2)); }
.mock-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mock-row div { height: 54px; border-radius: 10px; background: var(--surface-alt); }
.mock-line { height: 12px; border-radius: 6px; background: var(--surface-alt); }
.mock-line.short { width: 60%; }
.mock-btn { height: 34px; width: 130px; border-radius: 999px; background: linear-gradient(135deg, var(--navy-2), var(--brand)); }

/* Trust */
.trust { padding: 40px 0 8px; }
.trust-label { text-align: center; color: var(--muted); font-size: .95rem; margin: 0 0 28px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 22px 12px; background: var(--surface-alt); border-radius: var(--radius); }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2rem, 1.5rem + .7vw, 2.45rem); font-weight: 700; color: var(--navy); }
.stat-label { color: var(--text-soft); font-size: .92rem; }

/* Sections */
.section { padding: clamp(84px, 5.6vw, 118px) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: clamp(720px, 46vw, 860px); margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.75rem); margin: 0 0 14px; letter-spacing: -.02em; }
.section-sub { color: var(--text-soft); font-size: 1.08rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-soft); }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb { height: clamp(170px, 11vw, 210px); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.project-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.project-body { padding: 22px 24px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); background: rgba(0, 116, 200, .1); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.project h3 { margin: 0 0 8px; font-size: 1.2rem; }
.project p { margin: 0; color: var(--text-soft); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-2), var(--brand)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--text-soft); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.plan-featured { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--navy-2), var(--brand)); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0 0 6px; font-size: 1.35rem; }
.plan-price { margin: 0 0 20px; color: var(--text-soft); }
.plan-price strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); }
.plan-features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.plan-features li { padding-left: 28px; position: relative; color: var(--text-soft); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Testimonial */
.testimonial-section { padding-top: 20px; }
.testimonial { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0 0 18px; font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 2.05rem); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.testimonial figcaption { color: var(--text-soft); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.75rem); margin: 0 0 14px; }
.contact-copy p { color: var(--text-soft); font-size: 1.08rem; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 6px 12px; font-weight: 500; flex-wrap: wrap; }
@media (max-width: 420px) { .contact-list li { gap: 2px 10px; } .contact-note { flex-basis: 100%; padding-left: 30px; } }
.contact-note { color: var(--muted); font-size: .88rem; font-weight: 500; }
.contact-off { color: var(--muted); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: var(--surface-alt); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin: 14px 0 0; text-align: center; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #0f7a52; }
.form-note.err { color: #c23b3b; }

/* Footer */
.site-footer { position: relative; background: var(--navy); color: #c7d3ea; padding: 54px 0 34px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy-2), var(--brand), var(--brand-2)); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.logo-light { color: #fff; }
.logo-light strong { color: #cfe2ff; }
.footer-brand p { color: #8fa3c4; margin: 14px 0 0; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-nav a { color: #c7d3ea; font-weight: 500; }
.footer-nav a:hover { color: #8fe2ff; }
.footer-copy { grid-column: 1 / -1; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa3c4; font-size: .9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 460px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .cards, .portfolio, .steps, .pricing { grid-template-columns: repeat(2,1fr); }
  .plan-featured { transform: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: clamp(68px, 4.4vw, 78px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 6px 0; }
  .nav-menu a.btn { margin-top: 8px; text-align: center; }
  .cards, .portfolio, .steps, .pricing { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .logo-mark { width: 33px; }
  .logo-word { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
