/* AtlasGlass AG 66 */

:root {
  --paper: #ffffff;
  --haze: #f2f4f7;
  --ink: #0e1726;
  --slate: #556070;
  --line: #e3e7ed;
  --blue: #1e7be6;
  --blue-deep: #1563bf;
  --night: #08162e;
  --night-2: #10264a;
  --on-night: #e8eef8;
  --on-night-muted: #9fb0c8;
  --danger: #c62828;

  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(3rem, 1.4rem + 5.4vw, 6rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius-lg: 28px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 350;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.375rem; letter-spacing: -0.02em; }
.brand-mark { width: 28px; fill: var(--blue); }
.brand-word { font-weight: 400; }
.brand-word b { font-weight: 650; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--slate); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-model { font-size: var(--step-0); color: var(--blue); font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: var(--step-4); font-weight: 450; letter-spacing: -0.045em; line-height: .98; }
.lead { margin-top: 24px; font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 32px;
  margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.facts dt { font-size: var(--step--1); color: var(--slate); }
.facts dd { margin: 2px 0 0; font-size: var(--step-1); font-weight: 500; white-space: nowrap; }

.hero-visual { position: relative; padding: 6%; }
.hero-visual img { position: relative; width: 100%; mix-blend-mode: multiply; }
.viewfinder { position: absolute; inset: 0; pointer-events: none; }
.viewfinder i {
  position: absolute; width: 14%; aspect-ratio: 1;
  border: 0 solid var(--blue);
  animation: vf-in 1.1s var(--ease) .25s both;
}
.viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 18px; --dx: -18px; --dy: -18px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 18px; --dx: 18px; --dy: -18px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 18px; --dx: -18px; --dy: 18px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 18px; --dx: 18px; --dy: 18px; }
@keyframes vf-in {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  to { opacity: 1; transform: none; }
}
/* Film */
.film { background: var(--haze); padding-block: var(--section); }
.film-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.film h2 { font-size: var(--step-4); font-weight: 450; letter-spacing: -0.045em; line-height: 1; }
.film-copy p { margin-top: 24px; font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 38ch; }
.film-frame {
  position: relative; justify-self: center; width: min(100%, 340px); margin: 0; padding: 12px; border-radius: 52px;
  background: linear-gradient(160deg, #3a3f47, #111317 40%, #2b2f35);
  box-shadow: 0 40px 80px rgba(8, 22, 46, .3), inset 0 0 0 2px #4b5058;
}
.film-island { position: absolute; z-index: 1; top: 24px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); border-radius: 999px; background: #0b0d10; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 576 / 1024; border-radius: 40px; background: var(--night); }

/* AI */
.ai { background: var(--night); color: var(--on-night); padding-block: var(--section); }
.ai-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ai-media img { border-radius: var(--radius-lg); width: 100%; }
.ai-copy > p { margin-top: 20px; color: var(--on-night-muted); font-size: var(--step-1); line-height: 1.5; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 16px;
  padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12);
}
.steps li::before {
  content: counter(s);
  grid-row: span 2;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); font-size: var(--step--1);
}
.steps strong { font-weight: 500; }
.steps span { color: var(--on-night-muted); font-size: .9375rem; }
.ai-extra { margin-top: 36px; padding: 24px; border-radius: var(--radius); background: var(--night-2); }
.ai-extra p { margin-top: 8px; color: var(--on-night-muted); font-size: .9375rem; }

/* Section head */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; max-width: 42ch; }

/* Features */
.features { padding-block: var(--section); }
.studio { border-radius: var(--radius-lg); overflow: hidden; background: var(--haze); }
.studio img { width: 100%; }
.feature-list {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px clamp(24px, 4vw, 56px);
}
.feature-list svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feature-list p { margin-top: 8px; color: var(--slate); }

/* Sovereignty */
.sovereign { background: var(--haze); padding-block: var(--section); }
.sovereign-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 64px; align-items: end; }
.sovereign h2 { font-size: var(--step-4); font-weight: 450; letter-spacing: -0.045em; line-height: 1; }
.sovereign p + p { margin-top: 16px; }
.sovereign p:first-child { font-size: var(--step-1); line-height: 1.5; }

