/* ============================================================
   Instant Doc - Premium SaaS Landing Page Styles
   Author: Instant Doc Team
   Description: Complete stylesheet for Instant Doc website
   ============================================================ */

/* ------------------------------------------------------------
   Font Face Imports
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ------------------------------------------------------------
   CSS Custom Properties (Design System)
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #34D399;
  --primary-ghost: rgba(5, 150, 105, 0.08);
  --primary-ghost-strong: rgba(5, 150, 105, 0.15);
  --secondary: #10B981;
  --background: #F8FAFC;
  --background-alt: #F1F5F9;
  --dark-text: #111827;
  --light-text: #6B7280;
  --accent: #F59E0B;
  --accent-ghost: rgba(245, 158, 11, 0.1);
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -8px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-text);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--light-text);
  line-height: 1.7;
}

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

/* ------------------------------------------------------------
   Loading Screen
   ------------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  animation: pulse-loader 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  animation: loader-fill 1.2s ease-in-out forwards;
}

@keyframes loader-fill {
  0% { width: 0; }
  50% { width: 60%; }
  100% { width: 100%; }
}

@keyframes pulse-loader {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  box-shadow: var(--glass-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark-text);
  z-index: 1001;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-text);
  position: relative;
  padding: 4px 0;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

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

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-base);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark-text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--background-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--light-text);
}

.btn-ghost:hover {
  color: var(--dark-text);
  background: var(--primary-ghost);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Google Play Button */
.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-google-play:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* ------------------------------------------------------------
   Section Styles
   ------------------------------------------------------------ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--background-alt);
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-ghost);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-ghost);
  border: 1px solid var(--primary-ghost-strong);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-text);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-top: 2px;
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-phone {
  width: 320px;
  height: 640px;
  background: var(--dark-text);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.mockup-phone-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mockup-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px 8px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: white;
}

