:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --brand: #0a5f5f;
  --brand-light: #e8f5f5;
  --accent: #f4a5ab;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --spacing: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--brand);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 1rem;
  background: var(--brand);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand);
  text-decoration: none;
  border: none;
}

.logo:hover {
  border: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
}

nav a:hover {
  background: var(--brand-light);
  color: var(--brand);
  border: none;
}

nav a[aria-current="page"] {
  background: var(--brand);
  color: white;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow);
  border-bottom: none;
}

.btn-primary:hover {
  background: #084d4d;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-bottom: none;
}

.btn-secondary {
  background: white;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-light);
  border-bottom: 2px solid var(--brand);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h2, .card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--brand);
}

.card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
}

.card-link:hover {
  gap: 0.75rem;
  border: none;
}

/* Content Section */
.content-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.prose h2:first-child {
  margin-top: 0;
}

/* Table */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--brand-light);
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

li strong {
  color: var(--text);
}

/* Note/Alert */
.note {
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(244, 165, 171, 0.1) 100%);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.note strong {
  color: var(--brand);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* FAQ */
details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

details:hover {
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand);
  transition: var(--transition);
}

details[open] summary::after {
  content: '−';
}

.answer {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Hero Image */
.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(244, 165, 171, 0.2) 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .content-section {
    padding: 3rem;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 767px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav ul {
    width: 100%;
    gap: 0.25rem;
  }
  
  nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .badge {
    display: none;
  }
  
  .hero-badge {
    font-size: 0.85rem;
  }
  
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.75rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }
}