/* ==========================================================================
   Miony — High-End Apple & Studio Aesthetic
   Tactile Depth, Fluid Typography, Editorial Precision
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Deep Luxe Canvas */
  --bg: #090a0f;
  --bg-hero: radial-gradient(ellipse 80% 50% at 50% -10%, #161a29 0%, #090a0f 100%);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-subtle: #12141c;
  --bg-glass: rgba(9, 10, 15, 0.85);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(56, 189, 248, 0.35);

  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-blue: #38bdf8;
  --accent-cyan: #06b6d4;

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-hero: radial-gradient(ellipse 80% 50% at 50% -10%, #e2e8f0 0%, #f8fafc 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-subtle: #edf2f7;
    --bg-glass: rgba(248, 250, 252, 0.9);

    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border-glow: rgba(2, 132, 199, 0.25);

    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;

    --accent-blue: #0284c7;
    --accent-cyan: #0891b2;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Minimalist Navigation Header */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.btn-nav {
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back:hover {
  background: var(--text);
  color: var(--bg) !important;
  border-color: var(--text);
  transform: translateX(-2px);
}

.btn-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   HERO & APP STORE CINEMATIC HEADER BANNER
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 64px;
  text-align: center;
}

.hero-header-banner {
  max-width: 1180px;
  margin: 0 auto 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(56, 189, 248, 0.15);
  background: #000000;
  line-height: 0;
  position: relative;
}

.hero-header-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-eyebrow-badge {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.appstore-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.appstore-lines {
  text-align: left;
  line-height: 1.15;
}

.appstore-tiny {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.8;
  display: block;
}

.appstore-bold {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero-micro-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   APP GALLERY STAGE — Immersive Visual Rhythm
   ========================================================================== */
.gallery-section {
  padding: 20px 0 100px;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 50px -10px rgba(56, 189, 248, 0.25);
}

.gallery-img-wrap {
  width: 100%;
  background: #000;
  overflow: hidden;
  line-height: 0;
  border-bottom: 1px solid var(--border);
}

.gallery-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.025);
}

.gallery-caption {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.gallery-caption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gallery-caption h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.gallery-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

.gallery-caption p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.48;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pillar-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.pillar-top h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pillar-top p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pillar-spec {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   AUTHENTIC MIONY TRAVEL CARDS (Matching native in-app visuals)
   ========================================================================== */
.waiter-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.cards-showcase-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cards-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.cards-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

.card-theme-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.theme-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-pill-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-pill-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Pixel-Exact Native Card Component */
.native-travel-card {
  border-radius: 28px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.native-travel-card.theme-peanuts {
  background: linear-gradient(155deg, #7c4832 0%, #3a1c12 100%);
}

.native-travel-card.theme-dairy {
  background: linear-gradient(155deg, #3871ab 0%, #163354 100%);
}

.native-travel-card.theme-soy {
  background: linear-gradient(155deg, #46673c 0%, #1e331c 100%);
}

.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.card-category-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.card-fullscreen-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.card-primary-statement {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.prohibition-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.prohibition-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 14px;
}

.prohibition-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5252;
}

.prohibition-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prohibition-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-x {
  color: #ff6b6b;
  font-weight: 700;
}

.cross-contamination-strip {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.86rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.utensils-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q-btn {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: var(--font);
  transition: color 0.15s ease;
}

.faq-q-btn:hover {
  color: var(--accent-blue);
}

.faq-arrow-svg {
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-arrow-svg {
  transform: rotate(180deg);
  fill: var(--text);
}

.faq-a-box {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-a-box {
  display: block;
}

/* ==========================================================================
   BOTTOM CTA & FOOTER
   ========================================================================== */
.bottom-cta {
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.bottom-cta h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.bottom-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   LEGAL PAGES STYLING (Privacy & Terms)
   ========================================================================== */
.legal-body {
  max-width: 780px;
  margin: 48px auto 90px;
}

.legal-body h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-body p, .legal-body ul {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin-bottom: 18px;
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin: 28px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-showcase-wrap {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-header-banner {
    margin: 0 auto 32px;
    border-radius: var(--radius-sm);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .native-travel-card {
    padding: 20px;
  }
  .card-primary-statement {
    font-size: 1.25rem;
  }
}
