/* ==========================================================================
   Sudoku Simple – Just Numbers Landing Page Stylesheet
   Designed with Editorial Serif Typography & Modern Glassmorphism/Shadows
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  --color-forest: #06372A;
  --color-forest-rgb: 6, 55, 42;
  --color-forest-light: #0D4E3E;
  --color-lime: #D1EA84;
  --color-lime-light: #E6F5BE;
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F8FAF9;
  --color-text-main: #1D2A26;
  --color-text-muted: #566861;
  --color-text-light: #7E938B;
  --color-accent-green: #2ECC71;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 4px 20px rgba(6, 55, 42, 0.03);
  --shadow-md: 0 16px 40px rgba(6, 55, 42, 0.06);
  --shadow-lg: 0 30px 60px rgba(6, 55, 42, 0.1);
  --shadow-phone: 0 30px 70px rgba(6, 55, 42, 0.18);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Dark Mode Variables & Style Overrides --- */
body.dark-mode {
  /* === Backgrounds === */
  --color-bg-white: #0D1117;       /* GitHub-dark near-black base */
  --color-bg-light: #161B22;       /* Elevated card / panel surfaces */

  /* === Typography === */
  --color-text-main: #F0F6FC;      /* Near-pure white for headings */
  --color-text-muted: #C9D1D9;     /* Soft cool white for body copy */
  --color-text-light: #8B949E;     /* Muted grey-white for placeholders & captions */

  /* === Brand Accent === */
  --color-forest: #3FB950;         /* Vivid GitHub-green for active states */
  --color-forest-light: #2EA043;   /* Slightly deeper green hover */

  /* === Shadows === */
  --shadow-sm:    0 2px 8px  rgba(0,0,0,0.55);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.65);
  --shadow-lg:    0 20px 56px rgba(0,0,0,0.75);
  --shadow-phone: 0 28px 64px rgba(0,0,0,0.85);
}

