:root {
  color-scheme: light;
  --ink: #11131a;
  --muted: #5d6472;
  --paper: #fffaf4;
  --surface: #ffffff;
  --surface-soft: #f2f6f5;
  --surface-muted: #f5f7fb;
  --header-bg: rgba(255, 250, 244, 0.78);
  --header-border: rgba(255, 255, 255, 0.48);
  --hero-text: #303541;
  --button-soft: rgba(255, 255, 255, 0.55);
  --shadow: rgba(32, 35, 45, 0.12);
  --image-shadow: rgba(17, 19, 26, 0.28);
  --line: rgba(17, 19, 26, 0.14);
  --coral: #ff5a52;
  --teal: #00a99d;
  --blue: #3158ff;
  --gold: #f4b53f;
  --green: #22a06b;
  --graphite: #20232d;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #a9b2c3;
  --paper: #0f1218;
  --surface: #171b24;
  --surface-soft: #121922;
  --surface-muted: #202633;
  --header-bg: rgba(15, 18, 24, 0.78);
  --header-border: rgba(255, 255, 255, 0.12);
  --hero-text: #d3dae7;
  --button-soft: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.38);
  --image-shadow: rgba(0, 0, 0, 0.46);
  --line: rgba(255, 255, 255, 0.14);
  --graphite: #090b10;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: 0 18px 60px var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    top 0.25s ease,
    width 0.25s ease,
    padding 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.site-header.is-scrolled {
  top: 10px;
  width: min(1040px, calc(100% - 24px));
  padding-block: 9px;
  box-shadow: 0 14px 42px var(--shadow);
}

.brand,
.site-nav,
.hero-actions,
.hero-stats,
.ticker,
.feature-row,
.order-section,
.header-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 6px solid var(--ink);
  border-right-color: var(--coral);
  border-bottom-color: var(--teal);
  border-radius: 50%;
}

.site-nav {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.theme-toggle,
.primary-btn,
.secondary-btn,
.signup-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--button-soft);
  color: var(--ink);
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--header-bg);
  transition: transform 0.25s ease;
}

[data-theme="dark"] .theme-icon::after {
  transform: translate(7px, -2px);
}

.theme-label {
  font-size: 13px;
}

