:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.82);
  --text-main: #1e293b;
  --text-muted: #475569;
  --pastel-accent: #e0e7ff;
  --pastel-accent-strong: #6366f1;
  --pastel-highlight: #fdf2f8;
  --pastel-highlight-border: #fbcfe8;
  --pastel-mint: #ecfdf5;
  --pastel-mint-border: #a7f3d0;
  --border-light: #e2e8f0;
  --shadow-micro: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-soft: 0 10px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pastel-accent-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4338ca;
  text-decoration: underline;
}

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

:focus-visible {
  outline: 2px solid var(--pastel-accent-strong);
  outline-offset: 3px;
}

/* Header */
.site-header {
  height: 64px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-main);
}

.logo-link:hover {
  text-decoration: none;
  color: var(--pastel-accent-strong);
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--pastel-accent-strong);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--pastel-accent-strong);
  background-color: var(--pastel-accent);
  text-decoration: none;
}

.header-cta {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--pastel-accent-strong);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-micro);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.header-cta:hover {
  background-color: #4f46e5;
  color: #ffffff;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--text-main);
}

.mobile-menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Base Page Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.page-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--pastel-accent);
  color: var(--pastel-accent-strong);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.page-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Glass Overlay Card Style */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.glass-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #cbd5e1;
}

.glass-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.glass-card:hover .glass-card-bg {
  transform: scale(1.03);
}

.glass-card-overlay {
  position: relative;
  z-index: 2;
  margin: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-micro);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.glass-card-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  background-color: var(--pastel-highlight);
  color: #be185d;
  border: 1px solid var(--pastel-highlight-border);
  border-radius: var(--radius-pill);
}

.glass-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.glass-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.glass-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

/* Supporting Sections */
.supporting-section {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-micro);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-xl);
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.metric-card {
  padding: var(--space-md);
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.metric-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--pastel-accent-strong);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Content Editorial Layout */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
  border: 1px solid var(--border-light);
}

.article-header {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-md);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-main);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-main);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.article-body li {
  margin-bottom: var(--space-xs);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.pro-box, .con-box {
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.pro-box {
  background-color: var(--pastel-mint);
  border: 1px solid var(--pastel-mint-border);
}

.con-box {
  background-color: var(--pastel-highlight);
  border: 1px solid var(--pastel-highlight-border);
}

.pro-box h4, .con-box h4 {
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
}

.specs-table-wrapper {
  overflow-x: auto;
  margin: var(--space-md) 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.specs-table th, .specs-table td {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-light);
}

.specs-table th {
  background-color: var(--pastel-accent);
  font-weight: 600;
}

/* Contact Form & Elements */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-micro);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px var(--space-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background-color: #fafbfc;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--pastel-accent-strong);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: #ef4444;
  background-color: #fffbfa;
}

.error-message {
  display: none;
  font-size: 0.825rem;
  color: #dc2626;
  margin-top: 4px;
}

.error-message.is-visible {
  display: block;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--pastel-accent-strong);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  background-color: #4f46e5;
  color: #ffffff;
}

.form-success-banner {
  display: none;
  padding: var(--space-md);
  background-color: var(--pastel-mint);
  border: 1px solid var(--pastel-mint-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: #065f46;
  font-weight: 500;
}

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

.static-map-mock {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-top: var(--space-md);
}

.static-map-mock svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.map-pin-overlay {
  position: relative;
  z-index: 2;
  background-color: var(--bg-surface);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-micro);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: var(--space-xl) 0 var(--space-md);
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.footer-nav-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--space-md);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 500px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-cookie-accept {
  background-color: var(--pastel-accent-strong);
  color: #ffffff;
}

.btn-cookie-accept:hover {
  background-color: #4f46e5;
}

.btn-cookie-reject {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-cookie-reject:hover {
  background-color: #f1f5f9;
}

.btn-cookie-prefs {
  background-color: var(--pastel-accent);
  color: var(--pastel-accent-strong);
}

.btn-cookie-prefs:hover {
  background-color: #c7d2fe;
}

/* Modal for Preferences */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.cookie-modal-backdrop[hidden] {
  display: none !important;
}

.cookie-modal {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.cookie-pref-option {
  margin: var(--space-md) 0;
  padding: var(--space-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }
  
  .primary-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--space-xs);
  }

  .nav-link {
    display: block;
    width: 100%;
  }

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

  .header-cta {
    display: none;
  }

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

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 400px) {
  .page-title {
    font-size: 1.6rem;
  }

  .glass-card {
    height: 440px;
  }

  .glass-card-overlay {
    margin: var(--space-xs);
    padding: var(--space-sm);
  }

  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}

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