/* ===============================================
   KundliAPI.com - Saffron Light Theme
   Vedic Astrology Platform Stylesheet
   =============================================== */

/* ===== CSS Variables ===== */
:root {
  --saffron-50: #FFF8F0;
  --saffron-100: #FFF3E0;
  --saffron-200: #FFE0B2;
  --saffron-300: #FFCC80;
  --saffron-400: #FFB74D;
  --saffron-500: #FF9800;
  --saffron-600: #FB8C00;
  --saffron-700: #F57C00;
  --saffron-800: #EF6C00;
  --saffron-900: #E65100;
  --saffron-deep: #FF6B00;
  --gold: #FFB300;
  --gold-light: #FFD54F;
  --maroon: #8B1A1A;
  --bg-primary: #FFFAF5;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A2E;
  --text-primary: #1A1A2E;
  --text-secondary: #555555;
  --text-light: #888888;
  --text-white: #FFFFFF;
  --border: #FFE0B2;
  --border-light: #FFF3E0;
  --shadow: 0 4px 20px rgba(255, 107, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(255, 107, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1280px;
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--saffron-deep); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--saffron-800); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.section-badge { display: inline-block; background: var(--saffron-100); color: var(--saffron-deep); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.5px; }
.section-title { margin-bottom: 16px; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 700px; margin: 0 auto 40px; line-height: 1.7; }
.text-center { text-align: center; }
.text-saffron { color: var(--saffron-deep); }
.text-gradient { background: linear-gradient(135deg, var(--saffron-deep), var(--saffron-500)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== Sections ===== */
section { padding: 80px 0; position: relative; }
section:nth-child(even) { background: var(--bg-secondary); }
.section-pattern { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(circle at 1px 1px, var(--saffron-200) 1px, transparent 0); background-size: 40px 40px; opacity: 0.3; pointer-events: none; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--saffron-deep); }
.nav-logo .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--saffron-deep), var(--saffron-500)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--saffron-deep); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--saffron-deep); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-selector { background: var(--saffron-100); border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-primary); cursor: pointer; }
.nav-cta { background: linear-gradient(135deg, var(--saffron-deep), var(--saffron-500)); color: white; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; transition: var(--transition); border: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4); color: white; }
.mobile-toggle { display: none; background: none; font-size: 1.5rem; color: var(--text-primary); padding: 5px; border: none; cursor: pointer; }
.nav-actions-mobile { display: none; }

/* Logo Image */
.logo-img { height: 56px; width: auto; }
.logo-fallback { display: flex; align-items: center; gap: 10px; }

/* ===== Nav Dropdown ===== */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-trigger { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; cursor: pointer; padding: 8px 0; }
.nav-dropdown .dropdown-trigger:hover { color: var(--saffron-deep); }
.nav-dropdown .dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: white; border-radius: 12px; padding: 8px 0; min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12); border: 1px solid var(--border-light);
  opacity: 0; visibility: hidden; transition: all 0.2s ease;
  z-index: 1001; margin-top: 8px;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; margin-top: 0; }
