/* Core Custom Properties */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  --bg-dark: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(50, 125, 217, 0.15);
  
  --color-primary: #1E66C2; /* Logo Active Blue (WCAG AA Contrast compliant 4.7:1) */
  --color-secondary: #6750A4; /* M3 Brand Purple */
  --color-accent: #0056b3;
  
  --text-main: #1d1b20; /* Material 3 charcoal body text */
  --text-muted: #5f6368; /* Clean neutral grey */
  
  --gradient-hero: #327DD9; /* Removed gradient in favor of solid active blue */
  --gradient-accent: #6750A4; /* Solid purple accent */
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
  
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 8px 24px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--color-secondary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(240, 242, 245, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  gap: 0.5rem;
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.cta-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cta-primary:hover {
  background: #1651A3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.cta-secondary {
  background: #ffffff;
  color: #1d1b20;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cta-secondary:hover {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1d1b20;
}

/* Mobile Navigation Hamburger */
.hamburger {
  display: block;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #1a1a2e;
  margin: 5px 0;
  transition: var(--transition-smooth);
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-color);
  padding: 100px 2rem 2rem;
  z-index: 999;
  transition: 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  display: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Premium Card Component */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card::before {
  display: none;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(103, 80, 164, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  background: rgba(103, 80, 164, 0.2);
  color: var(--color-secondary);
}

/* Features & Scenarios */
.scenarios {
  padding: 80px 0;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* FAQ / Accordion */
.faq-section {
  padding: 80px 0;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.accordion-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-muted);
}

.accordion-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

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

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
}

/* Contact Form */
.contact-section {
  padding: 120px 0 80px;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* Static Pages Layout (Privacy, Terms, Blog etc.) */
.static-page {
  padding: 160px 0 80px;
}

.static-content {
  max-width: 800px;
  margin: 0 auto;
}

.static-content h2 {
  text-align: left;
  margin: 2rem 0 1rem;
}

.static-content ul, .static-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.static-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--gradient-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* App Download Badges */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  background: #111827; /* Deep solid black */
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  gap: 0.85rem;
  color: #ffffff;
  min-width: 210px; /* Equal widths for all three buttons looks incredibly premium */
  text-align: left;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-badge:hover {
  border-color: var(--color-primary);
  background: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.app-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  flex-shrink: 0;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
}

.app-badge-text span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  line-height: 1.2;
}

.app-badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 2px;
}

/* Hero Grid & Responsive Visuals */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-mockup {
  width: 100%;
  max-width: 290px;
  border-radius: 40px;
  border: 10px solid #1e293b;
  box-shadow: var(--shadow-premium), 0 0 50px rgba(99, 102, 241, 0.25);
  transform: rotate(-3deg);
  transition: var(--transition-smooth);
}

.screenshot-mockup:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Feature Grid with Screenshot Alignment */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  padding: 60px 0;
}

@media (min-width: 768px) {
  .feature-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .feature-split.reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-screenshot {
  width: 100%;
  max-width: 260px;
  border-radius: 28px;
  border: 6px solid #1e293b;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.feature-screenshot:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Quick Split Hero Form Card Component (Premium Conversion Elevation)
   ========================================================================== */
.quick-split-card {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: visible;
  transition: var(--transition-smooth);
}

.quick-split-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.quick-split-card h1 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a2e;
}

.quick-split-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.quick-split-form {
  display: flex;
  gap: 0.8rem;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.quick-split-form .form-control {
  flex: 1.3;
  min-width: 180px;
  border-radius: 9999px;
  height: 52px;
  padding: 0 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.quick-split-form .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(50, 125, 217, 0.12);
}

.quick-split-form button {
  flex: 0.7;
  height: 52px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 2rem;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Overrides for Above-the-Fold Priority
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 50px;
  }
  
  h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .hero-tagline {
    text-align: center;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .app-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
  
  .quick-split-card {
    margin-top: 1.25rem;
    padding: 1.5rem;
  }
  
  .quick-split-card h1 {
    text-align: center;
    font-size: 1.25rem;
  }
  
  .quick-split-card p {
    text-align: center;
    margin-bottom: 1.25rem;
  }
  
  .quick-split-form {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  
  .quick-split-form .form-control,
  .quick-split-form button {
    width: 100% !important;
    flex: none !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 40px;
  }
  
  h1 {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   Cookie Consent Floating Toast (GDPR/CCPA Compliance)
   ========================================================================== */
.cookie-toast {
  position: fixed;
  bottom: -200px; /* Hidden offscreen by default, transitioned via javascript */
  right: 24px;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.cookie-toast.active {
  bottom: 24px;
  opacity: 1;
}

.cookie-toast p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.cookie-toast a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-decline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.btn-decline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--text-main);
}

.btn-accept {
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
}

.btn-accept:hover {
  background: #1651A3;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cookie-toast {
    left: 16px;
    right: 16px;
    bottom: -200px;
    max-width: none;
  }
  .cookie-toast.active {
    bottom: 16px;
  }
}

