:root {
  /* Blue seed color - matching your Flutter theme */
  --seed-color: #2196f3;
  --seed-variant: #1976d2;
  --seed-container: #e3f2fd;

  /* Dark theme base (matching loading screen) */
  --surface: #0e1117;
  --surface-variant: #1c1f24;
  --surface-container: #2a2f3a;
  --surface-container-high: #373c47;
  --on-surface: #ffffff;
  --on-surface-variant: #ccc;
  --outline: #555;
  --outline-variant: #444;
  --shadow: rgba(0, 0, 0, 0.3);
  --elevation-1: 0 1px 3px var(--shadow);
  --elevation-2: 0 1px 5px var(--shadow), 0 2px 9px rgba(0, 0, 0, 0.15);
  --elevation-3: 0 4px 12px var(--shadow), 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: light) {
  :root {
    --surface: #fefbff;
    --surface-variant: #e7e0ec;
    --surface-container: #f3edf7;
    --surface-container-high: #ece6f0;
    --on-surface: #1c1b1f;
    --on-surface-variant: #49454f;
    --outline: #79747e;
    --outline-variant: #cac4d0;
    --shadow: rgba(0, 0, 0, 0.15);
    --seed-container: #e3f2fd;
  }
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 auto 1.5rem;
  color: var(--on-surface);
  background: linear-gradient(
    135deg,
    var(--on-surface) 0%,
    var(--seed-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--seed-color), var(--seed-variant));
  border-radius: 2px;
  margin: 1rem auto 0;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  text-align: center;
  margin: 0 auto 3rem;
  color: var(--on-surface-variant);
  max-width: 700px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Consistent section spacing */
section {
  padding: 6rem 2rem;
}

section:not(.hero-section) {
  padding: 6rem 2rem;
}

.hero-section {
  padding: 8rem 2rem 6rem;
}

section .section-title + .section-subtitle {
  margin-top: 1rem;
}

/* Improved text hierarchy */
.feature-title,
.plan-name,
.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.preview-text h3,
.feature-title {
  background: linear-gradient(
    135deg,
    var(--on-surface) 0%,
    var(--seed-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: "Courgette", cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    #00bfff 0%,
    var(--seed-color) 50%,
    #00d4ff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 32px rgba(0, 191, 255, 0.3);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Premium button styles */
.cta-button,
.plan-button {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--seed-color) 0%,
    var(--seed-variant) 100%
  );
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.01em;
}

.cta-button::before,
.plan-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover::before,
.plan-button:hover::before {
  left: 100%;
}

.cta-button:hover,
.plan-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
}

/* Premium visual enhancements */
.feature-card,
.pricing-card,
.preview-card {
  transform-origin: center;
}

.feature-card:hover,
.pricing-card:hover,
.preview-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Improved focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--seed-color);
  outline-offset: 2px;
  border-radius: 4px;
}
