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

html {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  color: hsl(0 0% 10%);
  background-color: hsl(0 0% 98%);
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

/* Brand Colors */
:root {
  --primary: #ffd60a;
  --accent: #00296b;
  --text: #1a1a1a;
  --background: hsl(0 0% 98%);
  --foreground: hsl(0 0% 10%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(0 0% 10%);
  --border: hsl(0 0% 90%);
  --muted: hsl(0 0% 96%);
  --muted-foreground: hsl(0 0% 45%);
  --radius: 0.5rem;
}

.dark {
  --background: hsl(0 0% 8%);
  --foreground: hsl(0 0% 95%);
  --card: hsl(0 0% 10%);
  --card-foreground: hsl(0 0% 95%);
  --border: hsl(0 0% 20%);
  --muted: hsl(0 0% 15%);
  --muted-foreground: hsl(0 0% 60%);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  max-height: 100vh;
  width: 420px;
  flex-direction: column-reverse;
  padding: 1rem;
  outline: none;
}

.toast-list {
  outline: none;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Main Wrapper */
.main-wrapper {
  min-height: 100vh;
  background-color: var(--background);
}

/* Header */
.header {
  background-color: white;
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 0.1),
    0 1px 2px -1px rgb(0 0 0 / 0.1);
  border-bottom: 1px solid hsl(var(--border));
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-section .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.logo a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav {
  display: none;
  gap: 2rem;
}

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

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-link.primary {
  color: var(--accent);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: colors 0.15s ease-in-out;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

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

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

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

.btn-primary:hover {
  background-color: #ffed4e;
}

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

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, #1e3a8a 100%);
  color: white;
  padding: 5rem 0;
}

.hero-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 0 2rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #dbeafe;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #dbeafe;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

.hero-quote {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--primary);
  font-weight: 600;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}

.link-accent {
  color: var(--accent);
  text-decoration: none;
}

.link-accent:hover {
  text-decoration: underline;
}

.external-link {
  color: var(--accent);
  text-decoration: none;
}

.external-link:hover {
  text-decoration: underline;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background-color: white;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

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

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

/* Card Components */
.feature-card {
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: var(--card);
  text-align: left;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
}

.card-header {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

.card-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card-description {
  color: hsl(var(--muted-foreground));
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
  background-color: var(--muted);
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

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

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

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

.pricing-card {
  position: relative;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: var(--card);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pricing-header-card {
  text-align: center;
  padding: 1.5rem 1.5rem 0;
}

.plan-name {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent);
}

.price-period {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.plan-specs {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo,
    monospace;
  margin-top: 0.5rem;
}

.pricing-content {
  text-align: center;
  padding: 1.5rem;
}

.plan-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: hsl(240 5.9% 10%);
  color: white;
  padding: 4rem 0;
}

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

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

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description {
  color: hsl(240 4.8% 95.9%);
  margin-bottom: 1rem;
}

.footer-contact {
  color: hsl(240 4.8% 95.9%);
  margin-bottom: 0.5rem;
}

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

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

.footer-links a {
  color: hsl(240 4.8% 95.9%);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid hsl(240 3.7% 15.9%);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: hsl(240 4.8% 95.9%);
}

/* Responsive Design */
@media (max-width: 767px) {
  .nav {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

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

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .hero {
    background: white;
    color: black;
  }
}
