/* GIA Viewer: independent product website.
   It shares the GIA visual language while keeping its own layout and components. */

:root {
  /* Brand palette (same values as the main site) */
  --navy: #071321;            /* --midnight-navy */
  --deep: #0D1B2A;            /* --deep-space-blue */
  --bar: #020B1C;             /* nav + footer background */
  --blue: #2F80ED;            /* --electric-blue */
  --azure: #56CCF2;           /* --azure-blue */
  --accent: #1E5FBF;          /* solid buttons and highlights */
  --accent-hover: #1A50A3;
  --glow: 0 0 40px rgba(30, 95, 191, 0.35);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #F8FAFC;            /* --white */
  --text-2: #CBD5E1;          /* --slate-300 */
  --slate-500: #6B7280;       /* nav + footer muted text, as on the main site */
  --muted: #8EA2B8;           /* captions: lighter than --slate-500 to keep AA contrast */

  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --container: 1200px;        /* includes the side gutters, like the main site */
  --gutter: 2rem;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  /* Same as the main site: reserve the scrollbar so the fixed nav never shifts */
  scrollbar-gutter: stable;
}
/* Lenis (loaded by the main site's js/main.js) manages scrolling when active */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 600; color: var(--text);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: var(--text); }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

/* The fixed nav sits on top; push the page below it */
main { padding-top: var(--nav-h); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 1100;
  background: var(--accent); color: var(--text); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Same eyebrow as the main site */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 62ch; }

/* --------------------------------------------------------------- buttons */
/* Same buttons as the main site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-small);
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: var(--text);
  box-shadow: 0 8px 24px rgba(30, 95, 191, 0.28);
}
.btn--primary:hover { background: var(--accent-hover); color: var(--text); box-shadow: var(--glow); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); background: var(--surface-hover); color: var(--text); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--whatsapp {
  background: #25D366; color: #06231A;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}
.btn--whatsapp:hover { background: #1FBE5A; color: #06231A; box-shadow: 0 0 40px rgba(37, 211, 102, 0.4); }
.btn--whatsapp svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ navigation */
/* Independent GIA Viewer navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--bar);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.nav__inner {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav__logo { display: flex; align-items: center; height: 52px; }
.nav__logo img { height: 40px; width: 40px; object-fit: contain; }
.nav__logo span {
  margin-left: 0.65rem; color: var(--text); font-family: var(--font-head);
  font-size: 1.05rem; letter-spacing: -0.02em;
}
.nav__logo strong { color: var(--azure); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--font-head); font-size: 0.95rem; color: var(--text-2);
  position: relative; transition: color 0.2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--accent { color: var(--blue); font-weight: 500; }
.nav__link--accent:hover { color: var(--azure); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__contact--mobile { display: none; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-small);
  overflow: hidden; font-family: var(--font-head); font-size: 0.8rem;
}
.lang-toggle button {
  background: transparent; color: var(--slate-500); border: none;
  padding: 0.4rem 0.7rem; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-toggle button.is-active { background: var(--blue); color: var(--text); }

.nav__toggle {
  display: none; background: transparent; border: none;
  color: var(--text); cursor: pointer; padding: 0.4rem;
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ hero */
/* The 3D scene (a transparent render from GIA Viewer's engine) sits to the
   right of the copy, over a soft glow and a fading grid, with floating
   cards that echo the application's interface. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(640px, calc(100vh - var(--nav-h)), 920px); padding: 72px 0 88px;
}
.hero__copy { position: relative; z-index: 2; max-width: 560px; }
.hero__copy .lead { max-width: 34em; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 65% at 72% 52%, rgba(47, 128, 237, 0.2), rgba(47, 128, 237, 0) 70%),
    linear-gradient(180deg, var(--deep) 0%, var(--navy) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(86, 204, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 204, 242, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 70% 50%, #000 0%, transparent 75%);
}
.hero__visual {
  position: absolute; z-index: 1; margin: 0;
  top: 50%; left: calc(50% - 80px); width: min(56vw, 1320px);
  transform: translateY(-50%);
}
.hero__scene { width: 100%; }

/* Product name: the shared nav carries the company logo, so the product
   identity leads the hero instead. */
.product-mark {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 1.4rem;
  font: 600 1.4rem/1 var(--font-head); color: var(--text); letter-spacing: 0.01em;
}
.product-mark img { width: 40px; height: 40px; }
.product-mark strong { color: var(--azure); font-weight: 600; }

