/* Ordanta marketing site. Plain CSS, no framework. Brand tokens mirror the app
   (client/src/index.css): navy #0f2744 and the amber from the logo mark. */

:root {
  --navy: #0f2744;
  --navy-dark: #091c33;
  --navy-900: #050f1d;
  --navy-50: #e8eef6;
  --navy-100: #c5d4e8;
  --amber: #f2b233;
  --amber-dark: #d97706;
  --amber-50: #fff8e6;
  --ink: #0b1220;
  --body: #34435a;
  --muted: #5f6f86;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 12px 32px -16px rgba(11, 18, 32, 0.25);
  --max: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
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: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.9rem;
}
.container { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--amber); color: var(--navy-900);
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm); font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.78rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: 0.97rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: #f7c04f; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy-100); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 39, 68, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--white); }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.78); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
.nav .signin { color: var(--white); font-weight: 600; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--navy-900); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  border-radius: 8px; width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(242,178,51,0.20), transparent 60%),
    radial-gradient(700px 400px at -10% 100%, rgba(26,58,95,0.9), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: rgba(255,255,255,0.78); font-size: 1.18rem; max-width: 34rem; }
.hero .eyebrow { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.4rem; }
.hero-note { font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.hero-visual { position: relative; }
.hero-visual img, .hero-visual svg { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }

/* Value strip */
.strip { border-bottom: 1px solid var(--line); }
.strip .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2.2rem 0; }
.strip h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.strip p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.strip .item { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; }
.strip .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--amber-50); color: var(--amber-dark); display: grid; place-items: center; }
.strip .icon svg { width: 22px; height: 22px; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--navy-50); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card ul { margin: 0.8rem 0 0; padding-left: 0; list-style: none; color: var(--body); font-size: 0.95rem; }
.card ul li { padding: 0.28rem 0 0.28rem 1.4rem; position: relative; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72rem; width: 0.55rem; height: 0.55rem;
  border-radius: 2px; background: var(--amber); transform: rotate(45deg);
}
.card .modules { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.chip {
  display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: var(--navy-50); border-radius: 999px; padding: 0.22rem 0.65rem;
}

/* Feature rows (alternating) */
.feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-copy ul { padding-left: 0; list-style: none; margin: 1.2rem 0 0; }
.feature-copy li { position: relative; padding: 0.35rem 0 0.35rem 1.8rem; color: var(--body); }
.feature-copy li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.72rem; width: 0.7rem; height: 0.7rem;
  border-radius: 3px; background: var(--amber); transform: rotate(45deg);
}
.feature-art { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.feature-art svg, .feature-art img { width: 100%; height: auto; }
.feature-art img { border-radius: 8px; box-shadow: 0 10px 30px -14px rgba(11,18,32,0.35); border: 1px solid var(--line); }

/* Flow diagram */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; align-items: stretch; }
.flow .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1rem; position: relative; }
.flow .step .n { font-size: 0.75rem; font-weight: 700; color: var(--amber-dark); letter-spacing: 0.08em; text-transform: uppercase; }
.flow .step h3 { font-size: 1rem; margin: 0.3rem 0 0.3rem; }
.flow .step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Security band */
.band { background: var(--navy); color: var(--white); }
.band h2, .band h3 { color: var(--white); }
.band .lead { color: rgba(255,255,255,0.72); }
.band .eyebrow { color: var(--amber); }
.band .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); box-shadow: none; }
.band .card p { color: rgba(255,255,255,0.7); }
.band .card .icon { background: rgba(242,178,51,0.14); color: var(--amber); }
.band .card ul { color: rgba(255,255,255,0.82); }

/* CTA */
.cta { text-align: center; }
.cta .container { max-width: 760px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--white); padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,0.76); max-width: 42rem; }
.page-hero .eyebrow { color: var(--amber); }

/* Module list (features page) */
.module-group { padding: clamp(2rem, 4vw, 3rem) 0; }
.module-group + .module-group { border-top: 1px solid var(--line); }
.module-group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
.module-group-head p { color: var(--muted); margin: 0; }
.module-group-head h2 { font-size: 1.6rem; margin: 0; }
.module-group .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-card { padding: 1.35rem 1.4rem; }
.module-card h3 { font-size: 1.05rem; }
.module-card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

/* Prose pages */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-aside h2 { font-size: 1.6rem; }
.contact-aside ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-aside li { position: relative; padding: 0.4rem 0 0.4rem 1.8rem; }
.contact-aside li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.82rem; width: 0.7rem; height: 0.7rem;
  border-radius: 3px; background: var(--amber); transform: rotate(45deg);
}
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.35rem; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink); background: var(--white);
  border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,39,68,0.14);
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.3rem; }
.form-foot small { color: var(--muted); }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; display: none; }
.form-status.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status.success { display: block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--amber-dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.7rem 0 0; color: var(--body); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; font-size: 0.93rem; }
.site-footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer .brand { margin-bottom: 0.8rem; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--white); }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* 404 */
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--navy-100); line-height: 1; margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .grid-3, .module-group .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .module-group-head { grid-template-columns: 1fr; gap: 0.6rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--navy-dark); padding: 1rem 1.25rem 1.4rem; gap: 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.2rem; font-size: 1.05rem; }
  .nav .btn { margin-top: 0.6rem; justify-content: center; }
  .strip .container, .grid-3, .grid-2, .module-group .grid, .feature-row, .contact-layout, .form-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 0; }
  .flow { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
