/* isoraAI public landing + login, in the style of the isoraAI pitch deck: deep navy with a blue glow,
   Unbounded (display) + Manrope (text), the logo blue as the one accent, amber only for the LIVE state.
   One dark theme for the whole page. Radius system: pills for controls, 24px for panels and media. */
:root {
  --bg: #0a1033;
  --bg-2: #0d1540;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #111a4a;
  --line: rgba(201, 211, 242, 0.14);
  --line-strong: rgba(201, 211, 242, 0.26);
  --text: #f4f6fb;
  --muted: #a9b4d9;
  --accent: #0246f6;
  --accent-hover: #2b62ff;
  --accent-text: #8aa6ff;
  --accent-soft: rgba(2, 70, 246, 0.16);
  --on-accent: #ffffff;
  --live: #ffb547;
  --danger: #ff8a8e;
  --shadow: 0 30px 80px -30px rgba(2, 8, 40, 0.9);
  --radius: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-text: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 40; padding: .6rem 1rem; background: var(--panel-solid); border-radius: 999px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-text) 70%, transparent); outline-offset: 3px; }

/* page background: the deck's navy with a slowly drifting blue glow (fixed layer, never repainted on scroll) */
.landing::before, .auth::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 78% 28%, rgba(27, 58, 176, 0.55), transparent 70%),
    radial-gradient(30vmax 30vmax at 12% 85%, rgba(2, 70, 246, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: 0 1.25rem;
  border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1 var(--font-text); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 0 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary .ico:last-child { transition: transform .3s var(--ease); }
.btn-primary:hover .ico:last-child { transform: translateX(4px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 16, 51, .72); backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none;
  font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand svg { height: 26px; width: auto; color: var(--accent-text); }
.nav-links { display: flex; gap: .15rem; margin-left: auto; }
.nav-links a { padding: .55rem .85rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { padding: .38rem .62rem; border-radius: 999px; color: var(--muted); font: 600 .82rem/1 var(--font-text); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--text); }
.nav .btn { min-height: 42px; padding: 0 1.05rem; }

/* hero */
.hero { padding: 4.5rem 0 5.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; padding: .45rem .9rem .45rem .75rem; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font: 600 .78rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); }
.hero h1 { font-size: clamp(1.95rem, 3.1vw, 2.95rem); max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .lead { margin-top: 1.4rem; max-width: 36ch; font-size: 1.18rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-visual { display: grid; gap: 1rem; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 880 / 640; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* live translation card: words appear as they are recognized, then the sentence is written out */
.live-card { justify-self: end; width: min(420px, 100%); padding: 1.1rem 1.25rem 1.25rem; border-radius: 20px; border: 1px solid var(--line-strong);
  background: rgba(13, 21, 64, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.live-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.live-head b { font: 600 .9rem/1 var(--font-display); }
.live-head small { margin-left: auto; color: var(--muted); font-size: .78rem; text-transform: lowercase; }
.eq { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.eq i { display: block; width: 4px; height: 100%; border-radius: 999px; background: var(--live); transform-origin: center; }
.eq i:nth-child(1) { height: 45%; } .eq i:nth-child(2) { height: 100%; } .eq i:nth-child(3) { height: 55%; } .eq i:nth-child(4) { width: 5px; height: 5px; align-self: flex-start; margin-top: 2px; }
.live-label { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .4rem; }
.live-words { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.1rem; margin: .45rem 0 .7rem; }
.live-words li { padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(138, 166, 255, .35); color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.live-sentence { min-height: 2.9rem; margin-top: .35rem; font: 600 1.15rem/1.35 var(--font-display); }
.live-sentence.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent-text); }

/* sections */
.section { padding: 6.5rem 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); max-width: 22ch; }
.intro { margin-top: 1rem; color: var(--muted); max-width: 58ch; }
.source { margin-top: 2rem; color: var(--muted); font-size: .88rem; max-width: 80ch; opacity: .85; }

/* problem: three big facts */
.problem { border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-top: 3.2rem; }
.stat b { display: block; font: 600 clamp(3rem, 6vw, 5rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--text); }
.stat:first-child b { color: var(--accent-text); }
.stat p { margin-top: 1rem; color: var(--muted); max-width: 30ch; }
.problem-line { margin-top: 3.2rem; padding-left: 1.2rem; border-left: 3px solid var(--accent); font: 500 clamp(1.1rem, 1.8vw, 1.4rem)/1.5 var(--font-display); max-width: 48ch; }

/* two-way translation */
.dirs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.25rem; margin-top: 3rem; }
.dir { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.dir h3 { font-size: 1.35rem; margin-top: 1.6rem; }
.dir p { margin-top: .7rem; color: var(--muted); max-width: 40ch; }
.dir-b { display: grid; flex-direction: initial; grid-template-columns: 1fr 230px; gap: 1rem; padding-bottom: 0; background: linear-gradient(150deg, rgba(2, 70, 246, .28), var(--panel) 65%); }
.dir-b .dir-copy { padding-bottom: 2.2rem; }
.dir-b img { align-self: end; border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.flow { display: flex; align-items: center; gap: .8rem; }
.flow-ico { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.flow-ico:last-child { background: rgba(255, 255, 255, .08); color: var(--text); }
.flow-line { flex: 1; max-width: 140px; height: 2px; background-image: linear-gradient(90deg, var(--accent-text) 50%, transparent 50%); background-size: 12px 2px; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: 2rem; }
.chips li { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 600; font-size: .9rem; }

/* comparison */
.table-wrap { margin-top: 3rem; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 1.25rem 1.4rem; text-align: left; vertical-align: top; }
.compare thead th { font: 600 .95rem/1.3 var(--font-display); color: var(--muted); }
.compare thead th.us { color: var(--on-accent); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 22%; }
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare .us { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.compare thead .us { background: var(--accent); }
.tick { width: 1.15em; height: 1.15em; margin-right: .45rem; vertical-align: -0.2em; }
.tick.yes { color: #5fe3a1; } .tick.no { color: var(--danger); }

/* clients: tall stat tile + four client tiles */
.clients { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; margin-top: 3rem; }
.client { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.client:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.client .ico-lg { width: 40px; height: 40px; color: var(--accent-text); }
.client h3 { margin-top: 1.2rem; font-size: 1.15rem; }
.client p { margin-top: .45rem; color: var(--muted); font-size: .97rem; }
.client-stat { grid-column: 1; grid-row: 1 / span 2; order: -1; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--accent), #0a2a9e); border-color: transparent; }
.client-stat b { font: 600 clamp(2.8rem, 5vw, 4.2rem)/1 var(--font-display); letter-spacing: -0.04em; }
.client-stat h3 { font-size: 1.2rem; }
.client-stat p { color: rgba(255, 255, 255, .75); font-size: .88rem; }
.region { display: flex; align-items: center; gap: .7rem; margin-top: 1.6rem; color: var(--muted); }
.region .ico { color: var(--accent-text); width: 1.5em; height: 1.5em; }

/* results: heading column + metric list */
.results .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem 4rem; align-items: start; }
.results .wrap > h2 { grid-column: 1; }
.results .metrics { grid-column: 2; grid-row: 1 / span 3; display: grid; border-top: 1px solid var(--line); }
.results .vocab, .results .source { grid-column: 1; }
.metric { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.metric b { font: 600 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--accent-text); min-width: 4.6ch; }
.metric span { color: var(--muted); max-width: 26ch; }
.vocab { display: flex; flex-wrap: wrap; gap: .55rem; }
.vocab li { padding: .5rem .95rem; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: .92rem; }
.results .source { margin-top: 0; }

/* team */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.6rem; }
.person { display: grid; gap: .3rem; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.person .mono { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .9rem; border-radius: 50%;
  background: linear-gradient(160deg, #7c9cff, var(--accent)); color: var(--on-accent); font: 600 1.3rem/1 var(--font-display); }
.person b { font: 600 1.05rem/1.3 var(--font-display); }
.person > span:last-child { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; margin-top: 2.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; cursor: pointer;
  font: 600 1.08rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--accent-text); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 68ch; }

/* final call to action */
.final { padding: 2rem 0 6.5rem; }
.final .panel { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 1rem; padding: 4.5rem 2rem;
  border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(60% 90% at 50% 0%, rgba(2, 70, 246, .45), transparent 70%), var(--panel); }
.final-mark svg { height: 56px; width: auto; color: var(--accent-text); }
.final h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 18ch; }
.final p { color: var(--muted); max-width: 46ch; }
.final .btn { margin-top: 1rem; }

.footer { border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; color: var(--muted); font-size: .92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 1.05rem; } .footer .brand svg { height: 20px; }

/* motion: everything below decorates real state and collapses to static under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .landing::before { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate3d(-4vmax, 3vmax, 0) scale(1.06); } }
  .live-dot { animation: ping 1.8s var(--ease) infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255, 181, 71, 0); } }
  .eq i:not(:last-child) { animation: eq 1.1s ease-in-out infinite; }
  .eq i:nth-child(2) { animation-delay: -.35s; } .eq i:nth-child(3) { animation-delay: -.7s; }
  @keyframes eq { 50% { transform: scaleY(.45); } }
  .flow-line { animation: flow 1.2s linear infinite; }
  @keyframes flow { to { background-position: 24px 0; } }
  .live-words li.pop { animation: pop .45s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.92); } }
  .live-sentence.typing::after { animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .hero-copy > *, .hero-visual > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-visual > :nth-child(1) { animation-delay: .18s; } .hero-visual > :nth-child(2) { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .photo img { transition: transform 1.2s var(--ease); }
  .photo:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* login page */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth main { display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-card { width: min(430px, 100%); padding: 2.4rem; border-radius: var(--radius); background: rgba(13, 21, 64, .86); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .sub { margin-top: .5rem; color: var(--muted); }
.field { display: grid; gap: .45rem; margin-top: 1.4rem; }
.field label { font-weight: 600; }
.field input { width: 100%; min-height: 50px; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--text); font: inherit; }
.field input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(138, 166, 255, .2); }
.pw { position: relative; }
.pw input { padding-right: 3.2rem; }
.pw button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.pw button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.form-error { min-height: 1.4rem; margin-top: 1rem; color: var(--danger); font-weight: 600; }
.auth-card .btn { width: 100%; margin-top: .6rem; }
.auth-card .hint { margin-top: 1.2rem; color: var(--muted); font-size: .93rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.auth .brand svg { color: var(--accent-text); }

/* tablet */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.8rem; }
  .hero h1, .hero .lead { max-width: none; }
  .live-card { justify-self: stretch; width: auto; }
  .dirs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .clients { grid-template-columns: 1fr 1fr; }
  .client-stat { grid-column: 1 / -1; grid-row: auto; }
  .results .wrap { grid-template-columns: 1fr; }
  .results .wrap > *, .results .metrics { grid-column: 1; grid-row: auto; }
  .people { grid-template-columns: 1fr 1fr; }
}
/* phone */
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .nav .wrap { gap: .7rem; min-height: 62px; }
  .brand { font-size: 1.05rem; } .brand svg { height: 22px; }
  .nav .btn .ico { display: none; }
  .nav .btn { padding: 0 .85rem; font-size: .88rem; }
  .lang a { padding: .34rem .48rem; font-size: .78rem; }
  .hero { padding: 2.8rem 0 3.5rem; }
  .section { padding: 4.5rem 0; }
  .stats, .clients, .people { grid-template-columns: 1fr; }
  .dir { padding: 1.6rem; }
  .dir-b { grid-template-columns: 1fr; padding-bottom: 0; }
  .dir-b .dir-copy { padding-bottom: 0; }
  .dir-b img { justify-self: center; max-width: 220px; }
  .metric { grid-template-columns: 1fr; gap: .5rem; }
  .final .panel { padding: 3rem 1.4rem; }
  /* comparison becomes one card per row */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
  .compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 0; }
  .compare tbody th { padding-bottom: .4rem; color: var(--text); font-family: var(--font-display); }
  .compare td { padding-top: .55rem; padding-bottom: .55rem; }
  .compare td::before { content: attr(data-col); display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
  .compare td.us { padding-bottom: 1rem; }
}
/* small phones: the hero already has the demo button, so the nav keeps only brand and language */
@media (max-width: 480px) { .landing .nav .btn { display: none; } }
