/* AIBSN — site design v4 (2026-10-23). The aibeva.com look: dark navy, blue buttons, AIBSN accent mint. One stylesheet for every page. */
:root {
  color-scheme: dark;
  --bg: #070c1a;
  --surface: #0f1830;
  --tint: #111d3a;
  --rule: #1f2c4d;
  --ink: #f3f6fc;
  --soft: #a9b5cc;
  --faint: #75829e;
  --blue: #4d8bff;
  --blue-hover: #2f6bff;
  --blue-deep: #8fb6ff;
  --mint: #2fd6b8;
  --mint-soft: #8ff0de;
  --mint-ink: #04211c;
  --amber: #ffc04d;
  --coral: #ff7a6b;
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(7,12,26,0.84); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; flex: none; }
.logo::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--mint); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; min-width: 0; }
.nav a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint-soft); }
.nav .dl { color: #fff; background: var(--blue); padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.nav .dl:hover { background: var(--blue-hover); color: #fff; }
@media (max-width: 1040px) { .nav a.opt { display: none; } }
@media (max-width: 900px) { .nav a:not(.dl):not(.keep) { display: none; } }
@media (max-width: 400px) { .nav { gap: 14px; } .nav .dl { padding: 8px 14px; } }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 650; max-width: 20ch; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--soft); max-width: 36em; line-height: 1.55; }
.kicker { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin: 0 0 18px; }
.accent { color: var(--mint); }
.small { font-size: 0.92rem; color: var(--faint); }