.float {
  position: absolute; z-index: 1;
  background: rgba(13, 27, 42, 0.74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(86, 204, 242, 0.22); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: 12px 14px; font-size: 0.8rem; color: var(--text-2);
  animation: drift 7s ease-in-out infinite;
}
.float p { margin: 0; }
.float .float__title {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--text);
  margin-bottom: 8px;
}
.float--layers { top: 1%; left: 9%; width: 256px; }
.float--legend { bottom: 9%; right: 6%; width: 190px; animation-delay: -2.5s; }
.float--agent {
  bottom: -2%; left: 2%; width: 300px; animation-delay: -4.5s;
  display: flex; gap: 10px; align-items: flex-start;
}
.float--agent strong { display: block; color: var(--text); font-size: 0.82rem; margin-bottom: 2px; }
.float--agent .chat__avatar { flex: none; width: 30px; height: 30px; }
.float--agent .chat__avatar svg { width: 18px; height: 18px; }

.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.layers li { display: flex; align-items: center; gap: 9px; }
.layers li::after { content: "✓"; margin-left: auto; color: var(--azure); font-size: 0.75rem; }
/* Swatches and legend show the software's own colormap (data, not brand) */
.swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.swatch--mesh { border: 1.5px solid var(--azure); background: rgba(86, 204, 242, 0.12); }
.swatch--ddh { background: linear-gradient(180deg, #466be3, #32f298, #fb7e21, #d02f05); width: 6px; margin: 0 4px; }
.swatch--bm { background: linear-gradient(135deg, #28bceb, #32f298 55%, #eecf3a); }
.swatch--cut { border: 1.5px dashed var(--text-2); }

.legend__bar {
  height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, #30123b 0%, #466be3 12.5%, #28bceb 25%, #32f298 37.5%,
    #a4fc3c 50%, #eecf3a 62.5%, #fb7e21 75%, #d02f05 87.5%, #7a0403 100%);
}
.legend__ticks { display: flex; justify-content: space-between; margin: 4px 0 8px; font-size: 0.72rem; color: var(--muted); }
.legend__high { display: flex; align-items: center; gap: 8px; }
.glow-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #ff4a1c;
  box-shadow: 0 0 8px 2px rgba(255, 74, 28, 0.8); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px 1px rgba(255, 74, 28, 0.6); } 50% { box-shadow: 0 0 14px 4px rgba(255, 74, 28, 0.9); } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.pillars { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pillars a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text); font-size: 0.92rem; background: rgba(13, 27, 42, 0.6);
  transition: border-color 0.2s var(--ease);
}
.pillars a:hover { border-color: var(--azure); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--azure); }

.render figcaption, .chat figcaption {
  font-size: 0.85rem; color: var(--muted); padding: 10px 14px 12px;
}

/* -------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.pillar--alt { background: linear-gradient(180deg, var(--navy), var(--deep) 30%, var(--deep) 70%, var(--navy)); }

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-4px); }
.card p { color: var(--text-2); margin: 0; }
.card--small { padding: 22px 20px; }
.card--small h3 { font-size: 1.05rem; }
.card--small p { font-size: 0.94rem; }
/* Same icon tile as the main site's cards */
.card__icon {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: var(--radius-small); margin-bottom: 16px;
  background: rgba(47, 128, 237, 0.12); border: 1px solid rgba(47, 128, 237, 0.25);
}
.card__icon svg, .chat__avatar svg {
  width: 22px; height: 22px; fill: none; stroke: var(--azure); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.solution {
  margin-top: 56px; display: grid; gap: 28px;
  background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.solution__copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; }
.solution__copy p { color: var(--text-2); margin: 0; }
.solution__copy .formats__label { margin: 0 0 10px; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats li {
  padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 0.86rem;
}
.formats .formats__more { border-style: dashed; color: var(--muted); }

/* --------------------------------------------------------------- pillars */
.pillar__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.pillar__grid--reverse .pillar__copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(86, 204, 242, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356CCF2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.render {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--deep); box-shadow: var(--shadow);
}
.render--wide { margin-top: 40px; }
.demo-video { display: block; width: 100%; height: auto; background: var(--deep); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }

/* ---------------------------------------------------- agent conversation */
.chat {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--deep); box-shadow: var(--shadow);
}
.chat__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--surface-hover); border-bottom: 1px solid var(--border);
}
.chat__head small { display: block; color: var(--muted); font-size: 0.8rem; }
.chat__avatar {
  display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center;
  background: rgba(86, 204, 242, 0.16);
}
.chat__body { padding: 20px 18px 6px; display: grid; gap: 14px; }
.msg { margin: 0; padding: 12px 15px; border-radius: 12px; font-size: 0.95rem; max-width: 92%; }
.msg--user { justify-self: end; background: var(--accent); color: var(--text); border-bottom-right-radius: 4px; }
.msg--bot { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-bottom-left-radius: 4px; }
.msg--bot strong { color: var(--text); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tools li {
  display: flex; align-items: center; gap: 10px; font-size: 0.87rem; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 7px 12px; background: var(--surface);
}
.tick {
  display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(86, 204, 242, 0.16); color: var(--azure); font-size: 0.72rem; font-weight: 700;
}

/* -------------------------------------------------------------- features */
.showcase { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.showcase--reverse .render { order: 2; }
.showcase__copy p { color: var(--text-2); }

/* -------------------------------------------------------------- workflow */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
}
.step::after {
  content: ""; position: absolute; top: 44px; right: -20px; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--azure));
}
.step:last-child::after { display: none; }
.step__num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  font: 600 1rem var(--font-head); color: var(--azure); margin-bottom: 16px;
  background: rgba(47, 128, 237, 0.12); border: 1px solid rgba(47, 128, 237, 0.35);
}
.step p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