/* Base body overrides */
body.dark-mode {
  background-color: var(--color-bg-white);
  color: var(--color-text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ── Appbar ─────────────────────────────────────────── */
body.dark-mode .appbar.sticky {
  background-color: rgba(13, 17, 23, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.9);
}

body.dark-mode .logo {
  color: #F0F6FC;
}

body.dark-mode .logo-title {
  color: #F0F6FC;
}

body.dark-mode .logo-subtitle {
  color: #8B949E;
}

body.dark-mode .logo-img {
  filter: brightness(1.1) drop-shadow(0 0 6px rgba(63,185,80,0.25));
}

body.dark-mode .nav-link {
  color: var(--color-text-muted);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  color: var(--color-lime);
}

body.dark-mode .nav-link::after {
  background-color: var(--color-lime);
}

/* ── Buttons ─────────────────────────────────────────── */
body.dark-mode .btn-primary {
  background-color: #3FB950; /* Same green as font accent */
  color: #0D1117;
  box-shadow: 0 0 0 0 rgba(63,185,80,0);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .btn-primary:hover {
  background-color: #5AC86A;
  color: #0D1117;
  box-shadow: 0 0 20px rgba(63,185,80,0.35);
}

body.dark-mode .btn-outline {
  border-color: rgba(240, 246, 252, 0.2);
  color: var(--color-text-main);
}

body.dark-mode .btn-outline:hover {
  border-color: var(--color-lime);
  background-color: rgba(63, 185, 80, 0.1);
  color: var(--color-lime);
}

/* ── Hero ─────────────────────────────────────────────── */
body.dark-mode .hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 35%, transparent 65%),
    radial-gradient(circle at 15% 75%, rgba(220, 230, 255, 0.04) 0%, transparent 45%),
    var(--color-bg-white);
}


/* ── Feature Cards ───────────────────────────────────── */
body.dark-mode .feature-card {
  background-color: var(--color-bg-light);
  border: 1px solid rgba(48, 54, 61, 1);
}

body.dark-mode .card-badge {
  background-color: #3FB950; /* Solid green — same as font accent */
  color: #FFFFFF;
  border: none;
}

body.dark-mode .feature-card:hover {
  border-color: rgba(63, 185, 80, 0.25);
  background: linear-gradient(145deg, rgba(63,185,80,0.04) 0%, var(--color-bg-light) 100%);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(63,185,80,0.15);
}

body.dark-mode .card-bg-orb {
  opacity: 0.12;
  filter: blur(60px);
}

/* ── Tour Tabs ──────────────────────────────────────── */
body.dark-mode .tour-tab:hover {
  background-color: rgba(240, 246, 252, 0.04);
}

body.dark-mode .tour-tab.active {
  background-color: rgba(63, 185, 80, 0.07);
  border-left-color: #3FB950;
}

body.dark-mode .tour-tab .tab-number {
  color: var(--color-text-light);
}

body.dark-mode .tour-tab:hover .tab-number {
  color: var(--color-lime);
}

body.dark-mode .tour-tab.active .tab-number {
  color: #3FB950;
}

body.dark-mode .tour-tab .tab-title {
  color: var(--color-text-muted);
}

body.dark-mode .tour-tab.active .tab-title {
  color: #F0F6FC;
}

body.dark-mode .showcase-glow-container {
  background-color: #0D1117;
}

body.dark-mode .tours-visual {
  background: transparent;
}

/* ── Download Section ───────────────────────────────── */
body.dark-mode .download-section {
  background-color: var(--color-bg-light); /* #161B22 — matches card surfaces */
  color: var(--color-text-main);
  border-top: 1px solid rgba(48, 54, 61, 0.9);
  border-bottom: 1px solid rgba(48, 54, 61, 0.9);
}

body.dark-mode .download-title {
  color: var(--color-text-main);
}

body.dark-mode .download-desc {
  color: var(--color-text-muted);
  opacity: 1;
}

/* ── Newsletter ─────────────────────────────────────── */
body.dark-mode .newsletter {
  background-color: #0D1F15; /* Deep dark forest green — distinct from surrounding sections */
  border: 1px solid rgba(63, 185, 80, 0.12);
}

body.dark-mode .newsletter-form-container {
  background-color: #161B22; /* Dark elevated card — consistent with theme */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(48, 54, 61, 0.9);
}

body.dark-mode .newsletter-form {
  background-color: #0D1117; /* Dark input row matches base background */
  border-color: rgba(48, 54, 61, 1);
  box-shadow: none;
}

body.dark-mode .newsletter-input-group {
  border-bottom-color: rgba(48, 54, 61, 1);
}

body.dark-mode .newsletter-input {
  color: var(--color-text-main);
}

body.dark-mode .newsletter-input::placeholder {
  color: var(--color-text-light);
}

body.dark-mode #form-feedback {
  color: #3FB950 !important;
}

/* ── Footer ─────────────────────────────────────────── */
body.dark-mode .app-footer {
  background: linear-gradient(180deg, #090D13 0%, #06090D 100%);
  border-top-color: rgba(48, 54, 61, 0.8);
}

body.dark-mode .footer-top-card {
  background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
  border: 1px solid rgba(48, 54, 61, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .footer-tagline-link {
  color: var(--color-lime);
}

body.dark-mode .footer-tagline-link:hover {
  color: var(--color-lime);
  text-decoration: underline;
}

body.dark-mode .footer-social-title {
  color: var(--color-lime);
}

body.dark-mode .footer-col-title {
  color: var(--color-text-main);
}

body.dark-mode .footer-nav-link {
  color: var(--color-text-muted);
}

body.dark-mode .footer-nav-link svg {
  stroke: var(--color-lime);
}

body.dark-mode .footer-nav-link:hover {
  color: var(--color-lime);
}

body.dark-mode .footer-bottom-bar {
  border-top-color: rgba(48, 54, 61, 0.6);
}

body.dark-mode .footer-bottom-credit a {
  color: var(--color-lime);
}

body.dark-mode .footer-back-to-top {
  background: #161B22;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-lime);
}

body.dark-mode .footer-back-to-top svg {
  stroke: var(--color-lime);
}

body.dark-mode .footer-back-to-top:hover {
  background: var(--color-lime);
  color: #090D13;
  border-color: var(--color-lime);
}

body.dark-mode .footer-back-to-top:hover svg {
  stroke: #090D13;
}

body.dark-mode .footer-tagline-link:hover {
  color: var(--color-lime);
}

body.dark-mode .footer-credit a:hover {
  color: var(--color-lime);
}

body.dark-mode .hamburger span {
  background-color: var(--color-text-muted);
}

/* ── Privacy Page ────────────────────────────────────── */
body.dark-mode .privacy-intro-box {
  background-color: var(--color-bg-light);
  border-color: rgba(48, 54, 61, 1);
}

body.dark-mode .privacy-section-card {
  border-bottom-color: rgba(48, 54, 61, 0.8);
}

body.dark-mode .sidebar-link.active {
  color: #3FB950;
  border-left-color: #3FB950;
  background-color: rgba(63, 185, 80, 0.08);
}

body.dark-mode .sidebar-link:hover {
  color: var(--color-text-main);
  background-color: rgba(240, 246, 252, 0.04);
}

body.dark-mode .privacy-sec-body a {
  color: #3FB950;
}

body.dark-mode .privacy-sec-body a:hover {
  color: #5AC86A;
}

body.dark-mode .privacy-sidebar {
  background-color: var(--color-bg-light);
  border-color: rgba(48, 54, 61, 1);
}

/* ── Effective Date tag — fit to text only ─── */
.privacy-effective-date {
  display: inline-block;
  width: fit-content;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-white);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Utility Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-forest);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Layout Containers --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--color-forest);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-forest-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 55, 42, 0.15);
}

