/* ============================================
   Jaapak — Shared Design System
   Warm orange spiritual theme, minimal & calm
   ============================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root tokens */
:root {
  --bg: #fdfbf7;
  --bg-card: #ffffff;
  --text: #2c2520;
  --text-muted: #6b5e54;
  --text-light: #9a8d82;
  --accent: #ff7a00;
  --accent-light: #ff9800;
  --accent-glow: rgba(255, 122, 0, 0.08);
  --accent-border: rgba(255, 122, 0, 0.18);
  --border: #ece6de;
  --border-light: #f3ede5;
  --shadow-sm: 0 1px 3px rgba(44, 37, 32, 0.04);
  --shadow-md: 0 4px 20px rgba(44, 37, 32, 0.06);
  --shadow-lg: 0 8px 40px rgba(44, 37, 32, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 900px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Hero Section (index page)
   ============================================ */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 122, 0, 0.3);
}

/* ============================================
   Section Layout
   ============================================ */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: #faf7f2;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Rank Journey
   ============================================ */
.rank-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.rank-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.rank-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.rank-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 0 4px var(--accent-glow);
  flex-shrink: 0;
  margin-top: 0.375rem;
}

.rank-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 2rem;
}

.rank-step:last-child .rank-line {
  display: none;
}

.rank-content {
  padding-bottom: 1.75rem;
}

.rank-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.rank-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Philosophy Block
   ============================================ */
.philosophy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.philosophy blockquote {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
}

.philosophy blockquote::before {
  content: "\201C";
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.philosophy cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

/* ============================================
   Privacy Commitment Strip
   ============================================ */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.commitment-item {
  padding: 1.5rem 1rem;
}

.commitment-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.commitment-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.commitment-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   CTA / Legal Links
   ============================================ */
.legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.legal-link:hover {
  background: var(--accent-glow);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Page Header (legal pages)
   ============================================ */
.page-header {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.effective-date {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2rem 0 0.5rem;
}

/* ============================================
   Legal Content
   ============================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  transition: border-color 0.2s;
}

.legal-content a:hover {
  border-color: var(--accent);
}

.contact-box {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}

.contact-box p {
  margin-bottom: 0.35rem;
  font-size: 0.925rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-inner {
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .commitment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
  }
}

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

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

  .legal-links {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 1rem;
  }
}