/* ------------------------------------------------------------------- faq */
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--deep); margin-bottom: 12px; }
.faq__item summary {
  cursor: pointer; padding: 18px 52px 18px 20px; font-family: var(--font-head); font-weight: 600;
  list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--azure); font-size: 1.4rem; transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 20px 18px; margin: 0; color: var(--text-2); }

/* --------------------------------------------------------------- contact */
.contact { background: radial-gradient(1000px 400px at 20% 0%, rgba(47, 128, 237, 0.16), transparent 70%), var(--navy); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
/* The Startup UNI logo is dark lettering on white, so it sits on a white badge. */
.backer { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.backer p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.backer__logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 14px; }
.backer__logo img { height: 62px; width: auto; }

/* Demo request: WhatsApp links instead of a form (same path as the main site) */
.demo {
  background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.demo h3 { font-size: 1.5rem; }
.demo > p { color: var(--text-2); }
.demo .demo__label { margin: 24px 0 10px; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--azure); background: var(--surface-hover); color: var(--text); }
.demo .btn { width: 100%; white-space: normal; text-align: center; }
.demo .demo__note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 14px 0 0; color: var(--muted); font-size: 0.88rem;
}
.demo__note + .demo__note { margin-top: 6px; }
.demo__note svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- footer */
/* GIA Viewer footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 6rem 0 4rem;
  background: var(--bar);
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer__brand-mark { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__brand-mark img { height: 48px; width: 48px; object-fit: contain; }
.footer__brand-mark span { color: var(--text); font-family: var(--font-head); font-size: 1.15rem; }
.footer__brand-mark strong { color: var(--azure); font-weight: 600; }
.footer__brand p { color: var(--slate-500); max-width: 320px; font-size: 0.95rem; }
.footer__col h4 {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500); margin-bottom: 1rem;
}
.footer__col a {
  display: block; color: var(--text-2); font-size: 0.95rem; padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--slate-500); font-size: 0.9rem;
}

/* ------------------------------------------------------------ animations */
/* Only hidden when scripts run (the "js" class is set in <head>), so the page
   stays readable if JavaScript is off. The main site's js/i18n.js reveals them. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .float, .glow-dot { animation: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1120px) {
  .hero { display: block; min-height: 0; padding: 56px 0 40px; }
  .hero__copy { max-width: 640px; }
  .hero__visual {
    position: relative; top: auto; left: auto; transform: none;
    width: calc(100% - 2 * var(--gutter)); max-width: 900px; margin: 36px auto 0;
  }
}

@media (max-width: 1080px) {
  .pillar__grid, .solution__copy, .showcase, .contact__grid { grid-template-columns: 1fr; }
  .solution__copy { gap: 24px; }
  .pillar__grid--reverse .pillar__copy, .showcase--reverse .render { order: 0; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* On phones only the assistant card stays, under the scene. */
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .float--layers, .float--legend { display: none; }
  .float--agent { position: static; width: auto; margin-top: 4px; animation: none; }
}

/* Same breakpoint as the main site: burger menu, compact bar */
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav__logo { height: 42px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #000; border-bottom: 1px solid var(--border);
    padding: 2rem; gap: 2rem;
  }
  .nav.is-open .nav__link::after { display: none; }
  .nav__contact--desktop { display: none; }
  .nav__contact--mobile { display: flex; align-self: stretch; width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .cards--3, .cards--4, .steps, .duo { grid-template-columns: 1fr; }
  .solution, .demo { padding: 20px; }
}

@media (max-width: 420px) {
  :root { --gutter: 1.4rem; }
  .container { padding-inline: 1.1rem; }
  .hero__ctas .btn { flex: 1; }
}