.btn-newsletter {
  background-color: var(--color-forest);
  color: var(--color-bg-white);
  padding: 0.85rem 2rem;
}

.btn-newsletter:hover {
  background-color: var(--color-forest-light);
}

/* --- Appbar / Sticky Header --- */
.appbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.appbar.sticky {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 55, 42, 0.05);
  box-shadow: var(--shadow-sm);
}

.appbar-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
  transition: var(--transition-smooth);
  position: relative;
}

.theme-toggle:hover {
  background-color: rgba(6, 55, 42, 0.05);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.dark-mode .theme-toggle {
  color: #FFFFFF;
}

body.dark-mode .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.dark-mode .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

.logo {
  font-family: var(--font-sans);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.logo-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-forest);
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-lime);
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid var(--color-forest);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-forest);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-forest);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 7rem;
  background: radial-gradient(circle at 80% 20%, var(--color-lime-light) 0%, var(--color-bg-white) 60%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  color: var(--color-forest);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s var(--color-text-main) cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-store-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-store-badge {
  display: block;
  height: 50px;
  transition: var(--transition-smooth);
}

.hero-store-badge img {
  height: 100%;
  width: auto;
  border-radius: 8px;
}

.hero-store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(6, 55, 42, 0.12);
}

/* Hero Tilted Phone Mockups */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  position: absolute;
  width: 200px;
  border-radius: 36px;
  box-shadow: var(--shadow-phone);
  background-color: #000000;
  padding: 8px; /* Simulated outer bezel */
  overflow: hidden;
  transition: var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-mockup img {
  border-radius: 28px;
  width: 100%;
  display: block;
}

.phone-left {
  transform: translateX(-120px) translateY(20px) rotate(-8deg) scale(0.9);
  z-index: 1;
}

.phone-center {
  z-index: 3;
  transform: scale(1.02);
}

.phone-right {
  transform: translateX(120px) translateY(20px) rotate(8deg) scale(0.9);
  z-index: 2;
}

.hero-visual:hover .phone-left {
  transform: translateX(-150px) translateY(10px) rotate(-14deg) scale(0.9);
}

.hero-visual:hover .phone-center {
  transform: translateY(-15px) scale(1.05);
}

.hero-visual:hover .phone-right {
  transform: translateX(150px) translateY(10px) rotate(14deg) scale(0.9);
}

/* --- Features Section --- */
.features-section {
  padding: 7rem 0;
  background-color: var(--color-bg-light);
}

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

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

.feature-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3.5rem 3rem; /* Generous spacing all around */
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* 55/45 split */
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(6, 55, 42, 0.03);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 55, 42, 0.08);
  background: linear-gradient(180deg, var(--color-bg-white) 0%, rgba(209, 234, 132, 0.02) 100%);
}

