/* ============================================================
   theaico — clean enterprise. Deep navy + confident indigo.
   ============================================================ */
:root {
  --ink:     #0f1b2d;
  --body:    #45526b;
  --muted:   #7c8aa3;
  --bg:      #ffffff;
  --soft:    #f5f8fc;
  --soft-2:  #eef2fa;
  --accent:  #5b54e6;
  --accent-d:#4a43d6;
  --accent-2:#8b84f5;
  --line:    #e4e9f2;
  --ok:      #0ea594;
  --dark:    #0f1b2d;
  --radius:  16px;
  --radius-sm: 11px;
  --shadow:  0 24px 60px -28px rgba(15,27,45,.28);
  --shadow-sm: 0 10px 26px -16px rgba(15,27,45,.3);
  --maxw:    1140px;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--body); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow--accent { color: var(--accent); }
.hl { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: .96rem; padding: 13px 24px; border-radius: 9px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(91,84,230,.7); }
.btn--primary:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { color: var(--accent); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand__name b { color: var(--accent); font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--body); transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--accent); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfcfe, #fff); border-bottom: 1px solid var(--line); }
.hero__glow { position: absolute; inset: -30% -10% auto auto; width: 70vw; max-width: 820px; height: 720px; background: radial-gradient(circle at 70% 30%, rgba(91,84,230,.16), transparent 60%), radial-gradient(circle at 40% 70%, rgba(139,132,245,.12), transparent 55%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: clamp(54px, 8vw, 100px) 0; }
.hero h1 { margin: 14px 0 22px; }
.lede { font-size: 1.16rem; color: var(--body); max-width: 34em; }
.lede__pron { color: var(--muted); font-size: .86em; font-style: italic; white-space: nowrap; }
.hero__terms { margin-top: 18px; font-size: 1.02rem; color: var(--ink); }
.hero__terms strong { color: var(--accent-d); }
.hero__cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* hero gateway diagram (animated SVG) */
.hero__art { display: flex; justify-content: center; }
.gateway { width: 100%; max-width: 430px; animation: gwFloat 6.5s ease-in-out infinite; }
.gateway__svg { width: 100%; height: auto; display: block; overflow: visible; }

.gw-title { font-family: var(--display); font-weight: 700; font-size: 15px; fill: var(--ink); }
.gw-tsub  { font-family: var(--display); font-weight: 500; font-size: 11px; fill: var(--muted); letter-spacing: .05em; }
.gw-lock  { fill: #fff; font-size: 13px; opacity: .85; }
.gw-name  { font-family: var(--display); font-weight: 800; font-size: 22px; fill: #fff; letter-spacing: -.02em; }
.gw-cap rect { fill: rgba(255,255,255,.2); }
.gw-cap text { font-family: var(--display); font-weight: 600; font-size: 10px; fill: #fff; letter-spacing: .02em; }
.gw-chip rect { fill: var(--soft-2); stroke: var(--line); }
.gw-chip text { font-family: var(--display); font-weight: 600; font-size: 12.5px; fill: var(--ink); }
.gw-chip--more rect { fill: rgba(91,84,230,.09); stroke: rgba(91,84,230,.28); }
.gw-chip--more text { fill: var(--accent); }

.gw-halo { transform-box: fill-box; transform-origin: center; animation: gwHalo 3.6s ease-in-out infinite; }
.flow-line { fill: none; stroke: url(#gwLine); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 9; animation: gwDash 1s linear infinite; }
.flow-dot { fill: #fff; stroke: #5b54e6; stroke-width: 1.6; animation: gwDrop 2s linear infinite; }
.flow-dot--2 { animation-delay: -1s; }

@keyframes gwFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes gwHalo  { 0%,100% { transform: scale(.88); opacity: .45; } 50% { transform: scale(1.08); opacity: .85; } }
@keyframes gwDash  { to { stroke-dashoffset: -28; } }
@keyframes gwDrop  { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 86% { opacity: 1; } 100% { transform: translateY(88px); opacity: 0; } }

/* dramatic accent word */
.dramatic { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.14em; line-height: 1; background: linear-gradient(115deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em; position: relative; }
.dramatic::after { content: ""; position: absolute; left: .04em; right: .04em; bottom: -.06em; height: .09em; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16,1,.3,1) .15s; }
.reveal.in .dramatic::after, .section-head.in .dramatic::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .gateway, .gw-halo, .flow-line { animation: none; }
  .flow-dot { animation: none; opacity: 0; }
  .dramatic::after { transition: none; transform: scaleX(1); }
}

/* supported models marquee */
.models { background: var(--dark); padding: 30px 0 36px; overflow: hidden; }
.models__label { display: block; text-align: center; font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { flex: none; font-family: var(--display); font-weight: 600; font-size: .92rem; color: #dce3ef; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee, .marquee + .marquee { mask-image: none; -webkit-mask-image: none; } }

/* about / team */
.about-hero { background: linear-gradient(180deg, #fbfcfe, #fff); border-bottom: 1px solid var(--line); }
.about-hero__inner { max-width: 50rem; margin-inline: auto; text-align: center; padding: clamp(56px, 9vw, 100px) 0 clamp(40px, 6vw, 60px); }
.about-hero h1 { margin: 14px 0 18px; }
.about-hero p { font-size: 1.15rem; color: var(--body); max-width: 40em; margin-inline: auto; }
.team { padding: clamp(48px, 7vw, 92px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #d5dcec; }
.member__photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(160deg, rgba(91,84,230,.14), rgba(139,132,245,.14)); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.member__name { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.08rem; margin-bottom: 2px; }
.member__role { font-family: var(--display); font-weight: 600; font-size: .84rem; color: var(--accent); margin-bottom: 10px; }
.member__bio { font-size: .9rem; color: var(--body); }
.about-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 30px; }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); }
.section-head { max-width: 44rem; margin: 0 auto clamp(38px, 5vw, 56px); text-align: center; }
.section-sub { margin-top: 12px; color: var(--body); font-size: 1.05rem; }

/* problems grid */
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prob { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prob:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #d5dcec; }
.prob__ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 13px; background: rgba(91,84,230,.1); color: var(--accent); margin-bottom: 16px; }
.prob__ico svg { width: 25px; height: 25px; }
.prob h3 { margin-bottom: 9px; }
.prob p { font-size: .95rem; color: var(--body); }

/* how grid */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.how { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.how h3 { margin-bottom: 8px; }
.how h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 14px; }
.how p { font-size: .95rem; color: var(--body); }
.how-more { text-align: center; margin-top: 30px; }
.how-more a { font-family: var(--display); font-weight: 600; color: var(--accent); }
.how-more a:hover { color: var(--accent-d); }

/* how-it-works page */
.hiw-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hiw-way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.hiw-way h3 { margin: 16px 0 10px; font-size: 1.24rem; }
.hiw-way p { color: var(--body); }

.hiw-list { display: flex; flex-direction: column; gap: 20px; max-width: 60rem; margin-inline: auto; }
.hiw-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; display: grid; grid-template-columns: 48px 1fr; gap: 24px; align-items: start; }
.hiw-item__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(91,84,230,.1); color: var(--accent); }
.hiw-item__ico svg { width: 25px; height: 25px; }
.hiw-item h3 { font-size: 1.18rem; margin-bottom: 9px; }
.hiw-item p { color: var(--body); }
.hiw-item ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.hiw-item li { position: relative; padding-left: 22px; color: var(--body); font-size: .96rem; }
.hiw-item li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

.steps { list-style: none; counter-reset: step; max-width: 54rem; margin-inline: auto; }
.step { position: relative; padding: 0 0 30px 60px; }
.step:last-child { padding-bottom: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(91,84,230,.7); }
.step::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 2px; background: linear-gradient(var(--accent), rgba(91,84,230,.12)); }
.step:last-child::after { display: none; }
.step h4 { font-family: var(--display); color: var(--ink); font-size: 1.06rem; margin-bottom: 4px; letter-spacing: -.01em; }
.step p { color: var(--body); font-size: .96rem; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin-inline: auto; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; }
.price--featured { border-color: var(--accent); box-shadow: 0 30px 60px -34px rgba(91,84,230,.5); }
.price__badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: .74rem; padding: 5px 13px; border-radius: 999px; }
.price h3 { font-size: 1.3rem; }
.price__big { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--ink); line-height: 1; margin: 14px 0 22px; letter-spacing: -.03em; }
.price__big span { display: block; font-size: .92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price li { position: relative; padding-left: 28px; font-size: .96rem; color: var(--body); }
.price li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(14,165,148,.12); }
.price li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* security (dark) */
.security__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.section--dark h2 { color: #fff; }
.section--dark .security__inner > div > p { color: #aeb9cc; font-size: 1.08rem; max-width: 34em; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { padding: 15px 18px 15px 44px; position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); color: #eef2fa; font-size: .95rem; }
.trust-list li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); transform: translateY(-50%); box-shadow: 0 0 0 4px rgba(139,132,245,.18); }

/* demo */
.demo__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.demo__copy h2 { margin: 14px 0 16px; }
.demo__copy p { color: var(--body); font-size: 1.06rem; max-width: 30em; }
.demo__list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); font-weight: 500; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--row .field { margin-bottom: 0; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 500; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--sans); font-size: .98rem; color: var(--ink); background: var(--soft); transition: border-color .15s, box-shadow .15s, background .15s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,84,230,.15); background: #fff; }
.form input.invalid, .form textarea.invalid { border-color: #e05656; }
.form textarea { resize: vertical; }
.choices { border: 0; padding: 0; margin-bottom: 18px; }
.choices legend { font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-block; padding: 9px 15px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 8px; font-size: .88rem; color: var(--body); transition: all .2s; }
.choice input:checked + span { border-color: var(--accent); color: var(--accent-d); background: rgba(91,84,230,.07); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(91,84,230,.18); }
.form__fine { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.form__msg { margin-top: 14px; font-size: .92rem; text-align: center; min-height: 1.2em; }
.form__msg.ok { color: var(--ok); }
.form__msg.err { color: #e05656; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* footer */
.footer { background: var(--dark); color: #aeb9cc; padding: 52px 0 38px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name b { color: var(--accent-2); }
.footer__brand p { margin-top: 10px; font-size: .92rem; max-width: 30ch; }
.footer__meta { display: flex; flex-direction: column; gap: 9px; font-size: .9rem; text-align: right; }
.footer__meta a:hover { color: var(--accent-2); }
.footer__meta a[href^="https"] { color: #c4ccdb; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 940px) {
  .hero__inner, .security__inner, .demo__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; }
  .prob-grid, .how-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .hiw-ways { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .nav__links a:not(.btn) { display: none; }
  .prob-grid, .how-grid, .price-grid, .team-grid { grid-template-columns: 1fr; }
  .hiw-item { grid-template-columns: 1fr; gap: 16px; }
  .field--row { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}
