/* ===========================================================
   AdaLexis — landing styles
   =========================================================== */
:root {
  --navy-950: #07122b;
  --navy-900: #0a1832;
  --navy-850: #0d1d3d;
  --navy-800: #102447;
  --navy-700: #163261;
  --navy-600: #1f4f9c;
  --green: #1fa85c;
  --green-bright: #25c46e;
  --green-soft: rgba(37, 196, 110, .14);
  --ink: #eaf0fb;
  --ink-dim: #9fb0cf;
  --ink-mute: #6f82a6;
  --line: rgba(140, 165, 215, .14);
  --glass: rgba(255, 255, 255, .04);
  --glass-strong: rgba(255, 255, 255, .06);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--navy-950);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: "Sora", "Manrope", sans-serif; line-height: 1.12; letter-spacing: -.02em; }

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

.green { color: var(--green-bright); }

a { color: inherit; text-decoration: none; }

/* ---------- Background decoration ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(31, 79, 156, .35), transparent 60%),
    radial-gradient(45% 40% at 5% 10%, rgba(37, 196, 110, .14), transparent 60%),
    radial-gradient(60% 60% at 50% 110%, rgba(31, 79, 156, .18), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .98rem; padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #042312; box-shadow: 0 12px 30px -10px rgba(37, 196, 110, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37, 196, 110, .75); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; transition: .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 18, 43, .82); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--ink-dim); font-weight: 600; font-size: .95rem; transition: .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }

.lang-switch { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--ink-dim); font-weight: 700; font-size: .82rem;
  padding: .35rem .7rem; border-radius: 999px; cursor: pointer; transition: .2s;
}
.lang-switch button.active { background: var(--green-soft); color: var(--green-bright); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600;
  color: var(--ink-dim); background: var(--glass); border: 1px solid var(--line);
  padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.pill .dot, .live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px var(--green-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); margin-bottom: 1.2rem; }
.hero h1, .section-head h2 { background: linear-gradient(180deg, #fff 30%, #b9c8e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--ink-dim); max-width: 36ch; }
.hero-cta { display: flex; gap: .9rem; margin: 2rem 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 1.6rem; }
.hero-stats span { color: var(--ink-mute); font-size: .85rem; }

/* glass primitives */
.glass {
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}

/* hero visual */
.hero-visual { position: relative; min-height: 380px; }
.risk-card { padding: 22px; position: relative; z-index: 2; }
.rc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink-dim); font-size: .9rem; margin-bottom: 1rem; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; letter-spacing: .12em; color: var(--green-bright); }
.rc-row { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-radius: 14px; margin-bottom: .55rem; border: 1px solid var(--line); }
.rc-left { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.rc-tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: .2rem .45rem; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--ink-dim); }
.score { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.1rem; }
.rc-row.high { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .3); } .rc-row.high .score { color: #ff6b6b; }
.rc-row.med  { background: rgba(245, 176, 65, .10); border-color: rgba(245, 176, 65, .28); } .rc-row.med .score { color: #ffc861; }
.rc-row.low  { background: var(--green-soft); border-color: rgba(37,196,110,.28); } .rc-row.low .score { color: var(--green-bright); }
.rc-graph { margin-top: .8rem; height: 90px; }
.rc-graph svg { width: 100%; height: 100%; }

.mini-card { position: absolute; padding: 14px 18px; display: flex; flex-direction: column; z-index: 3; }
.mini-card .mc-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; }
.mini-card .mc-lbl { font-size: .75rem; color: var(--ink-mute); }
.mc-1 { bottom: -22px; left: -26px; animation: float 6s ease-in-out infinite; }
.mc-2 { top: -22px; right: -18px; animation: float 6s ease-in-out infinite .8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* verticals */
.verticals { margin-top: 64px; text-align: center; }
.verticals > span { display: block; color: var(--ink-mute); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.vert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; }
.vert-row span { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink-dim); opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(13, 29, 61, .5), transparent); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; color: var(--green-bright); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-dim); font-size: 1.05rem; }

/* modules */
.modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.module { padding: 30px; transition: .3s ease; }
.module:hover { transform: translateY(-6px); border-color: rgba(37,196,110,.35); }
.mod-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--green-bright); background: var(--green-soft); border: 1px solid rgba(37,196,110,.25); }
.mod-icon svg { width: 28px; height: 28px; }
.mod-icon.kyc { color: #6ea8ff; background: rgba(110,168,255,.12); border-color: rgba(110,168,255,.25); }
.mod-icon.inv { color: #c08bff; background: rgba(192,139,255,.12); border-color: rgba(192,139,255,.25); }
.mod-icon.live { color: #ffc861; background: rgba(255,200,97,.12); border-color: rgba(255,200,97,.25); }
.module h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.module p { color: var(--ink-dim); margin-bottom: 1.2rem; font-size: .98rem; }
.module ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.module li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: .92rem; }
.module li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--green-bright); transform: rotate(45deg); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); transition: .25s; }
.feature:hover { background: var(--glass-strong); transform: translateY(-4px); }
.feature h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature p { color: var(--ink-dim); font-size: .9rem; }