.feature-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-forest);
  background-color: var(--color-lime-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1rem;
  border: 1px solid rgba(6, 55, 42, 0.08);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feature-card-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-forest);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

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

.feature-card-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 250px;
  width: 100%;
}

.card-bg-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  z-index: 0;
  transition: var(--transition-smooth);
  filter: blur(15px);
}

#feature-card-1 .card-bg-orb {
  background: radial-gradient(circle, rgba(6, 55, 42, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

#feature-card-2 .card-bg-orb {
  background: radial-gradient(circle, rgba(209, 234, 132, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
}

#feature-card-3 .card-bg-orb {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

#feature-card-4 .card-bg-orb {
  background: radial-gradient(circle, rgba(13, 78, 62, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.feature-phone-img {
  width: 125px; /* Proportional width for desktop grid columns */
  border-radius: 22px;
  box-shadow: 0 15px 35px rgba(6, 55, 42, 0.15);
  border: 4px solid #000;
  transform: rotate(-6deg) translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1;
}

/* Subtle visual rhythm: alternate tilts using class specificity */
.feature-card:nth-child(even) .feature-phone-img {
  transform: rotate(6deg) translateY(10px);
}

.feature-card:hover .card-bg-orb {
  transform: scale(1.25);
}

/* Hover transform overrides both odd and even cards due to source order */
.feature-card:hover .feature-phone-img {
  transform: rotate(0deg) translateY(-5px) scale(1.05);
  box-shadow: 0 25px 50px rgba(6, 55, 42, 0.25);
}

/* --- Tours Interactive Showcase Section --- */
.tours-section {
  padding: 7rem 0;
  background-color: var(--color-bg-white);
}

.tours-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* Left column slightly wider */
  gap: 2rem;
  align-items: center;
  margin: 2.5rem auto 0; /* Center layout on the page */
  max-width: 820px; /* Narrower container to bring items close together */
  width: 100%;
}

.tours-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem; /* Reduced gap between buttons */
  width: 100%;
}

.tour-tab {
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 0.55rem 1.25rem; /* Reduced padding */
  border-radius: var(--border-radius-md);
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
  opacity: 0.6;
  max-height: 42px; /* Reduced collapsed height */
  overflow: hidden;
  width: 100%;
}

.tour-tab:hover {
  opacity: 0.9;
  background-color: rgba(6, 55, 42, 0.02);
}

.tour-tab.active {
  opacity: 1;
  background-color: var(--color-bg-light);
  border-left: 3px solid var(--color-forest);
  box-shadow: var(--shadow-sm);
  max-height: 145px; /* Adjusted expanded height */
  padding: 0.95rem 1.25rem; /* Reduced active padding */
}

.tab-header-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
}

.tab-number {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1;
  transition: font-size 0.25s ease;
}

.tab-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-forest);
  transition: font-size 0.25s ease;
}

.tour-tab:hover .tab-number {
  font-size: calc(1.15rem + 4px);
}

.tour-tab:hover .tab-title {
  font-size: calc(0.95rem + 4px);
}

.tour-tab .tab-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-smooth);
  margin-top: 0.5rem;
  padding-left: 2.4rem;
}

.tour-tab.active .tab-desc {
  opacity: 1;
  transform: translateY(0);
}

.tours-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent; /* Transparent wrapper */
  border-radius: var(--border-radius-lg);
  padding: 5rem 0;
  border: none; /* Removed border */
  overflow: hidden;
  height: 520px; /* Increased height to support larger mockup */
  width: 100%; /* Span full column */
  justify-self: center; /* Center mockup inside its column */
}

.showcase-bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 55, 42, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  transition: background 0.4s ease-out;
  filter: blur(20px);
  z-index: 0;
}

.showcase-phone {
  width: 235px; /* Increased phone width */
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(6, 55, 42, 0.22); /* Enhanced soft drop shadow */
  background-color: #000000;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.phone-screen-container {
  border-radius: 28px;
  overflow: hidden;
}

.phone-screen-container img {
  width: 100%;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  opacity: 1;
  transform: scale(1);
}

/* --- Privacy Section --- */
.privacy-section {
  padding: 8rem 0;
  background-color: var(--color-bg-light);
}

