/* ============ Dolphin Infotek — Design System ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #F7F5F0;
  --bg-deep: #0A1F3D;
  --ink: #0B1220;
  --ink-2: #1F2937;
  --muted: #5B6573;
  --muted-2: #8A93A1;
  --line: #E6E2D8;
  --line-2: #EEEAE0;
  --accent: #FF5B34;
  --accent-warm: #F4B860;
  --navy: #0A1F3D;
  --navy-2: #142A4E;
  --on-navy: #E9E2D2;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px;
  --container: 1240px;
}
[data-theme="dark"] {
  --bg: #07101F; --bg-alt: #0C1A30; --bg-deep: #03080F;
  --ink: #F2EFE6; --ink-2: #D6D1C2;
  --muted: #93A0B5; --muted-2: #6A7689;
  --line: #1A2A44; --line-2: #14223A;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.eyebrow { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(48px, 6.5vw, 92px); }
h2 { font-size: clamp(36px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo-mark { display: inline-flex; align-items: center; height: 44px; }
.logo-mark svg { height: 100%; width: auto; display: block; }
.logo-mark svg path { transition: fill .2s ease; }
:root[data-theme="dark"] .logo-mark svg path { fill: #F5F1E8 !important; }
.logo-mark--on-dark svg path { fill: #F5F1E8 !important; }
.footer .logo-mark { height: 52px; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .18s ease; padding: 0; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle.is-dark .icon-sun { display: none; }
.theme-toggle.is-dark .icon-moon { display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; cursor: pointer; }
.nav-links a:hover { color: var(--accent); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown:hover .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.dd-menu { position: absolute; top: 100%; left: -16px; padding-top: 16px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s ease; }
.dd-menu-inner { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; width: 300px; box-shadow: 0 18px 40px -16px rgba(10, 31, 61, 0.18); }
.dd-item { display: block; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.dd-item:hover { background: var(--bg-alt); color: var(--ink); }
.dd-item small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .15s; }
.nav-cta:hover { background: var(--accent); }
.nav-cta svg { width: 14px; height: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-family: var(--body); font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #e94a26; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 14px; height: 14px; }
section { padding: 96px 0; position: relative; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.section-header .lead { max-width: 520px; color: var(--muted); font-size: 17px; }
.footer { background: var(--navy); color: var(--on-navy); padding: 88px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px; }
.footer h5 { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: white; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer ul a { color: rgba(233, 226, 210, 0.7); transition: color .15s; }
.footer ul a:hover { color: var(--accent-warm); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(233, 226, 210, 0.55); }
.footer-brand-block p { font-size: 14px; color: rgba(233, 226, 210, 0.7); max-width: 320px; margin-top: 16px; }
.footer .logo { color: white; }
#tweaks-panel { position: fixed; bottom: 24px; right: 24px; z-index: 100; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 24px 60px -20px rgba(10, 31, 61, 0.25); display: none; min-width: 220px; }
#tweaks-panel.on { display: block; }
#tweaks-panel h6 { margin: 0 0 12px; font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tweak-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.toggle { width: 36px; height: 20px; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 999px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(16px); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .section-header { flex-direction: column; align-items: start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