.nav-dropdown .dropdown-menu a {
  display: block; padding: 10px 20px; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500; transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown .dropdown-menu a:hover { background: var(--saffron-100); color: var(--saffron-deep); }
.nav-dropdown .dropdown-menu a::after { display: none; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: var(--transition); border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--saffron-deep), var(--saffron-500)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4); color: white; }
.btn-secondary { background: var(--bg-secondary); color: var(--saffron-deep); border: 2px solid var(--saffron-deep); }
.btn-secondary:hover { background: var(--saffron-deep); color: white; }
.btn-dark { background: var(--bg-dark); color: white; }
.btn-dark:hover { background: #2a2a4e; transform: translateY(-2px); color: white; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--saffron-deep); color: var(--saffron-deep); }
.btn-white { background: white; color: var(--saffron-deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--saffron-deep); }

/* ===== Hero Section ===== */
.hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: linear-gradient(135deg, #FFFAF5 0%, #FFF3E0 50%, #FFE8CC 100%);
  position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: '☸'; position: absolute; right: 5%; top: 20%; font-size: 300px;
  color: rgba(255, 107, 0, 0.04); pointer-events: none; animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 30px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 1.8rem; font-weight: 800; color: var(--saffron-deep); display: block; }
.hero-stat .label { font-size: 0.85rem; color: var(--text-light); }

/* Hero Kundli Form */
.hero-form {
  background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.hero-form h3 { text-align: center; margin-bottom: 5px; color: var(--saffron-deep); }
.hero-form .form-subtitle { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-primary); background: var(--bg-primary);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--saffron-deep); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.form-group input::placeholder { color: var(--text-light); }

/* ===== Trust Bar ===== */
.trust-bar { background: var(--bg-dark); padding: 30px 0; }
.trust-bar .container { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; }
.trust-item { text-align: center; color: white; }
.trust-item .trust-number { font-size: 2rem; font-weight: 800; color: var(--saffron-500); display: block; }
.trust-item .trust-label { font-size: 0.85rem; color: #aaa; }

/* ===== Feature Cards ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--border-light); transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--saffron-300); }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron-deep), var(--gold));
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--saffron-100); color: var(--saffron-deep); font-size: 1.8rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.feature-card .feature-link { display: inline-flex; align-items: center; gap: 6px; color: var(--saffron-deep); font-weight: 600; font-size: 0.9rem; margin-top: 15px; }
.feature-card .feature-link:hover { gap: 10px; }

/* ===== Zodiac / Horoscope Grid ===== */
.zodiac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.zodiac-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px 15px; text-align: center;
  border: 1px solid var(--border-light); cursor: pointer; transition: var(--transition);
}
.zodiac-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--saffron-300); }
.zodiac-card .zodiac-symbol { font-size: 2.5rem; margin-bottom: 8px; display: block; }
.zodiac-card .zodiac-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.zodiac-card .zodiac-date { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

/* ===== Panchang Section ===== */
.panchang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.panchang-item {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius); text-align: center;
  border: 1px solid var(--border-light); transition: var(--transition);
}
.panchang-item:hover { box-shadow: var(--shadow); }
.panchang-item .panchang-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.panchang-item .panchang-label { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.panchang-item .panchang-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-top: 5px; }

/* ===== Matching Section ===== */
.matching-demo {
  background: linear-gradient(135deg, var(--saffron-100), #FFF8F0);
  border-radius: var(--radius-lg); padding: 50px; text-align: center;
  border: 2px dashed var(--border);
}
.matching-visual { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 30px 0; }
.matching-person { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.matching-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--saffron-200); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.matching-heart { font-size: 2.5rem; color: #E91E63; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ===== Muhurat Section ===== */
.muhurat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.muhurat-card {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border-light); border-left: 4px solid var(--saffron-deep);
  transition: var(--transition);
}
.muhurat-card:hover { box-shadow: var(--shadow); }
.muhurat-card h4 { color: var(--saffron-deep); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.muhurat-card p { color: var(--text-secondary); font-size: 0.9rem; }
.muhurat-card .muhurat-time { background: var(--saffron-100); padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; color: var(--saffron-800); font-weight: 600; display: inline-block; margin-top: 8px; }

/* ===== Dosha Cards ===== */
.dosha-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.dosha-card {
  background: var(--bg-card); padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--border-light); text-align: center; transition: var(--transition);
}
.dosha-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.dosha-card .dosha-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.dosha-card h3 { color: var(--saffron-deep); margin-bottom: 10px; }
.dosha-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ===== Pricing Section ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.price-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 35px; text-align: center;
  border: 2px solid var(--border-light); transition: var(--transition); position: relative;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.popular { border-color: var(--saffron-deep); }
.price-card.popular::before {
  content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--saffron-deep), var(--saffron-500)); color: white;
  padding: 4px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.price-card .plan-name { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.price-card .plan-price { font-size: 2.8rem; font-weight: 800; color: var(--saffron-deep); margin-bottom: 5px; }
.price-card .plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.price-card .plan-duration { font-size: 0.9rem; color: var(--text-light); margin-bottom: 25px; }
.price-card .plan-features { text-align: left; margin-bottom: 25px; }
.price-card .plan-features li {
  padding: 8px 0; display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-light);
}
.price-card .plan-features li::before { content: '✓'; color: var(--saffron-deep); font-weight: bold; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--border-light); position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 15px; left: 20px; font-size: 4rem; color: var(--saffron-200); font-family: serif; line-height: 1; }
.testimonial-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--saffron-200); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--saffron-deep); }
.testimonial-info .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-info .role { font-size: 0.8rem; color: var(--text-light); }
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 15px; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--saffron-300); }
.faq-question {
  padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; color: var(--text-primary); background: none; width: 100%;
  text-align: left; transition: var(--transition);
}
.faq-question:hover { color: var(--saffron-deep); }
.faq-question .faq-toggle { font-size: 1.5rem; color: var(--saffron-deep); transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--saffron-deep), var(--saffron-700), var(--saffron-900));
  color: white; text-align: center; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px; pointer-events: none;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 1.1rem; }