.privacy-container {
  display: flex;
  align-items: center;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.privacy-body {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.privacy-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.bullet-icon {
  color: var(--color-bg-white);
  background-color: var(--color-forest);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-image-column {
  display: flex;
  justify-content: center;
}

.privacy-card-graphic {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(6, 55, 42, 0.05);
}

.graphic-line {
  height: 6px;
  border-radius: 3px;
  background-color: var(--color-bg-light);
  margin-bottom: 1rem;
}

.graphic-line.long { width: 90%; }
.graphic-line.medium { width: 70%; }
.graphic-line.short { width: 45%; margin-bottom: 2.5rem; }

.graphic-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-forest);
  margin-bottom: 2rem;
}

.graphic-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.graphic-key-val {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-bg-light);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-success {
  background-color: rgba(46, 204, 113, 0.12);
  color: #27ae60;
}

/* --- Download & Newsletter Section --- */
.download-section {
  background-color: var(--color-lime);
  padding: 6rem 0;
  text-align: center;
  color: var(--color-forest);
  position: relative;
}

.download-container {
  max-width: 700px;
  margin: 0 auto;
}

.download-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.download-desc {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  color: var(--color-forest-light);
  opacity: 0.85;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.store-badge-dark {
  display: block;
  height: 48px;
}

.store-badge-dark img {
  height: 100%;
}

.newsletter-form-container {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(6, 55, 42, 0.05);
}

.newsletter-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 55, 42, 0.1);
}

.newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-main);
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--color-text-light);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Footer Masterpiece Styles --- */
.app-footer {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, #EFF4F1 100%);
  padding: 4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(6, 55, 42, 0.08);
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Pre-Footer Action Banner Card */
.footer-top-card {
  background: linear-gradient(135deg, var(--color-forest) 0%, #0B4636 100%);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 20px 40px rgba(6, 55, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.footer-top-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(209, 234, 132, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.footer-top-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.footer-top-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-codecanyon {
  background-color: var(--color-lime);
  color: var(--color-forest);
  box-shadow: 0 6px 18px rgba(209, 234, 132, 0.3);
}

.btn-codecanyon:hover {
  background-color: #FFFFFF;
  color: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

/* Main Footer Grid (4 Columns) */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-col {
  gap: 1.1rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-tagline-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-forest);
  text-decoration: none;
  transition: var(--transition-smooth);
  width: fit-content;
  display: inline-block;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.footer-tagline-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25);
  animation: pulse 2s infinite;
}

.footer-logo-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* Social Media Section */
.footer-social-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.footer-social-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-forest);
  letter-spacing: 0.02em;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-social-btn svg {
  width: 13px;
  height: 13px;
  stroke: #FFFFFF !important;
  fill: none;
  transition: var(--transition-smooth);
}

/* Brand Colored Social Containers */
.social-facebook {
  background: #1877F2;
  border: 1px solid #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.social-linkedin {
  background: #0A66C2;
  border: 1px solid #0A66C2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.social-codecanyon {
  background: #82B440;
  border: 1px solid #82B440;
  box-shadow: 0 4px 12px rgba(130, 180, 64, 0.3);
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-facebook:hover {
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.45);
}

.social-instagram:hover {
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.45);
}

.social-linkedin:hover {
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.45);
}

.social-codecanyon:hover {
  box-shadow: 0 8px 20px rgba(130, 180, 64, 0.45);
}

