/* === Design Tokens === */
:root {
  --color-bg: #FAFAF8;
  --color-bg-warm: #F3F0E8;
  --color-bg-card: #FFFFFF;
  --color-amber: #D4920B;
  --color-amber-bright: #F5A623;
  --color-amber-bg: #FFF8E7;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-border: #E5E2DA;
  --color-nav-bg: rgba(250, 250, 248, 0.92);
  --max-width: 1060px;
  --radius: 14px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Source Serif 4", "Georgia", serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav-brand {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
}

a { color: var(--color-amber); text-decoration: none; }
a:hover { color: var(--color-amber-bright); }

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

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--color-border); }

.bg-warm { background: var(--color-bg-warm); }

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-amber);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* === Hero === */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  border-top: none;
}

.hero + section { border-top: none; }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero h1 .amber { color: var(--color-amber); }

.hero .subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 44px;
}

.hero-screenshot {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 16px 48px rgba(212, 146, 11, 0.12),
    0 24px 64px rgba(0,0,0,0.08);
}

.screenshot-placeholder {
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9/19.5;
  border-radius: 28px;
  background: linear-gradient(145deg, #2B2930, #1C1B1F);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFC107;
  font-family: "DM Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 16px 48px rgba(212, 146, 11, 0.12),
    0 24px 64px rgba(0,0,0,0.08);
}

/* === Two Modes === */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mode-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--color-border);
}

.mode-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-amber);
}

.mode-card p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

/* === Feature List === */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-item:nth-child(even) {
  direction: rtl;
}

.feature-item:nth-child(even) > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-text p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.feature-screenshot {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.feature-screenshot-placeholder {
  aspect-ratio: 9/19.5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #2B2930, #1C1B1F);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* === Also Section / Detail Grid === */
.also-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.also-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.also-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.also-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.also-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* === Deep Features === */
.deep-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deep-feature {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.deep-feature:last-child { border-bottom: none; }

.deep-feature h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-amber);
}

.deep-feature p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 12px;
  max-width: 720px;
}

.deep-feature ul {
  list-style: none;
  padding: 0;
}

.deep-feature li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.deep-feature li::before {
  content: "\2605";
  color: var(--color-amber-bright);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  top: 8px;
}

.code-example {
  background: #1C1B1F;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.85rem;
  color: #CAC4D0;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto;
}

/* === Footer === */
.footer {
  background: #1C1B1F;
  border-top: none;
  padding: 48px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-links a {
  color: #CAC4D0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
}

.footer-links a:hover { color: #E6E1E5; }

.footer-tagline {
  color: #CAC4D0;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-style: italic;
}

.footer-copyright {
  color: #888;
  font-size: 0.8rem;
}

/* === Privacy Page === */
.privacy-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px;
}

.privacy-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.privacy-content .effective-date {
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.privacy-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-amber);
}

.privacy-content p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* === Responsive === */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }

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

  .feature-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-item:nth-child(even) { direction: ltr; }

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

  .hero-screenshot,
  .screenshot-placeholder { max-width: 220px; }
}
