/* ==========================================================================
   ORAGUIDE DESIGN SYSTEM
   Modern Apple-inspired aesthetics, glassmorphism & responsive typography
   ========================================================================== */

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

:root {
  /* Light Theme Palette */
  --bg-primary: #FAF9F6;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3F2EE;
  --text-primary: #121316;
  --text-secondary: #636773;
  --text-muted: #8F94A3;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
  
  /* Brand Accent Gradients */
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-light: rgba(99, 102, 241, 0.12);
  --brand-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);

  /* Accents */
  --orange: #F97316;
  --pink: #EC4899;
  --emerald: #10B981;
  --purple: #8B5CF6;
  
  /* Glass & Shadows */
  --nav-bg: rgba(250, 249, 246, 0.82);
  --card-bg: #FFFFFF;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 40px -12px rgba(99, 102, 241, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --phone-shadow: 0 30px 70px -15px rgba(26, 28, 35, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-primary: #0A0A0C;
  --bg-secondary: #131418;
  --bg-tertiary: #1C1E24;
  --text-primary: #F4F4F6;
  --text-secondary: #A1A5B7;
  --text-muted: #696E82;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  --nav-bg: rgba(10, 10, 12, 0.82);
  --card-bg: #131418;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 40px -12px rgba(99, 102, 241, 0.28), 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  --phone-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: scale(1.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(236, 72, 153, 0.12) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 36px;
}

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

.hero-cta .btn {
  padding: 15px 32px;
  font-size: 1.05rem;
}

/* App Store Badge Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.app-store-sub {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A0A0A5;
}

.app-store-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   PHONE SHOWCASE MOCKUP
   ========================================================================== */
.showcase-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  perspective: 1200px;
}

.device-mockup {
  position: relative;
  border-radius: 54px;
  padding: 12px;
  background: #1B1C22;
  box-shadow: var(--phone-shadow);
  border: 4px solid #2C2E38;
}

.device-inner {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 9 / 19.5;
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
}

.device-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.device-screen-img.active {
  display: block;
}

.preview-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.switcher-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.switcher-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(99, 102, 241, 0.35);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.feature-icon-box.orange { background: rgba(249, 115, 22, 0.15); color: #F97316; }
.feature-icon-box.purple { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.feature-icon-box.pink   { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.feature-icon-box.green  { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.feature-icon-box.blue   { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.feature-icon-box.indigo { background: rgba(99, 102, 241, 0.15); color: #6366F1; }

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.feature-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Big Interactive Showcase Banner */
.deep-dive {
  margin-top: 50px;
  background: var(--brand-gradient-subtle);
  border-radius: 32px;
  border: 1px solid var(--border-color);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.deep-dive-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}

.deep-dive-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.deep-dive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deep-dive-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.deep-dive-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   PHILOSOPHY & CONCEPT SECTION
   ========================================================================== */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.concept-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
}

.concept-card .step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}

.concept-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner {
  margin-top: 60px;
  background: var(--brand-gradient);
  border-radius: 36px;
  padding: 70px 32px;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(99, 102, 241, 0.45);
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cta-banner p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 40px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SUBPAGE STYLES (Privacy & Support)
   ========================================================================== */
.doc-page {
  padding-top: 130px;
  padding-bottom: 90px;
}

.doc-header {
  max-width: 820px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.doc-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.doc-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.doc-body {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.doc-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px 0;
  color: var(--text-primary);
}

.doc-body h2:first-of-type {
  margin-top: 0;
}

.doc-body p, .doc-body li {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.doc-body ul, .doc-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.doc-body strong {
  color: var(--text-primary);
}

.highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 500;
}

/* Support Form Card */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}

.support-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .deep-dive {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

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

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

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

@media (max-width: 768px) {
  .navbar {
    height: 66px;
  }

  .nav-links {
    display: none; /* Can be toggled or kept in bottom */
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .doc-body {
    padding: 30px 22px;
  }
}
