/* ============================================
   TaleNest Store — Unified Brand Design System
   Based on talenest.org design tokens (2026.03)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:wght@400;500;600;700&display=swap');

/* ============================================
   Color System (TaleNest Unified Brand)
   ============================================ */
:root {
  /* Primary — Pond (진한 파랑-녹색) */
  --pond: #4E6F79;
  --pond-dark: #3E5A64;
  --pond-light: #E8F0EE;
  --pond-mid: #9FBBD4;

  /* Nature — Sage */
  --sage: #8A9E97;
  --sage-light: #E8F0EE;

  /* Backgrounds */
  --lily: #F9F7F3;
  --lily-mid: #EDE5D0;
  --lily-dark: #C8BCB0;

  /* Accent */
  --accent: #4E6F79;
  --accent-light: #E8F0EE;
  --accent-mid: #6B8A92;

  /* Text */
  --text-dark: #2A3530;
  --text-mid: #546B65;
  --text-muted: #8A9E97;
  --text-light: #FFFFFF;

  /* Utility */
  --border: rgba(78, 111, 121, 0.15);
  --cream: #FCF3DC;
  --paper: #F9F7F3;
  --sky: #9FBBD4;

  /* Fonts */
  --font-heading: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-logo: 'Sour Gummy', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  /* Max Width */
  --max-w: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  background: var(--lily);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-top: 64px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-logo);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

a {
  color: var(--pond);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--pond-dark);
}

em {
  color: #D08B74;
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pond);
  margin-bottom: var(--space-3);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 247, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-4);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pond-dark);
  letter-spacing: -0.02em;
}

.brand-logo .mark {
  color: var(--pond);
}

.brand-logo .sub {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-link-hide {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  display: inline-block;
}

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

.nav-cart {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.nav-cart:hover {
  color: var(--pond);
}

.tm {
  font-size: 0.65em;
  vertical-align: super;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  background: var(--lily);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  margin: var(--space-4) 0 var(--space-3);
  max-width: 800px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 700px;
  margin: 0 auto var(--space-6);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-7) var(--space-4);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.section-header h2 {
  flex: 1;
}

.meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   Product Cards (Professional, Family, Learning)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.product-card {
  background: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-5);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--pond);
  box-shadow: 0 4px 12px rgba(78, 111, 121, 0.1);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
  color: var(--text-dark);
}

.product-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  line-height: 1.7;
}

.product-btn {
  align-self: flex-start;
  background: var(--pond);
  color: var(--text-light);
  border: 2px solid var(--pond);
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.product-btn:hover {
  background: var(--pond-dark);
  border-color: var(--pond-dark);
}

.product-btn:active {
  transform: scale(0.98);
}

/* ============================================
   Brand Strip
   ============================================ */
.brand-strip {
  background: var(--lily-mid);
  padding: var(--space-7) var(--space-4);
}

.brand-strip .eyebrow {
  color: var(--pond);
}

.brand-strip h2 {
  max-width: 800px;
  margin: 0 auto var(--space-4);
  line-height: 1.3;
}

.brand-strip p {
  max-width: 800px;
  margin: 0 auto var(--space-6);
  font-size: 1rem;
  color: var(--text-mid);
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.brand-stats > div {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pond);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: var(--space-6) var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-brand h3 {
  color: var(--text-light);
  margin-bottom: var(--space-3);
  font-size: 1.3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.footer-col h4 {
  color: var(--text-light);
  margin-bottom: var(--space-3);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--pond-light);
}

.trademark-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-toggle {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-light);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--text-light);
  color: var(--text-light);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0 var(--space-3);
  }

  .nav {
    gap: var(--space-2);
  }

  .nav-link-hide {
    display: none;
  }

  .section {
    padding: var(--space-6) var(--space-3);
  }

  .section-header {
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .brand-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .section {
    padding: var(--space-5) var(--space-3);
  }

  .product-card {
    padding: var(--space-4);
  }

  .stat-num {
    font-size: 1.5rem;
  }
}