@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "PingFang TC", "Hiragino Sans", "Noto Sans KR",
    Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Songti SC", Georgia, serif;

  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-soft: #f1ede3;
  --text: #1a1917;
  --text-muted: #6f695c;
  --line: #e3ddcd;
  --line-strong: #cdc3ac;
  --accent: #9a3e26;
  --accent-soft: #f2e3d8;

  --shadow-sm: 0 1px 2px rgba(26, 22, 15, 0.05);
  --shadow-md: 0 1px 3px rgba(26, 22, 15, 0.06);
  --shadow-lg: 0 2px 6px rgba(26, 22, 15, 0.08);
  --shadow: var(--shadow-sm);

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;

  --space-3xs: 0.25rem;
  --space-2xs: 0.4rem;
  --space-xs: 0.6rem;
  --space-sm: 0.85rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;

  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131210;
  --surface: #1a1712;
  --surface-soft: #201d16;
  --text: #f1ece0;
  --text-muted: #a89d89;
  --line: #322c22;
  --line-strong: #47402f;
  --accent: #e0a274;
  --accent-soft: #2c2117;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow: var(--shadow-sm);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.5;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  width: min(1060px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.1rem 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--surface);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.app-header-inner {
  justify-content: space-between;
}

.control-row {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.privacy-lang-switch {
  max-width: min(70vw, 30rem);
  overflow-x: auto;
  scrollbar-width: thin;
}

.lang-btn,
.icon-btn,
.back-btn {
  width: auto;
  height: auto;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lang-btn:hover,
.icon-btn:hover,
.back-btn:hover {
  color: var(--accent);
}

.lang-btn:active,
.icon-btn:active,
.back-btn:active {
  transform: scale(0.96);
}

.back-btn {
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.3rem 0.2rem;
  color: var(--text);
}

.lang-btn.is-active {
  border-color: var(--line-strong);
  color: var(--text);
}

.icon-btn {
  font-size: 0.95rem;
  padding: 0.25rem 0.35rem;
}

main {
  padding-bottom: 4rem;
}

.privacy-main {
  padding-top: 4.6rem;
  padding-bottom: 2.8rem;
}

.privacy-first {
  margin-top: 0;
}

.privacy-title {
  margin: 0.55rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 5.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0.7rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--text-md);
  max-width: 60ch;
}

.privacy-card {
  margin-top: var(--space-lg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem);
}

.privacy-card p {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.75;
  max-width: 68ch;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.hero-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding-top: 2rem;
}

.hero-logo {
  width: clamp(5.4rem, 12vw, 7rem);
  height: clamp(5.4rem, 12vw, 7rem);
  border-radius: var(--radius-lg);
  box-shadow: none;
  border: 1px solid var(--line-strong);
}

.borderless-app-icon {
  border: 0;
  box-shadow: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-subtitle {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 44ch;
}

.coming-soon-label {
  margin: 0;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  line-height: 0;
  transition: opacity 0.2s ease;
}

.app-store-link:hover,
.app-store-link:focus-visible {
  opacity: 0.72;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--text);
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.cta-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta-button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.cta-button-secondary:hover,
.cta-button-secondary:focus-visible {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.app-store-badge {
  display: block;
  width: clamp(10.5rem, 24vw, 13rem);
  height: auto;
}

.scroll-cue {
  margin-top: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0;
  border: 0;
  background: none;
  position: relative;
  transition: transform 0.2s ease;
}

.scroll-cue:hover {
  transform: translateY(2px);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section {
  margin-top: 5.6rem;
}

.kicker {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0.6rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 26ch;
}

.availability-platform {
  margin: 0.8rem 0 1rem;
  color: var(--text-muted);
}

.feature-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: feature;
}

.feature-card {
  counter-increment: feature;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 1.3rem 0 0;
  transition: border-color 0.25s ease;
}

.feature-card::before {
  content: counter(feature, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.feature-card:hover,
.feature-card:focus-within {
  border-top-color: var(--accent);
}

.feature-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-note {
  margin: 1.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 78ch;
}

.shot-stack {
  margin-top: 1.4rem;
  display: grid;
  gap: 2.8rem;
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
}

.shot-row.reverse {
  grid-template-columns: auto minmax(0, 1fr);
}

.shot-row.reverse .shot-copy {
  order: 2;
}

.shot-row.reverse .shot-frame {
  order: 1;
}

.shot-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
}

.shot-copy p {
  margin: 0.56rem 0 0;
  color: var(--text-muted);
  max-width: 40ch;
}

.shot-frame {
  margin: 0;
  width: 100%;
  max-width: 17rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
}

.shot-frame img {
  display: block;
  width: 100%;
}

.shot-gallery {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.shot-frame-small {
  width: clamp(6.8rem, 16vw, 8.8rem);
}

.site-footer {
  margin-top: 3.6rem;
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  border-bottom: 1px solid var(--line-strong);
}

.footer-inner a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.home-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: 4.6rem;
}

.home-gallery {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.home-app-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.home-app-link:hover,
.home-app-link:focus-visible {
  opacity: 0.75;
}

.home-app-icon {
  display: block;
  width: clamp(5.4rem, 12vw, 7rem);
  height: clamp(5.4rem, 12vw, 7rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.home-app-link:hover .home-app-icon,
.home-app-link:focus-visible .home-app-icon {
  border-color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.home-gallery .reveal:nth-child(1) { transition-delay: 0ms; }
.home-gallery .reveal:nth-child(2) { transition-delay: 60ms; }
.home-gallery .reveal:nth-child(3) { transition-delay: 120ms; }
.home-gallery .reveal:nth-child(4) { transition-delay: 180ms; }
.home-gallery .reveal:nth-child(5) { transition-delay: 240ms; }
.home-gallery .reveal:nth-child(6) { transition-delay: 300ms; }
.home-gallery .reveal:nth-child(7) { transition-delay: 360ms; }
.home-gallery .reveal:nth-child(8) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .feature-card,
  .site-header {
    transition: none;
  }
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
  }

  .shot-row.reverse .shot-copy,
  .shot-row.reverse .shot-frame {
    order: initial;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1060px, calc(100% - 1.2rem));
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .header-inner {
    justify-content: flex-end;
  }

  .app-header-inner {
    justify-content: space-between;
  }

  .privacy-lang-switch {
    max-width: min(68vw, 17rem);
  }

  .section {
    margin-top: 4.2rem;
  }

  .home-app-icon {
    width: clamp(4.4rem, 20vw, 6rem);
    height: clamp(4.4rem, 20vw, 6rem);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