/* flow */
.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; justify-content: center; }
.flow-step { flex: 1; min-width: 180px; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.fs-num { font-family: "Sora", sans-serif; font-weight: 800; color: var(--green-bright); font-size: 1.4rem; }
.flow-step h4 { margin: .5rem 0 .4rem; font-size: 1.1rem; }
.flow-step p { color: var(--ink-dim); font-size: .9rem; }
.flow-arrow { display: flex; align-items: center; color: var(--ink-mute); font-size: 1.4rem; }

/* why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: .8rem 0 1rem; }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item { padding: 22px 24px; border-left: 3px solid var(--green); background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0; }
.why-item h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.why-item p { color: var(--ink-dim); font-size: .95rem; }

/* founders */
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 920px; margin: 0 auto; }
.founder { padding: 30px; display: flex; gap: 22px; align-items: flex-start; }
.f-avatar {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.f-body h3 { font-size: 1.25rem; }
.f-role { display: inline-block; color: var(--green-bright); font-weight: 700; font-size: .9rem; margin: .15rem 0 .9rem; }
.f-creds { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.f-creds li { position: relative; padding-left: 1.3rem; color: var(--ink-dim); font-size: .92rem; }
.f-creds li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.f-contact {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-weight: 700; font-size: .92rem; color: var(--ink);
  background: var(--green-soft); border: 1px solid rgba(37,196,110,.25); border-radius: 999px; padding: .45rem .95rem; transition: .2s;
}
.f-contact:hover { color: var(--green-bright); border-color: rgba(37,196,110,.5); transform: translateY(-2px); }
.f-contact svg { width: 16px; height: 16px; color: var(--green-bright); }

/* cta + demo form */
.cta-section { padding-bottom: 110px; }
.cta-wrap {
  position: relative; overflow: hidden; padding: 44px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center;
}
.cta-wrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 0% 0%, rgba(37,196,110,.14), transparent 60%); pointer-events: none; }
.cta-info { position: relative; z-index: 1; }
.cta-mark { width: 52px; height: 52px; object-fit: contain; margin-bottom: 1rem; opacity: .95; }
.cta-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .8rem; }
.cta-info p { color: var(--ink-dim); margin-bottom: 1.4rem; font-size: 1.02rem; }
.cta-mail { color: var(--ink); font-weight: 700; border-bottom: 1px dashed var(--ink-mute); padding-bottom: 2px; }
.cta-mail:hover { color: var(--green-bright); }

.demo-form { position: relative; z-index: 1; }
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.df-field { display: flex; flex-direction: column; gap: .4rem; }
.df-field.df-full { grid-column: 1 / -1; }
.df-field span { font-size: .82rem; font-weight: 600; color: var(--ink-dim); }
.df-field input, .df-field select, .df-field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: rgba(7,18,43,.55); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.df-field textarea { resize: vertical; min-height: 64px; }
.df-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239fb0cf' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 2rem;
}
.df-field option { background: #0d1d3d; color: var(--ink); }
.df-field input:focus, .df-field select:focus, .df-field textarea:focus {
  outline: none; border-color: rgba(37,196,110,.6); box-shadow: 0 0 0 3px var(--green-soft);
}
.df-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.df-submit { width: 100%; margin-top: 16px; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease; }
/* "Locked" look: clearly greyed-out but still clickable, so a click without
   consent can surface the red Privacy Policy reminder below. */
.df-submit.df-locked {
  background: rgba(255, 255, 255, .07);
  color: var(--ink-dim);
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
  filter: none;
}
.df-submit.df-locked:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, .1); }
.df-submit:disabled { opacity: .6; cursor: progress; }

/* Consent error (user clicked send without accepting the policy) */
.df-consent.error span { color: #ff7a7a; }
.df-consent.error a.df-link { color: #ff9e9e; border-bottom-color: #ff9e9e; }
.df-consent.error input[type="checkbox"] {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 80, 80, .18);
}
.df-consent.shake { animation: df-shake .4s ease; }
@keyframes df-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.df-consent { display: flex; align-items: flex-start; gap: .6rem; margin-top: 16px; color: var(--ink-dim); font-size: .85rem; line-height: 1.5; cursor: pointer; }
.df-consent input[type="checkbox"] {
  flex: 0 0 auto; appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin-top: 2px;
  border: 1.5px solid var(--ink-mute); border-radius: 5px; background: rgba(7,18,43,.55); cursor: pointer; transition: .15s; position: relative;
}
.df-consent input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.df-consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
  border: solid #042312; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.df-consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.df-link { color: var(--green-bright); font-weight: 700; border-bottom: 1px solid rgba(37,196,110,.4); }
.df-link:hover { border-bottom-color: var(--green-bright); }
.df-status { font-size: .9rem; font-weight: 600; margin-top: .8rem; text-align: center; min-height: 1.2em; }
.df-status.ok { color: var(--green-bright); }
.df-status.err { color: #ff7a7a; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: rgba(7,18,43,.5); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 32px; }
.foot-tag { color: var(--ink-mute); max-width: 34ch; margin-top: 1rem; font-size: .92rem; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-cols h5 { color: var(--ink); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-cols a { display: block; color: var(--ink-dim); font-size: .92rem; padding: .25rem 0; transition: .2s; }
.foot-cols a:hover { color: var(--green-bright); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; color: var(--ink-mute); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lead { max-width: none; }
  .modules-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .founders-grid { grid-template-columns: 1fr; }
  .cta-wrap { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .flow { flex-direction: column; align-items: stretch; }

  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7,18,43,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-120%); transition: transform .3s ease; z-index: 40;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .nav-actions .btn-sm { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .founder { flex-direction: column; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