/* Specs */
.specs { padding-block: var(--section); }
.specs .section-head { grid-template-columns: 1fr; }
.specs-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.dims { position: sticky; top: 100px; padding: clamp(20px, 3vw, 36px); background: var(--haze); border-radius: var(--radius-lg); }
.dims .frame { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.dims .dim { fill: none; stroke: var(--blue); stroke-width: 1.25; }
.dims text { fill: var(--slate); stroke: none; font: 500 13px var(--font); text-anchor: middle; }
.dims text.v { text-anchor: start; }
.dims figcaption { margin-top: 16px; font-size: var(--step--1); color: var(--slate); text-align: center; }
.spec-table { margin: 0; }
.spec-table div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-table div:first-child { border-top: 1px solid var(--line); }
.spec-table dt { color: var(--slate); }
.spec-table dd { margin: 0; }
.note { margin-top: 24px; font-size: var(--step--1); color: var(--slate); }

/* App */
.app { padding-block: 0 var(--section); }
.app-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.app h2 { font-size: var(--step-2); }
.app p { margin-top: 12px; color: var(--slate); max-width: 46ch; }
.stores { display: flex; gap: 16px; flex-wrap: wrap; }
.store {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; width: 168px;
  border-radius: var(--radius); background: var(--haze); text-decoration: none;
  transition: background-color .2s var(--ease);
}
.store:hover { background: #e7ebf1; }
.store img { width: 100%; aspect-ratio: 1; background: #fff; padding: 10px; border-radius: 8px; }
.store span { display: flex; flex-direction: column; font-size: var(--step--1); color: var(--slate); line-height: 1.4; }
.store strong { color: var(--ink); font-weight: 500; font-size: 1rem; }

/* Live translation */
.translate {
  position: relative; overflow: hidden; padding-block: var(--section);
  background: linear-gradient(135deg, #0b5ed7 0%, #1e7be6 45%, #0a3f9c 100%); color: #fff;
}
.translate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10) 0 40%, transparent 40%) -20% 0 / 60% 100% no-repeat,
    linear-gradient(225deg, rgba(255, 255, 255, .07) 0 35%, transparent 35%) 120% 100% / 50% 80% no-repeat;
}
.translate-grid { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.translate h2 { font-size: var(--step-4); font-weight: 450; letter-spacing: -0.045em; line-height: 1; }
.translate-copy > p:first-of-type { margin-top: 24px; font-size: var(--step-1); line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 40ch; }
.translate-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.translate-points li { position: relative; padding: 8px 0 8px 30px; }
.translate-points li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 13px; height: 7px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.translate-note { margin-top: 24px; font-size: var(--step--1); color: rgba(255, 255, 255, .7); }

.phone {
  justify-self: center; width: min(100%, 380px); padding: 12px; border-radius: 52px;
  background: linear-gradient(160deg, #3a3f47, #111317 40%, #2b2f35); box-shadow: 0 40px 80px rgba(4, 20, 60, .45), inset 0 0 0 2px #4b5058;
}
.phone-screen {
  position: relative; padding: 64px 16px 28px; border-radius: 42px; overflow: hidden;
  background: linear-gradient(160deg, #eaf4ff 0%, #d7e9fb 60%, #c4ddf7 100%);
}
.phone-island { position: absolute; top: 14px; left: 50%; width: 34%; height: 28px; transform: translateX(-50%); border-radius: 999px; background: #0b0d10; }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chat li {
  position: relative; display: flex; flex-direction: column; gap: 2px; max-width: 86%;
  padding: 12px 16px; border-radius: 18px; font-size: .9375rem; line-height: 1.35; color: #0e1726;
  box-shadow: 0 2px 6px rgba(14, 23, 38, .06);
}
.chat li span:first-child { font-weight: 500; }
.chat li span + span { color: #4b6584; }
.chat .me { align-self: flex-end; background: #d4f0fb; border-top-right-radius: 4px; }
.chat .them { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
/* Bubbles arrive one by one the first time the phone scrolls into view (JS adds .is-live). */
.js-chat .chat li { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js-chat .chat.is-live li { opacity: 1; transform: none; }
.js-chat .chat.is-live li:nth-child(2) { transition-delay: .5s; }
.js-chat .chat.is-live li:nth-child(3) { transition-delay: 1s; }
.js-chat .chat.is-live li:nth-child(4) { transition-delay: 1.5s; }
.js-chat .chat.is-live li:nth-child(5) { transition-delay: 2s; }

/* FAQ */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 32px 64px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none; font-size: var(--step-1); font-weight: 450;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list details p { padding: 0 0 24px; color: var(--slate); max-width: 62ch; }
.faq-list details a { color: var(--blue); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer .brand { font-size: 1.125rem; }
.site-footer .brand-mark { width: 22px; }
.site-footer p { margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--slate); }
.footer-links a:hover { color: var(--ink); }
.copyright { grid-column: 1 / -1; font-size: var(--step--1); }

/* Responsive */
@media (max-width: 960px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .specs-grid, .faq-grid { grid-template-columns: 1fr; }
  .dims { position: static; }
  .app-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; border-radius: 10px; color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav ul {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav ul.is-open { display: flex; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; color: var(--ink); }
  .header-inner { gap: 8px; }
  .header-inner .btn-sm { order: 2; }
  .nav { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }

  .hero-grid, .ai-grid, .film-grid, .translate-grid, .sovereign-grid, .section-head { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; width: 100%; }
  .facts { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; gap: 36px; }
  .header-inner .btn-sm { display: none; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; }
  .store { width: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
}