.mockup-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-back {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.mockup-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.mockup-header-right {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.mockup-content {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-pdf-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-pdf-icon {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mockup-pdf-info {
  flex: 1;
  min-width: 0;
}

.mockup-pdf-name {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

.mockup-pdf-size {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.mockup-pdf-check {
  width: 20px;
  height: 20px;
  background: rgba(5, 150, 105, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-pdf-check svg {
  width: 12px;
  height: 12px;
  fill: var(--secondary);
}

.mockup-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-nav-item {
  width: 20px;
  height: 20px;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.mockup-nav-item.active {
  opacity: 1;
}

.mockup-home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 8px auto 4px;
}

/* Floating elements around mockup */
.mockup-float {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.mockup-float-1 {
  top: 10%;
  right: -15%;
  animation-delay: 0s;
}

.mockup-float-2 {
  bottom: 20%;
  left: -15%;
  animation-delay: 2s;
}

.mockup-float-3 {
  bottom: 5%;
  right: -10%;
  animation-delay: 4s;
}

.float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon.green {
  background: var(--primary-ghost);
  color: var(--primary);
}

.float-icon.amber {
  background: var(--accent-ghost);
  color: var(--accent);
}

.float-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ------------------------------------------------------------
   Features Section
   ------------------------------------------------------------ */
.features {
  position: relative;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(5, 150, 105, 0.1); color: var(--primary); }
.feature-card:nth-child(2) .feature-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.feature-card:nth-child(3) .feature-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.feature-card:nth-child(4) .feature-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.feature-card:nth-child(5) .feature-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.feature-card:nth-child(6) .feature-icon { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   App Screens Section
   ------------------------------------------------------------ */
.screens {
  position: relative;
  overflow: hidden;
}

.screens-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screens-scroll::-webkit-scrollbar {
  display: none;
}

.screen-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: var(--transition-base);
}

.screen-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.screen-mockup {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1a1a2e, #16213e);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-mockup-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px 6px;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
}

.screen-mockup-title {
  padding: 8px 14px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.screen-mockup-body {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-mockup-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.screen-mockup-line.wide { width: 100%; }
.screen-mockup-line.medium { width: 70%; }
.screen-mockup-line.narrow { width: 50%; }

.screen-mockup-block {
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
}

.screen-label {
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-text);
}

/* ------------------------------------------------------------
   Why Choose Section
   ------------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  transition: var(--transition-base);
}

.why-card:hover .why-icon {
  transform: scale(1.1);
}

.why-card:nth-child(1) .why-icon { background: rgba(5, 150, 105, 0.1); color: var(--primary); }
.why-card:nth-child(2) .why-icon { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }
.why-card:nth-child(3) .why-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.why-card:nth-child(4) .why-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.why-card:nth-child(5) .why-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.why-card:nth-child(6) .why-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Privacy First Section
   ------------------------------------------------------------ */
.privacy-section {
  background: linear-gradient(135deg, var(--dark-text) 0%, #1f2937 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.privacy-section .section-header h2 {
  color: white;
}

.privacy-section .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-base);
}

.privacy-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.privacy-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-ghost-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
}

.privacy-text h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 6px;
}

.privacy-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   FAQ Section
   ------------------------------------------------------------ */
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition-base);
  background: var(--white);
}

.faq-item:hover {
  border-color: var(--primary-ghost-strong);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-ghost-strong);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-text);
  text-align: left;
  transition: var(--transition-base);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  color: var(--light-text);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   CTA Section
   ------------------------------------------------------------ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-primary:hover {
  background: var(--background);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--dark-text);
  color: white;
  padding: 64px 0 32px;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

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

/* ------------------------------------------------------------
   Back to Top Button
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ------------------------------------------------------------
   Scroll Animations
   ------------------------------------------------------------ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Inner Pages (Privacy, Terms, About, Support, Contact)
   ------------------------------------------------------------ */
.page-header {
  padding: 140px 0 60px;
  background: var(--background);
  text-align: center;
  position: relative;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.page-content {
  padding: 60px 0 100px;
}

.page-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  font-family: var(--font-primary);
  font-weight: 600;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.page-content ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--light-text);
  line-height: 1.7;
}

.page-content strong {
  color: var(--dark-text);
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

/* ------------------------------------------------------------
   Contact Form
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

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

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

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
  background: var(--white);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--light-text);
  opacity: 0.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon.green { background: var(--primary-ghost); color: var(--primary); }
.contact-card-icon.amber { background: var(--accent-ghost); color: var(--accent); }
.contact-card-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* ------------------------------------------------------------
   Support Page
   ------------------------------------------------------------ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition-base);
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.support-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}

.support-card:nth-child(1) .support-card-icon { background: rgba(5, 150, 105, 0.1); color: var(--primary); }
.support-card:nth-child(2) .support-card-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.support-card:nth-child(3) .support-card-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.support-card:nth-child(4) .support-card-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.support-card:nth-child(5) .support-card-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.support-card:nth-child(6) .support-card-icon { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }

.support-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.support-card .btn {
  font-size: 0.85rem;
  padding: 10px 20px;
}

.support-cta {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.support-cta h2 {
  margin-bottom: 12px;
}

.support-cta p {
  max-width: 480px;
  margin: 0 auto 24px;
}

/* ------------------------------------------------------------
   Responsive Design
   ------------------------------------------------------------ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }

  .hero-grid {
    gap: 40px;
  }

  .mockup-float { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }

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

/* Mobile (below 768px) */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  /* Navigation */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 80px 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-mockup {
    order: -1;
  }

  .mockup-phone {
    width: 240px;
    height: 480px;
    border-radius: 32px;
    padding: 8px;
  }

  .mockup-phone-inner {
    border-radius: 24px;
  }

  .mockup-status {
    padding: 10px 14px 4px;
    font-size: 0.65rem;
  }

  .mockup-header {
    padding: 8px 14px;
  }

  .mockup-title {
    font-size: 0.75rem;
  }

  .mockup-content {
    padding: 8px 12px;
    gap: 6px;
  }

  .mockup-pdf-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .mockup-pdf-icon {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .mockup-pdf-name { font-size: 0.7rem; }
  .mockup-pdf-size { font-size: 0.6rem; }

  .mockup-bottom-nav {
    padding: 8px 12px;
  }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* App Screens */
  .screens-scroll {
    gap: 16px;
  }

  .screen-card {
    flex: 0 0 180px;
    padding: 12px;
  }

  /* Why Choose */
  .why-grid { grid-template-columns: 1fr; }

  /* Privacy */
  .privacy-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  /* Inner pages */
  .page-header { padding: 100px 0 40px; }
  .page-content { padding: 40px 0 60px; }
  .content-card { padding: 24px; }

  /* Contact form */
  .contact-form { padding: 24px; }

  /* CTA */
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* Small mobile (below 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .container { padding: 0 16px; }

  .mockup-phone {
    width: 200px;
    height: 400px;
    border-radius: 24px;
    padding: 6px;
  }

  .mockup-phone-inner {
    border-radius: 18px;
  }

  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }

  .content-card { padding: 16px; }
}

/* ------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Selection
   ------------------------------------------------------------ */
::selection {
  background: var(--primary);
  color: white;
}

/* ------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
