:root {
  --bg: #f4f2ee;
  --fg: #111114;
  --muted: #6b6b70;
  --line: rgba(17, 17, 20, 0.12);
  --card: #ffffff;
  --shadow: rgba(17, 17, 20, 0.22);
}
html[data-theme="dark"] {
  --bg: #0d0d0f;
  --fg: #f2f2ef;
  --muted: #9a9a9f;
  --line: rgba(255, 255, 255, 0.14);
  --card: #161618;
  --shadow: rgba(0, 0, 0, 0.5);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.asg-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.asg-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.asg-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.asg-header.is-scrolled { border-bottom-color: var(--line); }
.asg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.asg-logo {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
}
.asg-nav { display: flex; align-items: center; }
.asg-nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.asg-nav__links a {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.asg-nav__links a:hover,
.asg-nav__links a.is-active { color: var(--fg); border-bottom-color: var(--fg); }
.asg-theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.asg-theme-toggle:hover { transform: rotate(18deg); border-color: var(--fg); }
.asg-theme-toggle svg { width: 18px; height: 18px; }
.asg-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.asg-burger span { width: 18px; height: 1.5px; background: var(--fg); transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.asg-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.asg-hero__bg { position: absolute; inset: 0; z-index: 0; transform-origin: center; will-change: transform; overflow: hidden; }
.asg-hero__video { width: 100%; height: 100%; object-fit: cover; }
.asg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    color-mix(in srgb, var(--bg) 96%, transparent) 0%,
    color-mix(in srgb, var(--bg) 84%, transparent) 42%,
    color-mix(in srgb, var(--bg) 40%, transparent) 70%,
    transparent 100%);
}
.asg-hero__content { position: relative; z-index: 1; padding-top: 64px; max-width: 660px; }
.asg-hero__title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 16px 0 22px;
}
.asg-hero__subtitle {
  color: var(--muted);
  max-width: 44ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  margin: 0 0 30px;
}
.asg-cta {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  min-height: 44px;
  transition: gap .2s ease, opacity .2s;
}
.asg-cta:hover { gap: 14px; }
.asg-cta--big { font-size: 13px; min-height: 48px; }
.asg-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.asg-scroll i { width: 1px; height: 28px; background: currentColor; animation: asg-scroll 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes asg-scroll { 0%,100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Sections ---------- */
.asg-section { padding: clamp(72px, 9vw, 132px) 0; border-top: 1px solid var(--line); }
.asg-section__head { max-width: 760px; }
.asg-h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; margin: 14px 0 0; }
.asg-h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.08; margin: 12px 0 0; }
.asg-lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); margin: 0 0 16px; }
.asg-muted { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }

.asg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.asg-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.asg-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px -26px var(--shadow); }
.asg-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.asg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.asg-card:hover .asg-card__media img { transform: scale(1.04); }
.asg-card__body { padding: 20px 22px 24px; }
.asg-card__tag { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.asg-card__body h3 { font-size: 1.25rem; font-weight: 500; margin: 8px 0 6px; letter-spacing: -.01em; }
.asg-card__body p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.asg-card__link { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

.asg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

.asg-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.asg-stat strong { display: block; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -.04em; }
.asg-stat span { color: var(--muted); font-size: .95rem; }

.asg-cta-section__inner { text-align: center; }
.asg-cta-section__inner .asg-h2 { margin-bottom: 14px; }
.asg-cta-section__inner .asg-muted { margin-inline: auto; }

.asg-page-hero { padding: 140px 0 40px; border-bottom: 1px solid var(--line); }
.asg-page-content { max-width: 760px; }
.asg-page-content h2, .asg-page-content h3 { font-weight: 400; letter-spacing: -.02em; }
.asg-page-content p { color: var(--muted); }

/* ---------- Footer ---------- */
.asg-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.asg-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.asg-footer__brand p { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.asg-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.asg-footer__nav a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.asg-footer__nav a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .asg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .asg-burger { display: flex; }
  .asg-nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .asg-nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .asg-nav__links li { border-bottom: 1px solid var(--line); }
  .asg-nav__links a { display: block; padding: 16px 0; font-size: 14px; border: 0; }
  .asg-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .asg-burger.is-open span:nth-child(2) { opacity: 0; }
  .asg-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .asg-split { grid-template-columns: 1fr; }
  .asg-hero__overlay {
    background: linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 92%, transparent) 0%,
      color-mix(in srgb, var(--bg) 76%, transparent) 55%,
      color-mix(in srgb, var(--bg) 92%, transparent) 100%);
  }
  .asg-hero__content { text-align: center; margin-inline: auto; }
  .asg-hero__subtitle { margin-inline: auto; }
}
@media (max-width: 560px) {
  .asg-grid { grid-template-columns: 1fr; }
  .asg-stats__grid { grid-template-columns: 1fr; gap: 32px; }
  .asg-wrap { width: calc(100% - 32px); }
}