/* ===== API Showcase ===== */
.api-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.api-code-block {
  background: var(--bg-dark); border-radius: var(--radius); padding: 24px; overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.85rem; line-height: 1.8; color: #e0e0e0;
}
.api-code-block .keyword { color: #c792ea; }
.api-code-block .string { color: #c3e88d; }
.api-code-block .comment { color: #546e7a; }
.api-code-block .method { color: #82aaff; }
.api-code-block .number { color: #f78c6c; }
.api-features-list { display: flex; flex-direction: column; gap: 16px; }
.api-feature-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px;
  background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-light);
}
.api-feature-item .api-feat-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--saffron-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.api-feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.api-feature-item p { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark); color: #ccc; padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { color: white; font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p { color: #999; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #ccc; transition: var(--transition);
}
.footer-social a:hover { background: var(--saffron-deep); color: white; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--saffron-deep); }
.footer-col a { display: block; color: #999; font-size: 0.9rem; padding: 6px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--saffron-500); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: #666; font-size: 0.85rem; }
.footer-bottom a { color: #999; font-size: 0.85rem; }

/* ===== Page Header (for inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, #FFFAF5 0%, #FFF3E0 50%, #FFE8CC 100%);
  padding: calc(var(--nav-height) + 40px) 0 40px; text-align: center;
  border-bottom: 2px solid var(--border);
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); font-size: 1.1rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; color: var(--text-light); margin-top: 15px; }
.breadcrumb a { color: var(--saffron-deep); }

/* ===== Form Styles (pages) ===== */
.form-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light); max-width: 500px; margin: 0 auto;
}
.form-card h2 { text-align: center; margin-bottom: 8px; }
.form-card .form-subtitle { text-align: center; color: var(--text-light); margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-primary); background: var(--bg-primary); transition: var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--saffron-deep); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.form-error { color: #e74c3c; font-size: 0.8rem; margin-top: 4px; }
.form-link { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-light); }
.form-link a { color: var(--saffron-deep); font-weight: 600; }
.form-divider { text-align: center; margin: 20px 0; position: relative; }
.form-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.form-divider span { background: var(--bg-card); padding: 0 16px; position: relative; color: var(--text-light); font-size: 0.85rem; }