.nav-cta {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  min-height: 94vh;
  padding: 128px max(24px, calc((100vw - 1180px) / 2)) 72px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 90, 82, 0.22), transparent 34%),
    linear-gradient(215deg, rgba(0, 169, 157, 0.26), transparent 38%),
    linear-gradient(0deg, rgba(244, 181, 63, 0.18), transparent 44%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% 0 auto;
  width: 72vw;
  height: 48vh;
  background:
    linear-gradient(90deg, rgba(17, 19, 26, 0.92), rgba(49, 88, 255, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.2) 36px 38px);
  clip-path: polygon(11% 14%, 100% 0, 100% 100%, 0 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.line {
  display: block;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.hero-lede {
  max-width: 540px;
  color: var(--hero-text);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
  font-weight: 500;
  text-wrap: balance;
}

.hero-actions {
  gap: 12px;
  margin-top: 32px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.primary-btn {
  background: var(--coral);
  color: white;
  box-shadow: 0 14px 28px rgba(255, 90, 82, 0.28);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--button-soft);
}

.hero-stats {
  gap: 22px;
  margin: 42px 0 0;
}

.hero-stats div {
  min-width: 104px;
  padding-top: 14px;
  border-top: 3px solid var(--ink);
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(720px, 100%);
}

.hero-media img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 40px 110px var(--image-shadow);
  transform: rotate(-2deg);
}

.scroll-hint {
  position: absolute;
  right: 30px;
  bottom: 28px;
  z-index: 3;
  color: white;
  font-size: 12px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.ticker {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.ticker span {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.section {
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.design-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 18px;
}

.feature-tile {
  min-height: 260px;
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.feature-tile.large {
  grid-row: span 2;
  min-height: 538px;
  background:
    linear-gradient(160deg, rgba(255, 90, 82, 0.92), rgba(244, 181, 63, 0.82)),
    var(--coral);
  color: white;
}

.feature-tile.coral {
  background: var(--surface);
}

.feature-tile.teal {
  background: var(--teal);
  color: white;
}

.tile-index {
  display: block;
  margin-bottom: 110px;
  font-size: 13px;
  font-weight: 900;
}

.feature-tile h3 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.feature-tile p,
.feature-row p,
.assistant-card p {
  margin-bottom: 0;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 72px;
  align-items: center;
  background: var(--surface-soft);
}

.phone-panel {
  width: min(410px, 100%);
  padding: 22px;
  border: 10px solid #11131a;
  border-radius: 42px;
  background: var(--surface);
  box-shadow: 0 40px 80px var(--image-shadow);
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.app-topbar span {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.assistant-card {
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.assistant-card.active {
  background: var(--graphite);
  color: white;
}

.assistant-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 900;
}

.assistant-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  height: 96px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.waveform span {
  height: var(--h, 40%);
  border-radius: 999px;
  background: white;
  animation: pulse 1.2s ease-in-out infinite;
}

.waveform span:nth-child(2) { --h: 72%; animation-delay: 0.1s; }
.waveform span:nth-child(3) { --h: 44%; animation-delay: 0.2s; }
.waveform span:nth-child(4) { --h: 88%; animation-delay: 0.3s; }
.waveform span:nth-child(5) { --h: 58%; animation-delay: 0.4s; }
.waveform span:nth-child(6) { --h: 76%; animation-delay: 0.5s; }

@keyframes pulse {
  50% {
    transform: scaleY(0.55);
  }
}

.feature-list {
  max-width: 620px;
}

.feature-row {
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.icon-dot {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.icon-dot.blue { background: var(--blue); }
.icon-dot.red { background: var(--coral); }
.icon-dot.green { background: var(--green); }

.feature-row h3 {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-row p {
  color: var(--muted);
}

.specs-section {
  background: var(--paper);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.spec-grid div {
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.spec-grid div:last-child {
  border-right: 0;
}

.spec-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-grid strong {
  font-size: clamp(24px, 3vw, 38px);
}

.order-section {
  justify-content: space-between;
  gap: 24px;
  margin: 0 max(24px, calc((100vw - 1120px) / 2)) 80px;
  padding: 42px;
  border-radius: 8px;
  background: var(--graphite);
  color: white;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 10px;
}

.signup-form label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.signup-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
}

.signup-form button {
  align-self: end;
  padding: 0 22px;
  background: var(--gold);
  color: var(--ink);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-tile.reveal-on-scroll:nth-child(2),
.feature-row.reveal-on-scroll:nth-of-type(2) {
  transition-delay: 0.08s;
}

.feature-tile.reveal-on-scroll:nth-child(3),
.feature-row.reveal-on-scroll:nth-of-type(3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 112px;
    text-align: left;
  }

  .hero::before {
    width: 120vw;
    height: 36vh;
  }

  .hero-media {
    justify-self: center;
  }

  .hero-actions,
  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-lede {
    max-width: 620px;
  }

  .design-grid,
  .split-section,
  .spec-grid,
  .order-section,
  .signup-form {
    grid-template-columns: 1fr;
  }

  .feature-tile.large {
    min-height: 360px;
  }

  .split-section {
    gap: 42px;
  }

  .spec-grid div,
  .spec-grid div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .spec-grid div:last-child {
    border-bottom: 0;
  }

  .order-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-cta {
    padding-inline: 12px;
    font-size: 13px;
  }

  .theme-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .brand span:last-child {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    gap: 30px;
    padding: 104px 20px 48px;
  }

  h1 {
    font-size: clamp(50px, 18vw, 76px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .hero-lede {
    font-size: 17px;
    line-height: 1.58;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .hero-stats div {
    min-width: 0;
  }

  .hero-stats dt {
    font-size: 22px;
  }

  .hero-stats dd {
    font-size: 12px;
  }

  .section {
    padding: 72px 20px;
  }

  .feature-tile {
    padding: 22px;
  }

  .tile-index {
    margin-bottom: 72px;
  }

  .order-section {
    margin-inline: 20px;
    padding: 28px;
  }

  .scroll-hint {
    display: none;
  }
}