/* Hero: left aligned like the original on desktop */
@media (min-width: 861px) {
  .asg-hero { justify-content: flex-start; padding-inline: max(24px, calc((100vw - 1200px) / 2)); }
  .asg-hero__content { margin-inline: 0; }
}

/* ---------- Scroll Showcase ---------- */
.asg-showcase { position: relative; height: 260svh; border-top: 1px solid var(--line); background: var(--bg); }
.asg-showcase__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 96px); overflow: hidden; padding: 0 24px; }
.asg-showcase__device { position: relative; height: min(84svh, 880px); width: auto; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #d8d8dc 0%, #a9a9af 45%, #6f6f75 100%); box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 40px 80px -30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.35); transform-origin: center; will-change: transform; }
html[data-theme="dark"] .asg-showcase__device { background: linear-gradient(145deg, #3a3a3e 0%, #232326 45%, #121214 100%); }
.asg-showcase__bezel { position: absolute; inset: 0; border-radius: 44px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); pointer-events: none; }
.asg-showcase__screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0d0d0f; }
.asg-showcase__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.asg-showcase__slide.is-active { opacity: 1; }
.asg-showcase__panels { position: relative; width: min(420px, 38vw); height: 320px; }
.asg-showcase__panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.asg-showcase__panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.asg-showcase__panel h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 12px; }
.asg-showcase__line { font-weight: 500; margin: 0 0 10px; }
.asg-showcase__text { color: var(--muted); margin: 0 0 20px; max-width: 34ch; }
.asg-showcase__dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.asg-showcase__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: .25; transition: width .25s, opacity .25s, border-radius .25s; }
.asg-showcase__dots i.is-active { opacity: 1; width: 22px; border-radius: 3px; }
@media (max-width: 860px) {
  .asg-showcase { height: 220svh; }
  .asg-showcase__sticky { flex-direction: column; gap: 18px; padding-top: 84px; }
  .asg-showcase__device { width: min(240px, 56vw); }
  .asg-showcase__panels { width: min(100%, 420px); height: 230px; text-align: center; }
  .asg-showcase__panel { align-items: center; }
  .asg-showcase__text { margin-inline: auto; }
}

.asg-social { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.asg-social a { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.asg-social a:hover { color: var(--fg); }

/* ---------- Phone Scroll Animation (hero shrinks into a phone) ---------- */
.asg-psa { position: relative; height: 320svh; }
.asg-psa__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.asg-psa__phone { position: relative; width: 100vw; height: 100svh; transform-origin: center; will-change: transform; }
.asg-psa__bezel { position: absolute; inset: 0; border-radius: 0; opacity: 0; pointer-events: none; z-index: 3; box-shadow: inset 0 0 0 12px #0b0b0d, inset 0 0 0 14px rgba(255,255,255,.18), 0 50px 100px -30px rgba(0,0,0,.55); will-change: opacity, border-radius; }
.asg-psa__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 0; background: var(--bg); }
.asg-psa__bg { position: absolute; inset: 0; z-index: 0; }
.asg-psa__video { width: 100%; height: 100%; object-fit: cover; }
.asg-psa__overlay { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 84%, transparent) 42%, color-mix(in srgb, var(--bg) 40%, transparent) 70%, transparent 100%); }
.asg-psa__content { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 100%; max-width: 720px; padding: 0 clamp(24px, 8vw, 120px); }
.asg-psa__title { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; margin: 16px 0 22px; }
.asg-psa__subtitle { color: var(--muted); max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.12rem); margin: 0 0 30px; }
@media (max-width: 860px) {
  .asg-psa__overlay { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 76%, transparent) 55%, color-mix(in srgb, var(--bg) 92%, transparent) 100%); }
  .asg-psa__content { text-align: center; left: 0; right: 0; margin-inline: auto; max-width: 100%; }
  .asg-psa__subtitle { margin-inline: auto; }
}
