:root {
  --primary: #3B5CF5;
  --primary-hover: #2B4CE5;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(59, 92, 245, 0.15);
  --accent: #059669;
  --accent-light: #D1FAE5;
  --accent-glow: rgba(5, 150, 105, 0.2);
  --warning: #E11D48;
  --warning-light: #FFE4E6;
  --warning-glow: rgba(225, 29, 72, 0.15);
  --bg: #FFFAF5;
  --bg-alt: #FFF5ED;
  --bg-card: #FFFFFF;
  --text: #1A1525;
  --text-secondary: #7A7585;
  --text-muted: #9CA3AF;
  --border: #E8E2DA;
  --border-light: #F0EBE3;
  --nav-bg: rgba(255, 250, 245, 0.92);
  --shadow-sm: 0 1px 2px rgba(26, 21, 37, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 21, 37, 0.06);
  --shadow-lg: 0 8px 30px rgba(26, 21, 37, 0.08);
  --shadow-glow-primary: 0 0 20px rgba(59, 92, 245, 0.15);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.dark {
  --primary: #4B7BF6;
  --primary-hover: #5B8BF6;
  --primary-light: #1E293B;
  --primary-glow: rgba(75, 123, 246, 0.2);
  --accent: #34D399;
  --accent-light: #064E3B;
  --accent-glow: rgba(52, 211, 153, 0.2);
  --warning: #F87171;
  --warning-light: #4C0519;
  --warning-glow: rgba(248, 113, 113, 0.2);
  --bg: #0B1120;
  --bg-alt: #111827;
  --bg-card: #1E293B;
  --text: #F1F0E8;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #1E293B;
  --border-light: #1E293B;
  --nav-bg: rgba(11, 17, 32, 0.92);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 0 20px rgba(75, 123, 246, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.dark ::selection {
  background: var(--primary);
  color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { line-height: 1.7; }

.text-balance {
  text-wrap: balance;
}

/* Navigation */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-weight: 500;
  font-size: 0.9375rem;
}

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

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: 12px;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60vh;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 92, 245, 0.1), transparent 50%);
}

.dark .hero-image::after {
  background: linear-gradient(135deg, rgba(75, 123, 246, 0.15), transparent 50%);
}

/* Calculator */
.calculator-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.calc-revenue-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}

.calc-revenue-display .currency {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

input[type="range"].calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}

input[type="range"].calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(59, 92, 245, 0.3);
  transition: transform 0.2s;
}

input[type="range"].calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"].calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(59, 92, 245, 0.3);
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.property-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.property-toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.property-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.property-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.property-btn:hover {
  background: var(--primary);
  color: white;
}

.property-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.property-btn:disabled:hover {
  background: transparent;
  color: var(--text);
}

.property-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  background: var(--bg);
}

/* Calculator Results */
.calc-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.calc-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.calc-result-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-result-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.calc-result-value.ota {
  color: var(--warning);
}

.calc-result-value.solvaya {
  color: var(--text-secondary);
  font-size: 1rem;
}

.calc-result-value.savings {
  color: var(--accent);
  font-size: 1.75rem;
}

.calc-divider {
  height: 2px;
  background: var(--border-light);
  margin: 0.75rem 0;
}

.calc-savings-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.calc-savings-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.calc-cta {
  margin-top: 1.5rem;
}

/* Trust Bar */
.trust-bar {
  padding: 4rem 0;
  background: var(--bg-alt);
  transition: background-color 0.3s ease;
}

.trust-bar-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.trust-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Testimonial */
.testimonial-section {
  padding: 5rem 0;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.testimonial-quote {
  position: relative;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: -0.5rem;
  font-style: normal;
  font-weight: 700;
}

.testimonial-attribution {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Freedom Stack Sections */
.freedom-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
}

.freedom-section:nth-child(odd) {
  background: var(--bg);
}

.freedom-section:nth-child(even) {
  background: var(--bg-alt);
}

.freedom-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
}

.freedom-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.freedom-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.freedom-pain {
  font-size: 0.9375rem;
  color: var(--warning);
  font-weight: 500;
}

.freedom-pain svg {
  flex-shrink: 0;
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1023px) {
  .progress-indicator {
    display: none;
  }
}

.progress-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 1rem;
  position: relative;
}

.progress-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary);
  transition: height 0.3s ease;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.progress-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.progress-dot-label {
  position: absolute;
  right: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

/* Pricing */
.pricing-section {
  padding: 8rem 0 4rem;
}

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark .pricing-card {
  border-color: var(--border);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.pricing-amount .currency-sign {
  font-size: 1.75rem;
  vertical-align: super;
  color: var(--text-secondary);
}

.pricing-per {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.pricing-features {
  margin: 2rem 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* FAQ */
.faq-section {
  padding: 4rem 0;
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}

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

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-question.open svg {
  transform: rotate(180deg);
}

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

.faq-answer.open {
  max-height: 200px;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-section {
  padding: 8rem 0 4rem;
}

.contact-form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
  outline: none;
  line-height: 1.5;
}

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

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-glow);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--warning);
  margin-top: 0.25rem;
  display: none;
}

.form-error.visible {
  display: block;
}

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

.form-success {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h3 {
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* CTA Banner */
.cta-banner {
  padding: 5rem 0;
  text-align: center;
  background: var(--bg-alt);
  transition: background-color 0.3s ease;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Page Hero */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-image {
    min-height: 40vh;
    border-radius: 12px;
  }

  .freedom-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .pricing-card {
    padding: 2rem;
  }
}

@media (max-width: 639px) {
  .pricing-amount {
    font-size: 2.75rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .calc-revenue-display {
    font-size: 1.5rem;
  }

  .calc-result-value.savings {
    font-size: 1.375rem;
  }
}

/* Smooth dark mode transitions */
img {
  transition: opacity 0.3s ease;
}
