:root {
  --bg: #050505;
  --bg-soft: #0c0c0c;
  --panel: rgba(18, 18, 18, 0.88);
  --panel-strong: #131313;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f1;
  --muted: #a4a7af;
  --yellow: #f5cf16;
  --yellow-soft: rgba(245, 207, 22, 0.18);
  --blue: #1596ff;
  --blue-soft: rgba(21, 150, 255, 0.18);
  --danger: #9d1d25;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 207, 22, 0.12), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(21, 150, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #080808 0%, #050505 45%, #070707 100%);
  font-family: "Avenir Next", "Pretendard", "SF Pro Display", "Apple SD Gothic Neo", sans-serif;
}

img {
  display: block;
  width: 100%;
}

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

button {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-shell-legal {
  width: min(calc(100% - 40px), 980px);
}

.topbar,
.topbar-actions,
.topnav,
.hero-actions,
.footer,
.footer-links,
.language-toggle,
.gallery-header,
.release-notes {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 28px;
}

.topbar-actions {
  gap: 18px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topnav {
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a,
.footer-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.topnav a:hover,
.footer-links a:hover,
.release-notes a:hover {
  color: var(--text);
}

.language-toggle {
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active {
  color: #050505;
  background: var(--yellow);
}

.hero,
.feature-section,
.gallery-section,
.release-section,
.contact-section,
.legal-page {
  margin-top: 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}

.hero-copy,
.release-card,
.legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(12, 12, 12, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.hero-copy::after,
.release-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -38% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 150, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
}

.hero-text,
.section-copy,
.feature-card p,
.release-card p,
.legal-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 62ch;
  margin: 18px 0 0;
}

.hero-actions {
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  color: #050505;
  background: var(--yellow);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-stats div,
.feature-card,
.gallery-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero-stats dd {
  margin: 0;
  font-weight: 700;
}

.hero-visual {
  min-height: 720px;
  display: grid;
  place-items: center;
}

.phone-stack {
  position: relative;
  width: 100%;
  min-height: 720px;
}

.device {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020202;
  box-shadow: var(--shadow);
}

.device-phone {
  width: min(320px, 58vw);
  border-radius: 42px;
}

.device-front {
  position: absolute;
  top: 84px;
  left: 3%;
  z-index: 2;
  transform: rotate(-6deg);
}

.device-back {
  position: absolute;
  top: 12px;
  right: 0;
  transform: rotate(7deg);
  opacity: 0.92;
}

.device-watch,
.device-watch-grid {
  border-radius: 36px;
}

.device-watch {
  position: absolute;
  bottom: 34px;
  left: 34%;
  width: min(190px, 34vw);
  z-index: 3;
  outline: 10px solid rgba(255, 255, 255, 0.03);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-card-highlight {
  background:
    linear-gradient(180deg, rgba(245, 207, 22, 0.12), rgba(245, 207, 22, 0.03)),
    var(--panel);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #050505;
  background: var(--yellow);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-card strong {
  font-size: 1.2rem;
}

.contact-meta {
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.contact-submeta {
  color: rgba(244, 244, 241, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.feature-card-accent {
  background:
    linear-gradient(180deg, rgba(245, 207, 22, 0.08), transparent 120px),
    var(--panel);
}

.feature-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--yellow);
  background: var(--yellow-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-block {
  padding: 24px;
  margin-top: 20px;
}

.gallery-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.gallery-header p {
  margin: 0;
  color: var(--muted);
}

.screenshot-row {
  display: grid;
  gap: 16px;
}

.screenshot-row-phone {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.screenshot-row-watch {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screenshot-row .device {
  width: 100%;
  margin: 0;
}

.device-watch-grid {
  max-width: 210px;
  justify-self: center;
}

.release-card {
  padding: 34px;
}

.release-notes {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.release-notes div {
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.release-notes span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page {
  padding-bottom: 18px;
}

.legal-card {
  padding: 30px;
}

.legal-card section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.legal-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  gap: 18px;
  flex-wrap: wrap;
}

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

  .hero-visual {
    min-height: 620px;
  }

  .screenshot-row-phone {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--content-width));
    padding-top: 18px;
  }

  .topbar,
  .topbar-actions,
  .gallery-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .release-card,
  .legal-card,
  .gallery-block {
    padding: 22px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .hero-stats,
  .feature-grid,
  .contact-grid,
  .screenshot-row-phone,
  .screenshot-row-watch {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .phone-stack {
    min-height: auto;
  }

  .phone-stack {
    display: grid;
    justify-items: center;
    gap: 18px;
  }

  .device-front,
  .device-back,
  .device-watch {
    position: static;
    transform: none;
    width: min(100%, 320px);
  }

  .device-watch {
    width: min(220px, 70vw);
  }
}