section { padding: clamp(72px, 10vw, 128px) 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.sec-head p { color: var(--soft); max-width: 34em; margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 18px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center; cursor: pointer; border: 1.5px solid transparent; background: var(--blue); color: #fff; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn.solid { box-shadow: 0 10px 28px rgba(77,139,255,0.35); }
.btn.line, .btn.ghost { background: transparent; border-color: #34466f; color: var(--ink); }
.btn.line:hover, .btn.ghost:hover { border-color: var(--mint); color: var(--mint-soft); background: transparent; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 480px) { .actions .btn { width: 100%; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(47,214,184,0.20), transparent 70%),
    radial-gradient(45% 55% at 70% 90%, rgba(77,139,255,0.22), transparent 70%),
    var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--mint); }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; color: var(--soft); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 8px; vertical-align: middle; }
.trademark { margin-top: 22px; font-size: 0.86rem; color: var(--faint); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Registry record card */
.record { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 30px 70px -24px rgba(47,214,184,0.35); }
.rec-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.rec-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.rec-seal { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--mint); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: var(--mint-soft); flex: none; }
.rec-name { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.rec-sub { color: var(--soft); margin: 2px 0 18px; }
.record dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.record dt { color: var(--faint); }
.record dd { margin: 0; color: var(--ink); }
.record dd.ok { color: var(--mint); }
.rec-foot { margin: 16px 0 0; font-size: 0.9rem; color: var(--soft); }

/* Statements band */
.claims { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.claims .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.claims p { margin: 0; padding: 26px 0; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 650; letter-spacing: -0.015em; color: #fff; }
.claims p + p { padding-left: 28px; border-left: 1px solid var(--rule); }
.claims p::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 12px; vertical-align: middle; background: var(--mint); }
.claims p:nth-child(2)::before { background: var(--blue); }
.claims p:nth-child(3)::before { background: var(--mint-soft); }
@media (max-width: 760px) { .claims .wrap { grid-template-columns: 1fr; } .claims p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > li, .cards > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 26px; }
.cards h3 { margin-bottom: 10px; font-size: 1.2rem; }
.cards p { color: var(--soft); margin: 0 0 10px; }
.cards p:last-child { margin-bottom: 0; }
.cards strong { color: var(--ink); }
.cards .price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; }
.cards .price small { font-size: 0.95rem; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.cards .go { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--mint-soft); text-decoration: none; }
.cards .go:hover { color: var(--ink); }
.cards .hl-card { background: linear-gradient(150deg, #11a88f, #0d6f6a 55%, #0b2f45); border: 0; box-shadow: 0 24px 60px -26px rgba(47,214,184,0.55); }
.cards .hl-card h3, .cards .hl-card p, .cards .hl-card strong, .cards .hl-card .price, .cards .hl-card .price small { color: #fff; }
.cards .hl-card .go { color: #fff; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.after { margin-top: 28px; }
.note { color: var(--soft); max-width: 52em; }
.note strong { color: var(--ink); }

.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--mint); color: var(--mint-ink); margin-bottom: 10px; }
.tag.goal { background: var(--amber); color: #1a1200; }
.tag.dev { background: transparent; color: var(--soft); border: 1px solid #34466f; }

/* Principles: two-column ruled list */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.principles li { padding: 26px 0; border-top: 1px solid var(--rule); }
.principles h3 { font-size: 1.22rem; margin-bottom: 8px; }
.principles p { color: var(--soft); margin: 0; max-width: 38em; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; color: var(--soft); }
.steps li::before { content: counter(st); width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; margin-bottom: 16px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; }
.steps strong { color: var(--ink); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split (agents) */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.split h2 { margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--rule); color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.ticks strong { color: var(--ink); }
.panel { background: var(--tint); border: 1px solid var(--rule); border-left: 4px solid var(--mint); border-radius: 20px; padding: 28px; color: var(--soft); }
.panel h3 { margin-bottom: 12px; }
.panel strong { color: var(--ink); }
.panel p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Trust band */
.trust .inner { background: var(--tint); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.trust h2 { max-width: 14ch; margin-bottom: 22px; }
.trust p { color: var(--soft); max-width: 34em; }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust li { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; color: var(--soft); }
.trust li strong { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 860px) { .trust .inner { grid-template-columns: 1fr; gap: 28px; } }

/* Origins */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.timeline li { border-top: 3px solid var(--mint); padding-top: 18px; color: var(--soft); }
.timeline li:nth-child(2) { border-top-color: var(--blue); }
.timeline li:nth-child(3) { border-top-color: var(--mint-soft); }
.timeline li:nth-child(4) { border-top-color: var(--blue-deep); }
.timeline b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.book { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(22px, 4vw, 36px); }
.book img { border-radius: 12px; width: 200px; }
.book h3 { font-size: 1.6rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.book p { color: var(--soft); }
.book .actions { margin-top: 18px; }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; } .book img { width: 160px; } }

/* Ecosystem */
.eco { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eco li { padding: 22px 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; }
.eco h3 { margin-bottom: 6px; }
.eco p { margin: 0 0 10px; color: var(--soft); font-size: 0.95rem; }
.eco a { font-weight: 600; color: var(--mint-soft); text-decoration: none; }
.eco a:hover { color: var(--ink); }
@media (max-width: 860px) { .eco { grid-template-columns: 1fr; } }

/* Closing band */
.closing { margin-top: clamp(72px, 10vw, 128px); padding: clamp(72px, 10vw, 112px) 0; background: radial-gradient(70% 90% at 90% 10%, rgba(47,214,184,0.32), transparent 60%), linear-gradient(160deg, #1d4fd8, #0a1430 75%); color: #fff; }
.closing h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; color: #fff; max-width: 16ch; margin-bottom: 14px; }
.closing .sign { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--mint-soft); font-weight: 600; margin: 0; }
.closing .btn { background: #fff; color: #0a1430; }
.closing .btn:hover { background: #dbe5ff; color: #0a1430; }
.closing .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.closing .btn.line:hover { border-color: #fff; color: #fff; }
.closing .price-line { margin: 26px 0 0; color: #c9d6fb; max-width: 44em; }
.closing .price-line b { color: #fff; }

/* HOPEA band */
.hopea { background: #0f2e22; border-top: 1px solid #1f5a42; padding: 28px 0; }
.hopea-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hopea p { margin: 0; color: #e8f3ee; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.hopea .hopea-name { color: #7fdcae; font-weight: 800; text-decoration: none; }
.hopea-btn { flex: none; background: #3ea67e; color: #0a1a14; font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hopea-btn:hover { background: #4fbf93; color: #0a1a14; }
@media (max-width: 760px) { .hopea-in { flex-direction: column; align-items: flex-start; } }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 0.92rem; color: var(--soft); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--ink); font-size: 0.95rem; font-weight: 650; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a, .foot .linkbtn { color: var(--soft); text-decoration: none; }
.foot a:hover, .foot .linkbtn:hover { color: var(--mint-soft); }
.foot .linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.foot .legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--faint); }
.foot .legal-line p { margin: 0 0 6px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* Cookie banner (site.js) */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 46rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); font-size: 0.92rem; color: var(--ink); }
.cookie p { margin: 0 0 12px; color: var(--soft); }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie button { flex: 1 1 8rem; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--blue); }
.cookie .acc { background: var(--blue); color: #fff; }
.cookie .rej { background: transparent; color: var(--blue-deep); }
.cookie a { color: var(--blue-deep); }

/* Inner pages */
.page-head { padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 52px); background: radial-gradient(55% 80% at 90% 0%, rgba(47,214,184,0.18), transparent 70%), radial-gradient(40% 60% at 70% 100%, rgba(77,139,255,0.16), transparent 70%), var(--bg); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); max-width: 18ch; margin-bottom: 18px; }
.page-head h1 em { font-style: normal; color: var(--mint); }
.page-head .lede { margin: 0; }
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.narrow { max-width: 52em; }

/* Generic card (forms, results) */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(20px, 3.5vw, 30px); margin: 0 0 18px; }
.card > p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); }
.muted { color: var(--soft); }
.ok { color: var(--mint); }
.warn { color: var(--amber); }
.bad { color: var(--coral); }
.code { font-family: var(--mono); font-size: 1.1em; letter-spacing: 0.02em; word-break: break-all; color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row input { flex: 1 1 260px; }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 14px 0 0; }
dl.kv dt { color: var(--faint); }
dl.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 10px; } }

/* Forms */
.form p { margin: 0 0 18px; }
.form label, .lbl { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.96rem; }
.form label .muted, .lbl .muted { font-weight: 400; }
input[type="text"], input[type="email"], input:not([type]), select { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid #34466f; background: #0a1226; color: var(--ink); font: inherit; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(47,214,184,0.22); }
.preview { display: block; margin-top: 6px; padding: 12px 16px; border-radius: 14px; background: #0a1226; border: 1px dashed #34466f; }
.form-note { font-size: 0.92rem; color: var(--soft); }

/* FAQ */
.faq { max-width: 52em; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--mint); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 20px; margin: 0 0 18px; color: var(--soft); }
.faq strong { color: var(--ink); }

/* Legal pages (wording unchanged; only the frame is new) */
.legal-doc { max-width: 48em; }
.legal-doc h2 { font-size: 1.4rem; margin: 36px 0 10px; max-width: none; letter-spacing: -0.015em; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--soft); }
.legal-doc ul { padding-left: 1.2em; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc li::marker { color: var(--mint); }
