:root {
  --color-bg: #0a192f;
  --color-surface: #112240;
  --color-surface-hover: #1a3158;
  --color-text: #ccd6f6;
  --color-text-muted: #8892b0;
  --color-white: #e6f1ff;
  --color-accent: #ff7f50;
  --color-accent-glow: rgba(255, 127, 80, 0.15);
  --border-light: rgba(204, 214, 246, 0.08);
  --border-accent: rgba(255, 127, 80, 0.4);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 800; margin-bottom: 0.8rem; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; }
p { margin-bottom: 1.1rem; max-width: 68ch; }
.text-mute { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }
section { padding: 5.5rem 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Header & Navigation */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.brand span { color: var(--color-white); font-weight: 700; font-size: 1.15rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color var(--transition-base);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-accent); }

/* Footer */
.site-footer {
  background: var(--color-surface);
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-brand { margin-bottom: 1.2rem; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 0.5rem; filter: brightness(0.85); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--color-text); text-decoration: none; transition: color var(--transition-base); }
.footer-links a:hover { color: var(--color-accent); }
.copyright { margin-top: 1rem; font-size: 0.8rem; opacity: 0.7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  border: none; outline-offset: 2px;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.btn-primary { background: var(--color-accent); color: #ffffff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 127, 80, 0.35); }
.btn-secondary { background: transparent; border: 1.5px solid var(--color-accent); color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent-glow); }

/* Cards */
.card {
  background: var(--color-surface);
  padding: 2rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.card-icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--color-accent); flex-shrink: 0; }
.card-body { flex-grow: 1; }
.card-body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Table */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2.5rem 0; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1.1rem 1.4rem; text-align: left; border-bottom: 1px solid var(--border-light); }
th { background: rgba(255, 127, 80, 0.08); color: var(--color-accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
td { color: var(--color-text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* FAQ */
.faq-list { margin-top: 2rem; }
details {
  background: var(--color-surface); border-radius: var(--radius-sm);
  margin-bottom: 1rem; border: 1px solid var(--border-light); overflow: hidden;
  transition: border-color var(--transition-base);
}
details:hover { border-color: var(--border-accent); }
summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--color-white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition-base);
}
summary:hover { background: rgba(255, 255, 255, 0.03); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--color-accent); font-size: 1.6rem; font-weight: 300; transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.4rem; color: var(--color-text-muted); line-height: 1.8; }
.faq-answer p { margin-bottom: 0.6rem; }

/* Links */
a.link { color: var(--color-accent); text-decoration: none; border-bottom: 1px dashed var(--color-accent); transition: border-style var(--transition-base); }
a.link:hover { border-bottom-style: solid; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.related-item { display: flex; align-items: baseline; gap: 0.8rem; }
.related-item a { font-weight: 600; color: var(--color-white); text-decoration: none; }
.related-item a:hover { color: var(--color-accent); }
.related-item span { color: var(--color-text-muted); font-size: 0.9rem; }

/* SVG Animations */
.wave-container svg { width: 100%; height: auto; display: block; overflow: visible; }
.wave-path { fill: none; stroke: var(--color-accent); stroke-width: 2.5; stroke-linecap: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw-waves {
  0% { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  45% { stroke-dashoffset: 0.5; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.animate-draw { animation: draw-waves 6s ease-in-out infinite; }
.animate-draw.delay-1 { animation-delay: 0.4s; }
.animate-draw.delay-2 { animation-delay: 0.8s; }
.animate-draw.delay-3 { animation-delay: 1.2s; }

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.animate-pulse { animation: pulse-scale 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .animate-draw, .animate-pulse { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
  .nav-links { gap: 1.2rem; font-size: 0.9rem; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  .nav-links { display: none; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
}
