/* =========================================================
   Geom Technology LLC - Landing page styles
   ========================================================= */

:root {
  --navy-900: #0b1630;
  --navy-800: #101f45;
  --navy-700: #16295a;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --teal: #2B57D6;
  --teal-dark: #13309A;
  --gold: #8FB0FF;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 22, 48, .10);
  --shadow-lg: 0 30px 60px rgba(11, 22, 48, .18);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

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

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1.2; font-family: var(--font-body);
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(43, 87, 214, .40); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-sm { padding: 10px 18px; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 48, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none !important; }
.brand img { height: 40px; width: auto; display: block; }
.site-footer .brand img { height: 36px; }
.brand-mark { flex: none; }
.brand-accent { color: var(--teal); }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover { color: var(--white); text-decoration: none; }
.primary-nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; padding: 90px 0 100px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(43,87,214,.35), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(143,176,255,.14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.gradient-text { background: linear-gradient(90deg, #4F7BF0 0%, #8FB0FF 55%, #d6e2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: rgba(255,255,255,.78); }
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(79,123,240,.25); }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.hero .eyebrow { color: var(--gold); }

/* Hero visual: invoice card */
.hero-visual { display: flex; justify-content: center; }
.invoice-card {
  width: 100%; max-width: 400px; background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-lg); transform: rotate(-2deg);
  position: relative;
}
.invoice-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: -1;
  background: linear-gradient(135deg, var(--teal), var(--gold)); transform: rotate(4deg) scale(.98); opacity: .55; filter: blur(2px);
}
.invoice-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.inv-tag { font-family: var(--font-head); font-weight: 800; letter-spacing: .1em; font-size: .8rem; color: var(--navy-800); }
.inv-status { font-size: .74rem; font-weight: 700; color: #047857; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; }
.inv-status::before { content: "\2713\00a0"; }
.inv-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 6px 0; color: var(--muted); }
.inv-row strong { color: var(--ink); font-weight: 600; }
.inv-row.total { font-size: 1rem; padding-top: 10px; }
.inv-row.total strong { color: var(--navy-800); font-weight: 800; }
.inv-divider { border-top: 1px dashed var(--line); margin: 10px 0; }
.inv-flow { display: flex; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .74rem; font-weight: 700; }
.inv-flow .node { background: var(--bg-alt); padding: 5px 10px; border-radius: 6px; color: var(--ink-2); }
.inv-flow .node.fta { margin-left: auto; background: var(--navy-800); color: var(--white); }
.inv-flow .arrow { flex: 1; height: 2px; background: linear-gradient(90deg, var(--teal), var(--gold)); position: relative; max-width: 30px; }
.inv-flow .arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: var(--gold); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-800); color: var(--white); border-top: 1px solid rgba(255,255,255,.06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); margin-bottom: 4px; }
.stat span { font-size: .88rem; color: rgba(255,255,255,.72); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card.compact { padding: 24px 22px; }
.card.compact h3 { font-size: 1.05rem; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, rgba(43,87,214,.12), rgba(143,176,255,.22)); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.split-copy p { color: var(--ink-2); font-size: 1.05rem; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { padding: 10px 0 10px 34px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center;
  font-weight: 600; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow);
}
.feature:nth-child(even) { transform: translateY(18px); }
.f-icon { display: block; font-size: 1.9rem; color: var(--teal-dark); margin-bottom: 10px; line-height: 1; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: .5; }
.step { position: relative; padding-top: 70px; }
.step-num {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tl-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; overflow: hidden; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.tl-item.done::before { background: var(--teal); }
.tl-item.current::before { background: var(--gold); }
.tl-item.current { box-shadow: var(--shadow); border-color: rgba(79,123,240,.55); }
.tl-date { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tl-item.current .tl-date { color: #2B57D6; }
.tl-item.current .tl-date::after { content: " \00b7 Now"; }
.tl-item h3 { font-size: 1.05rem; }
.tl-item p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 30px 18px 0; list-style: none; position: relative; font-family: var(--font-head); font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Contact */
.section.contact { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--white); }
.section.contact h2, .section.contact .split-copy p { color: var(--white); }
.section.contact .split-copy p { color: rgba(255,255,255,.8); }
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { padding: 8px 0; color: rgba(255,255,255,.85); }
.contact-list a { color: var(--gold); font-weight: 600; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
label span { color: #dc2626; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); font: inherit; font-size: .96rem;
  background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79,123,240,.25); }
textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: .78rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .94rem; font-weight: 500; }
.alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.field.invalid input { border-color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 60px 0 28px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 380px; font-size: .94rem; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; font-size: .94rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--white); }
.social { display: flex; gap: 16px; margin-top: 10px; }
.social a { font-weight: 600; color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-note { max-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .steps::before { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; }
  .invoice-card { transform: none; }
  .split-visual { order: 2; }
  .cards.three { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-900);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .primary-nav .btn { margin-top: 14px; border-bottom: 0; }
}
@media (max-width: 560px) {
  .cards.four, .timeline, .steps, .feature-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) { transform: none; }
  .form-card { padding: 26px 20px; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
