/* Astrolume Website Styles — Deep Void + Gold */

/* ============================================
   Variables & Reset
   ============================================ */

:root {
  /* Astrolume signature palette (앱과 동일) */
  --void: #0B0C16;
  --void-2: #14102a;
  --midnight: #1A1437;
  --surface: #13141F;
  --surface-2: #1c1d2a;
  --border: rgba(212, 175, 122, 0.15);
  --border-strong: rgba(212, 175, 122, 0.35);

  --gold: #D4AF7A;
  --gold-bright: #F2D9A0;
  --gold-deep: #9B7F4F;
  --violet: #9B7FD4;
  --rose: #E89DA7;

  --ink-primary: #E8E0D0;
  --ink-secondary: #B5B0C7;
  --ink-muted: #6F6C85;
  --ink-soft: #9B91A5;

  --shadow-glow: 0 0 80px rgba(155, 127, 212, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-store: 0 8px 32px rgba(0, 0, 0, 0.6);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;
  --spacing-3xl: 7rem;

  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-primary);
  background:
    radial-gradient(ellipse 1200px 800px at 20% 0%, rgba(155, 127, 212, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 600px at 80% 100%, rgba(212, 175, 122, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 50%, var(--midnight) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold-bright);
}

/* ============================================
   Container
   ============================================ */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 큰 화면 (1440px+) — 컨테이너 살짝 넓게 */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 12, 22, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(212, 175, 122, 0.35);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--gold);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: 11rem 0 6rem;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Starfield (deterministic dots via box-shadow) */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(242, 217, 160, 0.7) 50%, transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(155, 127, 212, 0.5) 50%, transparent),
    radial-gradient(2px 2px at 47% 22%, rgba(242, 217, 160, 0.8) 50%, transparent),
    radial-gradient(1px 1px at 62% 78%, rgba(155, 127, 212, 0.55) 50%, transparent),
    radial-gradient(1.5px 1.5px at 76% 36%, rgba(242, 217, 160, 0.6) 50%, transparent),
    radial-gradient(1px 1px at 88% 12%, rgba(242, 217, 160, 0.55) 50%, transparent),
    radial-gradient(1.5px 1.5px at 8% 88%, rgba(155, 127, 212, 0.5) 50%, transparent),
    radial-gradient(2.5px 2.5px at 36% 92%, rgba(242, 217, 160, 0.7) 50%, transparent),
    radial-gradient(1px 1px at 91% 56%, rgba(212, 175, 122, 0.5) 50%, transparent);
  animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.55; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(212, 175, 122, 0.10);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 1.8rem;
}

.hero-title .accent {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  background: var(--void);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-store);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-store:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(212, 175, 122, 0.25);
  color: var(--ink-primary);
}

.btn-store svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-store-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.btn-store-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.app-icon-large {
  width: 100%;
  max-width: 280px;
  border-radius: 24%;
  box-shadow:
    0 0 80px rgba(212, 175, 122, 0.30),
    0 24px 60px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Section common
   ============================================ */

section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-bottom: 3rem;
  text-align: center;
}

/* ============================================
   Screenshots scroll
   ============================================ */

.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 2rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
  justify-content: center;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 8px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 4px;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
  width: 270px;          /* 균일 width — 캡션 정렬 보장 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-item img {
  width: 270px;
  height: 480px;         /* 명시 height — 9:16 비율 보장. 일관 정렬 */
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  box-shadow:
    0 0 60px rgba(155, 127, 212, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.5);
}

.screenshot-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
  min-height: 1.4em;     /* 캡션 1줄 강제 — 정렬 균일 */
}

/* 큰 화면에서 스크린샷 살짝 더 큼 */
@media (min-width: 1440px) {
  .screenshot-item,
  .screenshot-item img {
    width: 300px;
  }
  .screenshot-item img {
    height: 533px;
  }
}

/* ============================================
   Features grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* ============================================
   Privacy highlight
   ============================================ */

.privacy-highlight {
  background:
    radial-gradient(circle at 80% 50%, rgba(155, 127, 212, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(20, 16, 42, 0.6) 50%, transparent 100%);
}

.privacy-highlight .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.privacy-text .section-label {
  text-align: left;
}

.privacy-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-bottom: 1.4rem;
}

.privacy-text > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 1.8rem;
}

.privacy-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.privacy-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--ink-primary);
}

.check-icon {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.privacy-badge-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.privacy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.badge-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.badge-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ============================================
   Premium
   ============================================ */

.premium {
  text-align: center;
}

.premium-sub {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto;
}

.premium-perk {
  padding: 1.8rem 1.2rem;
  background: linear-gradient(180deg, rgba(212, 175, 122, 0.06) 0%, rgba(212, 175, 122, 0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.perk-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.premium-perk h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.premium-perk p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ============================================
   Languages
   ============================================ */

.languages {
  text-align: center;
}

.languages-list {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.9;
  color: var(--ink-primary);
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

.languages-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ============================================
   CTA
   ============================================ */

.cta {
  text-align: center;
  padding: 6rem 0 4rem;
  background:
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(212, 175, 122, 0.10) 0%, transparent 60%);
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink-primary);
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
}

.cta > .container > p {
  font-size: 1.1rem;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
}

.cta .store-buttons {
  justify-content: center;
  margin-bottom: 2rem;
}

.cta-disclaimer {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 3rem 0 2rem;
  background: rgba(5, 6, 12, 0.65);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gold-bright);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-contact {
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: right;
}

.footer-contact a {
  color: var(--ink-secondary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ============================================
   Legal pages (privacy / terms)
   ============================================ */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem var(--spacing-md) 5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.legal .updated {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.legal h3 {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-primary);
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 0.7rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal strong {
  color: var(--ink-primary);
  font-weight: 600;
}

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

.legal .back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border-strong);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero {
    padding: 9rem 0 4rem;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-image {
    order: 1;
  }
  .app-icon-large {
    max-width: 180px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-pills {
    justify-content: center;
  }
  .store-buttons {
    justify-content: center;
  }
  .privacy-highlight .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .privacy-text .section-label {
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-links {
    align-items: center;
  }
  .footer-contact {
    text-align: center;
  }
  section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 1rem;
  }
  .screenshots-scroll {
    justify-content: flex-start;     /* 모바일에서 가로 스크롤 자연스럽게 */
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .screenshot-item,
  .screenshot-item img {
    width: 220px;
  }
  .screenshot-item img {
    height: 391px;                   /* 220 × 16/9 = 391 */
  }
  .privacy-badge-group {
    grid-template-columns: 1fr;
  }
}
