/* GST Calculator Pro Website - Styling */

:root {
  --bg-dark: #07090e;
  --bg-surface: rgba(14, 18, 30, 0.7);
  --bg-card: rgba(22, 28, 47, 0.5);
  --bg-input: rgba(9, 12, 20, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --container-width: 1100px;
}

/* Reset styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background glows */
.bg-glow-top {
  position: absolute;
  top: -200px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-bottom {
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  color: #040711;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  opacity: 0.95;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(7, 9, 14, 0.85);
}

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

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

.logo-text {
  font-size: 18px;
  font-weight: 700;
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.nav-link.active {
  color: var(--accent-cyan);
}

/* Hero Section */
.hero {
  padding: 100px 0 60px 0;
  text-align: center;
  position: relative;
}

.hero-tag {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 24px;
  animation: pulse-border 3s infinite alternate;
}

@keyframes pulse-border {
  0% { border-color: rgba(6, 182, 212, 0.15); }
  100% { border-color: rgba(6, 182, 212, 0.4); }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Mockup Showcase */
.mockup-showcase {
  margin-top: 60px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
}

.mockup-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

.mockup-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(7, 9, 14, 0.6) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 16px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.05);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Demo Calculator Section */
.demo-section {
  padding: 80px 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.demo-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.demo-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.demo-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.bullet-icon {
  margin-top: 3px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Embedded Demo Widget - Glassmorphic */
.demo-widget-wrapper {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.demo-widget {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Direct styles from extension for identical experience */
.demo-widget .mode-selector-wrapper {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border-color);
}
.demo-widget .mode-selector {
  display: flex;
  position: relative;
  width: 100%;
}
.demo-widget input[type="radio"] {
  display: none;
}
.demo-widget .mode-label {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.demo-widget .slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.demo-widget #demo-mode-remove:checked ~ .slider-background {
  transform: translateX(100%);
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.demo-widget #demo-mode-add:checked ~ label[for="demo-mode-add"],
.demo-widget #demo-mode-remove:checked ~ label[for="demo-mode-remove"] {
  color: var(--text-primary);
  font-weight: 600;
}
.demo-widget .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-widget .input-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.demo-widget .currency-indicator {
  color: var(--accent-cyan);
}
.demo-widget #demo-mode-remove:checked ~ .calculator-form .currency-indicator {
  color: #f59e0b;
}
.demo-widget .input-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: var(--transition-smooth);
}
.demo-widget .input-wrapper input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.demo-widget #demo-mode-remove:checked ~ .calculator-form .input-wrapper input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.demo-widget .rate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 4px;
}
.demo-widget .rate-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.demo-widget .rate-chip.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
.demo-widget #demo-mode-remove:checked ~ .calculator-form .rate-chip.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}
.demo-widget .custom-rate-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.demo-widget .custom-rate-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 6px 16px 6px 6px;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  outline: none;
  text-align: center;
}
.demo-widget .custom-rate-wrapper.active input {
  border-color: var(--accent-cyan);
}
.demo-widget #demo-mode-remove:checked ~ .calculator-form .custom-rate-wrapper.active input {
  border-color: #f59e0b;
}
.demo-widget .percent-sign {
  position: absolute;
  right: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}
.demo-widget .secondary-results {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-widget .result-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.demo-widget .result-label {
  color: var(--text-secondary);
}
.demo-widget .result-val {
  font-weight: 600;
}
.demo-widget .highlighted-gst {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.demo-widget .highlighted-gst .result-val {
  color: var(--accent-emerald);
}
.demo-widget #demo-mode-remove:checked ~ .results-panel .highlighted-gst .result-val {
  color: #ef4444;
}
.demo-widget .india-tax-split {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 6px;
  border-left: 1px dashed rgba(255, 255, 255, 0.05);
}
.demo-widget .split-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
}
.demo-widget .main-result-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-widget #demo-mode-remove:checked ~ .results-panel .main-result-card {
  background: rgba(245, 158, 11, 0.05);
  border-color: #f59e0b;
}
.demo-widget .card-details {
  display: flex;
  flex-direction: column;
}
.demo-widget .card-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
}
.demo-widget #demo-mode-remove:checked ~ .results-panel .card-label {
  color: #f59e0b;
}
.demo-widget .card-value {
  font-size: 18px;
  font-weight: 700;
}

/* Contact Us Section - Sleek Premium Glow Box */
.contact-section {
  padding: 80px 0;
  position: relative;
}

.contact-card {
  background: linear-gradient(135deg, rgba(14, 18, 30, 0.8) 0%, rgba(22, 28, 47, 0.4) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin: 0 auto 24px auto;
  box-shadow: var(--glow-cyan);
}

.contact-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 30px auto;
}

.email-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.email-box:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.email-address {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-family);
  letter-spacing: -0.01em;
}

/* Compliance (Terms & Privacy) Document Page Layout */
.doc-page {
  padding: 60px 0 100px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: var(--text-primary);
  transform: translateX(-2px);
}

.doc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.doc-wrapper h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px 0;
  color: var(--text-primary);
}

.doc-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.doc-content ul {
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: rgba(4, 6, 10, 0.8);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-secondary);
}

/* Toast Message */
.toast-notification {
  position: fixed;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 11, 17, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--accent-cyan);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-notification.show {
  bottom: 24px;
  opacity: 1;
}

/* Responsive Queries */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 36px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .demo-text {
    text-align: center;
  }
  .demo-bullets {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* simple hidden for mobile mockup */
  }
  .hero {
    padding: 60px 0 40px 0;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 15px;
  }
  .contact-card {
    padding: 40px 20px;
  }
  .email-address {
    font-size: 15px;
  }
  .doc-wrapper {
    padding: 24px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
