/* Branding & Variables */
:root {
  /* Color Palette */
  --bg-color: #F4F6F8;
  --surface-color: #FFFFFF;
  --surface-border: rgba(0, 51, 102, 0.1);

  --bg-dark: #001529;
  --surface-dark: #001F40;
  --surface-border-dark: rgba(255, 255, 255, 0.1);

  --text-primary: #171717;
  --text-secondary: #475569;
  --text-light: #FFFFFF;
  --text-light-secondary: rgba(255, 255, 255, 0.7);

  --primary-color: #003366;
  --primary-hover: #1A4D85;
  --primary-dark: #001F40;

  --accent-color: #FFD100;
  --accent-hover: #E6BC00;
  --accent-text: #000000;

  --success-color: #10B981;
  --error-color: #EF4444;

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(255, 209, 0, 0.4);

  /* Shapes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

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

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

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.justify-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.text-white {
  color: var(--text-light);
}

.text-white h2,
.text-white h3,
.text-white p,
.text-white strong {
  color: var(--text-light) !important;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--accent-text);
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: rgba(0, 51, 102, 0.05);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.app-status-badge {
  background: rgba(0, 51, 102, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 51, 102, 0.2);
  display: inline-block;
}

/* Forms */
.mailing-list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.bg-dark .mailing-list-container {
  max-width: 600px;
}

.mailing-list-form {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.mailing-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--surface-color);
}

.mailing-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.waitlist-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 600px) {
  .mailing-list-form {
    flex-direction: column;
  }

  .mailing-input {
    width: 100%;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--surface-color);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

.nav-logo {
  height: 56px;
  width: auto;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.logo-icon {
  color: var(--primary-color);
  font-size: 1.7rem;
}

.navbar.scrolled .logo-icon,
.navbar.scrolled .logo {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Sections Common */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 5;
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark .section-subtitle,
.bg-dark p {
  color: var(--text-light);
}

.bg-dark .section-subtitle {
  opacity: 0.8;
}

.bg-light {
  background-color: #FFFFFF;
}

/* White for alternate sections */

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 5rem;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 51, 102, 0.1);
  border-radius: 100px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--bg-dark);
}

.gradient-text {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--surface-border);
  flex-wrap: wrap;
  margin-top: 4rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Background pattern instead of blobs for light mode */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 51, 102, 0.05) 2px, transparent 2px);
  background-size: 40px 40px;
  z-index: 1;
}

/* AI Definition */
.definition-section {
  padding: 4rem 0;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
}

.definition-section h2 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.definition-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-color);
  background: rgba(0, 51, 102, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 51, 102, 0.05);
  font-family: var(--font-display);
}

.step-card p {
  color: var(--text-secondary);
}

/* Personas */
.persona-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.persona-row.reverse {
  flex-direction: row-reverse;
}

.persona-row:last-child {
  margin-bottom: 0;
}

.persona-content {
  flex: 1;
}

.persona-image {
  flex: 1;
  position: relative;
}

.persona-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 1rem;
  background: rgba(0, 51, 102, 0.1);
  color: var(--primary-color);
}

.persona-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.persona-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.feature-list ion-icon {
  font-size: 1.5rem;
  color: var(--success-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-list strong {
  color: var(--text-primary);
}

.glass-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.rounded-img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Comparison Table */
.comparison-section {
  background: var(--bg-dark);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  border: 1px solid var(--surface-border-dark);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-border-dark);
}

.comparison-table th {
  font-family: var(--font-display);
  color: var(--text-light-secondary);
  font-size: 1.1rem;
}

.comparison-table .highlight-col {
  background: rgba(255, 209, 0, 0.05);
  border-left: 2px solid var(--accent-color);
  border-right: 2px solid var(--accent-color);
  color: white;
}

.comparison-table th.highlight-col {
  color: var(--accent-color);
  border-top: 4px solid var(--accent-color);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: var(--primary-color);
}

.bg-gradient-1 {
  background: var(--primary-color);
  color: var(--text-light);
}

.bg-gradient-2 {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.faq-answer {
  color: var(--text-secondary);
}

/* Footer */
.footer-cta {
  background: var(--bg-dark);
  padding: 8rem 0;
}

.footer-cta .cta-title {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-cta .cta-subtitle {
  color: var(--text-light-secondary);
  margin-bottom: 2.5rem;
}

.cta-shadow {
  box-shadow: var(--shadow-glow);
}

.footer {
  background: var(--bg-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .logo {
  color: var(--text-light);
}

.footer-brand .logo-icon {
  color: var(--accent-color);
}

.footer-brand p {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: var(--text-light-secondary);
  margin-bottom: 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
}

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

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

.social-links a {
  color: var(--text-light-secondary);
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
  color: var(--text-light-secondary);
  font-size: 0.9rem;
}

/* Animations */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.reveal-delay-1 {
  transition-delay: 0.2s;
}

.reveal-delay-2 {
  transition-delay: 0.4s;
}

@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--surface-border);
    gap: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .persona-row,
  .persona-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-list li {
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-color: #001529;
  --surface-color: #001F40;
  --surface-border: rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --primary-color: #FFD100;
}

body.dark-mode .hero-title,
body.dark-mode .nav-links a,
body.dark-mode .faq-question,
body.dark-mode .logo,
body.dark-mode .section-title,
body.dark-mode .step-title,
body.dark-mode .persona-title {
  color: #FFFFFF;
}

body.dark-mode .bg-light {
  background-color: #001529;
}

body.dark-mode .testimonial-card {
  background: #001F40;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-primary {
  color: #000000;
}

body.dark-mode .app-status-badge {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .hero-chip {
  color: #FFD100;
  border-color: rgba(255, 209, 0, 0.3);
  background: rgba(255, 209, 0, 0.1);
}

body.dark-mode .stat-number {
  color: #FFD100;
}

body.dark-mode .btn-outline {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

body.dark-mode .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mailing-input {
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

body.dark-mode .theme-toggle {
  color: #FFFFFF !important;
}

body.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .mobile-menu-btn,
body.dark-mode .nav-links a:hover,
body.dark-mode .logo-icon {
  color: #FFD100;
}

body.dark-mode .theme-toggle .moon {
  display: none;
}

body.dark-mode .theme-toggle .sun {
  display: block !important;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 21, 41, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.modal-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.modal-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark-mode .modal-card {
  background: #001F40;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-card h3 {
  color: #FFFFFF;
}