/* ===== Dashboard ===== */
.dashboard-grid { display: grid; grid-template-columns: 250px 1fr; gap: 24px; min-height: 70vh; }
.dashboard-sidebar {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border-light); height: fit-content; position: sticky; top: calc(var(--nav-height) + 20px);
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--saffron-100); color: var(--saffron-deep); }
.dashboard-content { display: flex; flex-direction: column; gap: 24px; }
.dash-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border-light);
}
.dash-card h3 { margin-bottom: 16px; color: var(--saffron-deep); font-size: 1.1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-box {
  background: linear-gradient(135deg, var(--saffron-100), var(--saffron-50));
  padding: 20px; border-radius: var(--radius-sm); text-align: center;
}
.stat-box .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--saffron-deep); }
.stat-box .stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.api-key-display {
  background: var(--bg-dark); padding: 16px; border-radius: var(--radius-sm);
  font-family: monospace; color: var(--saffron-500); word-break: break-all;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.api-key-display .key-text { flex: 1; }
.copy-btn { background: var(--saffron-deep); color: white; padding: 8px 16px; border-radius: 6px; font-size: 0.8rem; }
.domain-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.domain-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--saffron-50); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 0.9rem;
}
.domain-item .remove-btn { color: #e74c3c; cursor: pointer; font-size: 0.8rem; }
.add-domain-form { display: flex; gap: 10px; margin-top: 12px; }
.add-domain-form input { flex: 1; padding: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }

/* ===== Legal Pages ===== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.legal-content h2 { color: var(--saffron-deep); font-size: 1.5rem; margin: 30px 0 15px; }
.legal-content h3 { color: var(--text-primary); font-size: 1.2rem; margin: 20px 0 10px; }
.legal-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 15px; }
.legal-content ul { margin: 10px 0 20px 20px; }
.legal-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; list-style: disc; }
.legal-content a { color: var(--saffron-deep); text-decoration: underline; }

/* ===== Docs Page ===== */
.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.docs-sidebar {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border-light); position: sticky; top: calc(var(--nav-height) + 20px); height: fit-content;
  max-height: calc(100vh - var(--nav-height) - 40px); overflow-y: auto;
}
.docs-sidebar a {
  display: block; padding: 8px 12px; color: var(--text-secondary); font-size: 0.9rem;
  border-radius: 6px; transition: var(--transition);
}
.docs-sidebar a:hover, .docs-sidebar a.active { background: var(--saffron-100); color: var(--saffron-deep); }
.docs-content { background: var(--bg-card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border-light); }
.docs-content h2 { color: var(--saffron-deep); margin: 30px 0 15px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.docs-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.endpoint-block { background: var(--saffron-50); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 15px 0; }
.endpoint-method { display: inline-block; background: #4CAF50; color: white; padding: 2px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; margin-right: 10px; }
.endpoint-method.post { background: #2196F3; }
.endpoint-path { font-family: monospace; font-size: 0.9rem; color: var(--text-primary); }
code {
  background: var(--bg-dark); color: #e0e0e0; padding: 2px 8px; border-radius: 4px;
  font-family: 'Fira Code', monospace; font-size: 0.85rem;
}
pre {
  background: var(--bg-dark); padding: 20px; border-radius: var(--radius-sm); overflow-x: auto;
  font-family: 'Fira Code', monospace; font-size: 0.85rem; line-height: 1.6; color: #e0e0e0; margin: 15px 0;
}

/* ===== Alerts & Notifications ===== */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* ===== Loading & Animations ===== */
.loading-spinner {
  width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--saffron-deep);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero::after { display: none; }
  .api-showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

@media (max-width: 768px) {
  section { padding: 50px 0; }
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* ---- Navbar ---- */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,1); }
  .navbar .container { position: relative; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    flex-direction: column; background: white; padding: 20px; gap: 0; z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border-light); font-size: 1rem; text-align: left; width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown .dropdown-trigger { display: block; padding: 14px 0; border-bottom: 1px solid var(--border-light); font-size: 1rem; }
  .nav-dropdown .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 0 20px; margin-top: 0;
    display: none; background: var(--saffron-50); border-radius: 8px; margin: 5px 0;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown .dropdown-menu a { font-size: 0.9rem; padding: 10px 16px; }
  .nav-actions {
    display: none; /* hidden in top bar on mobile — shown inside mobile menu via JS */
  }
  .nav-links .nav-actions-mobile {
    display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 2px solid var(--border-light); margin-top: 10px; align-items: stretch; width: 100%;
  }
  .nav-links .nav-actions-mobile .lang-selector { font-size: 0.9rem; padding: 10px 12px; width: 100%; }
  .nav-links .nav-actions-mobile .btn { width: 100%; text-align: center; padding: 12px; }
  .nav-links .nav-actions-mobile .nav-cta { display: block; text-align: center; padding: 12px; border-radius: var(--radius-sm); width: 100%; }
  .lang-selector { font-size: 0.8rem; padding: 5px 8px; }
  .mobile-toggle { display: block; z-index: 1001; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

  /* ---- Hero ---- */
  .hero { min-height: auto; padding: calc(var(--nav-height) + 30px) 0 50px; }
  .hero::before { display: none; }
  .hero-content { text-align: center; min-width: 0; overflow: hidden; }
  .hero-content p { word-wrap: break-word; overflow-wrap: break-word; }
  .hero-stats { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .hero-stat { flex: 0 0 auto; }
  .hero-stat .number { font-size: 1.3rem; }
  .hero-form { padding: 20px; min-width: 0; overflow: hidden; }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-grid .form-group { grid-column: auto !important; width: 100%; }
  .form-grid .form-group input, .form-grid .form-group select { width: 100%; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; text-align: center; }

  /* ---- Trust bar ---- */
  .trust-bar .container { gap: 20px; justify-content: space-around; }
  .trust-item .trust-number { font-size: 1.5rem; }
  .trust-item .trust-label { font-size: 0.78rem; }

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

  /* ---- Zodiac ---- */
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---- Pricing ---- */
  .pricing-grid { grid-template-columns: 1fr; }

  /* ---- Matching ---- */
  .matching-visual { flex-wrap: wrap; gap: 16px; }
  .matching-demo { padding: 30px 20px; }

  /* ---- Panchang ---- */
  .panchang-grid { grid-template-columns: repeat(2, 1fr); }

  /* ---- Muhurat ---- */
  .muhurat-grid { grid-template-columns: 1fr; }

  /* ---- Dosha ---- */
  .dosha-grid { grid-template-columns: 1fr; }

  /* ---- Footer ---- */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer { padding: 40px 0 0; }

  /* ---- Testimonials ---- */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ---- Buttons ---- */
  .btn-lg { width: 100%; justify-content: center; }

  /* ---- Form card ---- */
  .form-card { padding: 28px 20px; }

  /* ---- Page header ---- */
  .page-header { padding: calc(var(--nav-height) + 24px) 0 24px; }

  /* ---- Dashboard ---- */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .api-key-display { flex-direction: column; align-items: flex-start; }

  /* ---- Tables: horizontal scroll ---- */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }
}

@media (max-width: 480px) {
  :root { --nav-height: 60px; }
  .container { padding: 0 12px; }
  section { padding: 40px 0; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  .hero-content p { font-size: 0.95rem; }
  .section-subtitle { font-size: 0.95rem; }

  /* ---- Zodiac grid 2-col on small phones ---- */
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
  .zodiac-card { padding: 14px 10px; }
  .zodiac-card .zodiac-symbol { font-size: 2rem; }

  /* ---- Trust bar stack ---- */
  .trust-bar .container { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .trust-item { flex: 1 1 40%; }

  /* ---- Form ---- */
  .form-card { padding: 20px 14px; margin: 0 4px; }
  .hero-form { padding: 16px; }

  /* ---- Panchang 1-col ---- */
  .panchang-grid { grid-template-columns: 1fr 1fr; }
  .panchang-item { min-width: 0; overflow: hidden; word-break: break-word; }

  /* ---- Buttons ---- */
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }

  /* ---- Pricing card ---- */
  .price-card { padding: 24px 18px; }
  .price-card .plan-price { font-size: 2.2rem; }

  /* ---- Footer ---- */
  .footer-col a { padding: 5px 0; }

  /* ---- Matching ---- */
  .matching-avatar { width: 60px; height: 60px; font-size: 2rem; }
  .matching-heart { font-size: 2rem; }

  /* ---- API key display ---- */
  .api-key-display { font-size: 0.78rem; }
  .copy-btn { padding: 6px 12px; font-size: 0.75rem; }

  /* ---- Stat grid 1-col ---- */
  .stat-grid { grid-template-columns: 1fr; }

  /* ---- Docs layout ---- */
  .docs-content { padding: 20px 14px; }
  pre { font-size: 0.78rem; padding: 14px; }
}

/* ===== Scroll Reveal ===== */
[data-animate] { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== Print Styles ===== */
@media print {
  .navbar, .footer, .cta-section, .mobile-toggle { display: none; }
  section { padding: 20px 0; }
  body { background: white; }
}