/* Nav Columns */
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-forest);
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.footer-nav-link svg {
  stroke: var(--color-forest);
  opacity: 0.7;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.footer-nav-link:hover {
  color: var(--color-forest);
  transform: translateX(4px);
}

.footer-nav-link:hover svg {
  opacity: 1;
  stroke: var(--color-forest);
  transform: scale(1.15);
}

/* Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(6, 55, 42, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 2.5rem;
}

.footer-social-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-copyright {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.footer-bottom-credit {
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.footer-bottom-credit a {
  color: var(--color-forest);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-forest);
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(6, 55, 42, 0.12);
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(6, 55, 42, 0.04);
}

.footer-back-to-top svg {
  stroke: var(--color-forest);
  transition: var(--transition-smooth);
}

.footer-back-to-top:hover {
  background: var(--color-forest);
  color: #FFFFFF;
  border-color: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 55, 42, 0.15);
}

.footer-back-to-top:hover svg {
  stroke: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    align-items: center;
  }
  .footer-bottom-left {
    align-items: center;
  }
  .footer-bottom-right {
    flex-direction: column;
    gap: 1rem;
  }
}


/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* --- Responsive Breakpoints (Mobile & Tablet) --- */

@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
  }
  .hero-visual {
    height: 400px;
  }
  .phone-mockup {
    width: 160px;
  }
  .phone-left { transform: translateX(-90px) translateY(20px) rotate(-8deg) scale(0.9); }
  .phone-right { transform: translateX(90px) translateY(20px) rotate(8deg) scale(0.9); }
  
  .hero-visual:hover .phone-left { transform: translateX(-110px) translateY(10px) rotate(-12deg) scale(0.9); }
  .hero-visual:hover .phone-right { transform: translateX(110px) translateY(10px) rotate(12deg) scale(0.9); }
  
  .tours-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
  }
  
  .tours-tabs {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .tour-tab {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 1rem;
  }
  
  .tour-tab.active {
    border-left: none;
    border-bottom: 3px solid var(--color-forest);
  }
}

@media (max-width: 768px) {
  /* Navigation Hamburger Toggle */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: -10px 0 30px rgba(6, 55, 42, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 7rem 2rem 2rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 1005;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .appbar-cta {
    display: none;
  }
  
  /* Hero Reflow */
  .hero {
    padding-top: 7rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-store-buttons {
    justify-content: center;
  }
  
  /* Features Reflow */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    grid-template-columns: 1.15fr 0.85fr; /* Keep horizontal split layout for tablet width */
    padding: 3rem 2.5rem;
  }
  
  /* Tours showcase tablet center */
  .tours-visual {
    padding: 4rem 2rem;
    height: 460px; /* Increased height */
    width: 100%; /* Reset width to center on smaller screens */
    justify-self: center; /* Center-align container */
  }
  .showcase-phone {
    width: 210px; /* Increased width */
  }
  
  /* Privacy Reflow */
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .privacy-image-column {
    order: -1;
  }
  .privacy-card-graphic {
    max-width: 100%;
  }
  
  /* Footer Reflow */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero-store-buttons {
    flex-direction: column;
    align-items: center;
  }
  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
  .hero-visual {
    height: 300px;
  }
  .phone-mockup {
    width: 120px;
    border-radius: 20px;
    padding: 4px;
  }
  .phone-mockup img {
    border-radius: 16px;
  }
  .phone-left { transform: translateX(-60px) translateY(10px) rotate(-8deg) scale(0.9); }
  .phone-right { transform: translateX(60px) translateY(10px) rotate(8deg) scale(0.9); }
  
  .hero-visual:hover .phone-left { transform: translateX(-70px) translateY(5px) rotate(-10deg) scale(0.9); }
  .hero-visual:hover .phone-right { transform: translateX(70px) translateY(5px) rotate(10deg) scale(0.9); }
  
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: 10px;
  }
  .newsletter-input {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-pill);
    padding: 1rem 1.5rem;
    width: 100%;
    border: 1px solid rgba(6, 55, 42, 0.1);
  }
  .btn-newsletter {
    width: 100%;
    border-radius: var(--border-radius-pill);
    padding: 1rem;
  }
  
  .feature-card {
    grid-template-columns: 1fr; /* Stack vertically on small screens */
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
  }
  .feature-card-info {
    align-items: center;
  }
  .feature-phone-img {
    width: 110px;
    transform: rotate(0deg) translateY(0);
  }
  .feature-card:nth-child(even) .feature-phone-img {
    transform: rotate(0deg) translateY(0);
  }
  
  /* Tour section mobile tweaks */
  .tour-tab {
    flex: 0 0 230px;
  }
  .tours-visual {
    height: 400px; /* Increased height */
    padding: 3rem 1rem;
    width: 100%; /* Reset width to center on mobile */
    justify-self: center;
  }
  .showcase-phone {
    width: 180px; /* Increased width */
    border-radius: 28px;
    padding: 6px;
  }
  .phone-screen-container {
    border-radius: 22px;
  }
}
