:root {
  /* Sampled directly from the SeaLog logo mark (assets/SeaLog - Splash.png)
     so the marketing site's chrome matches the actual logo pixel-for-pixel,
     not just an approximation of it. */
  --navy: #33476C;
  --navy-pressed: #24334E;
  --accent: #00ACEA;
  --accent-text: #4DC9F7;
  --bg: #0F1620;
  --bg-alt: #0B111A;
  --surface: #17202B;
  --surface-raised: #1D2733;
  --border: #2A3542;
  --text-primary: #F1F3F5;
  --text-secondary: #A7AFB9;
  --text-muted: #6B7480;
  --success: #34D399;
  --success-muted: #0B3B2E;
  --warning: #FBBF24;
  --warning-muted: #4A3405;
  --danger: #F87171;
  --danger-muted: #4A1616;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 22, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand svg, .brand-icon { width: 14px; height: 14px; object-fit: contain; }
.footer-brand .brand-icon { width: 12px; height: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #04222E;
}
.btn-primary:hover { background: #2FC2F7; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }

.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 24px 64px;
  overflow: hidden;
  background:
    radial-gradient(600px 320px at 12% -10%, rgba(0,172,234,0.16), transparent 60%),
    radial-gradient(500px 300px at 100% 0%, rgba(51,71,108,0.35), transparent 55%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(0, 172, 234, 0.1);
  border: 1px solid rgba(0, 172, 234, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero h1 span { color: var(--accent-text); }

.hero p.lead {
  font-size: 17.5px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-meta li { display: flex; align-items: center; gap: 7px; list-style: none; }
.hero-meta ul { display: flex; gap: 22px; flex-wrap: wrap; padding: 0; margin: 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex: none; }

/* device mockup */
.mockup-frame {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.phone {
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-raised), var(--bg-alt));
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
}

.phone-screen {
  background: var(--bg);
  border-radius: 22px;
  padding: 18px 16px 22px;
  border: 1px solid var(--border);
}

.phone-status { display:flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-bottom: 14px; }

.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.phone-card .row { display:flex; align-items:center; justify-content: space-between; margin-bottom: 6px; }
.phone-card .label { font-size: 11.5px; color: var(--text-secondary); font-weight: 600; }
.phone-card .value { font-size: 11px; color: var(--text-muted); }
.pill {
  font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.pill-green { background: var(--success-muted); color: var(--success); }
.pill-amber { background: var(--warning-muted); color: var(--warning); }
.pill-red { background: var(--danger-muted); color: var(--danger); }

.grid-mini { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 8px; }
.grid-mini span { height: 8px; border-radius: 2px; background: var(--border); }
.grid-mini span.on { background: var(--accent); }
.grid-mini span.warn { background: var(--warning); }

/* ---------- Section shell ---------- */
section { padding: 84px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--text-secondary); font-size: 16px; margin: 0; }

/* ---------- Pillars ---------- */
.pillars {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover { border-color: rgba(0,172,234,0.4); transform: translateY(-3px); }

.pillar-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.pillar-icon.blue { background: rgba(0,172,234,0.12); }
.pillar-icon.green { background: var(--success-muted); }
.pillar-icon.navy { background: rgba(51,71,108,0.35); }

.pillar-card h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -0.01em; }
.pillar-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }

/* ---------- Feature showcase ---------- */
.showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
}

.feature-tabs { display: flex; flex-direction: column; gap: 8px; }

.feature-tab {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.feature-tab:hover { border-color: rgba(0,172,234,0.35); }
.feature-tab.active { border-color: var(--accent); background: rgba(0,172,234,0.07); }
.feature-tab .ft-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; display:flex; align-items:center; gap: 9px; }
.feature-tab .ft-desc { font-size: 13px; color: var(--text-secondary); margin: 0; }
.feature-tab .ft-tag { font-size: 11px; }

.feature-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  min-height: 360px;
}
.feature-panel-body { display: none; }
.feature-panel-body.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.feature-panel h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
.feature-panel > .feature-panel-body > p.desc { color: var(--text-secondary); font-size: 15px; margin: 0 0 22px; max-width: 60ch; }

.feature-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.feature-points li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.feature-points li::before { content: "✓"; color: var(--success); font-weight: 700; flex: none; }

.mini-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  padding: 18px;
}

/* rest hours mini grid */
.rh-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.rh-grid span { height: 14px; border-radius: 2px; background: var(--border); }
.rh-grid span.work { background: var(--accent); }
.rh-grid span.meal { background: var(--warning); }
.rh-grid span.drill { background: var(--danger); }
.rh-legend { display:flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.rh-legend span { display:flex; align-items:center; gap:6px; }
.rh-legend i { width: 10px; height: 10px; border-radius: 3px; display:inline-block; }

/* compliance mini table */
.cm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cm-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.cm-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; }

/* ledger mini */
.ledger-row { display:flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.ledger-row:last-child { border-bottom: none; }
.ledger-amt.in { color: var(--success); }
.ledger-amt.out { color: var(--danger); }

/* ---------- User guide ---------- */
.guide-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s ease;
}
.guide-card:hover { border-color: rgba(0,172,234,0.4); }
.guide-card .guide-num { font-size: 12px; font-weight: 700; color: var(--accent-text); margin-bottom: 10px; }
.guide-card h4 { margin: 0 0 8px; font-size: 15.5px; }
.guide-card p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-secondary); }
.guide-card a.readmore { font-size: 13px; font-weight: 600; color: var(--accent-text); }

/* ---------- Bottom CTA ---------- */
.cta-band {
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy), var(--navy-pressed));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 90% 10%, rgba(0,172,234,0.25), transparent 60%);
}
.cta-band h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.02em; position: relative; }
.cta-band p { margin: 0; color: rgba(241,243,245,0.75); font-size: 15px; position: relative; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand p { color: var(--text-muted); font-size: 13.5px; max-width: 32ch; margin-top: 12px; }
.footer-col h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom {
  max-width: var(--max-width); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: 12.5px;
}

/* ---------- Guide / prose pages ---------- */
.guide-header {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 0;
}
.guide-header .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.guide-header h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 12px; }
.guide-header .back-link { display:inline-flex; align-items:center; gap:6px; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 28px; }
.guide-header .back-link:hover { color: var(--accent-text); }

.prose { max-width: 760px; margin: 0 auto; padding: 32px 24px 90px; font-size: 15.5px; color: var(--text-secondary); }
.prose h2 { color: var(--text-primary); font-size: 21px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ol, .prose ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent-text); }
.prose .callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 22px 0; font-size: 14px;
}
.prose code {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 6px; font-size: 13px; color: var(--accent-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mockup-frame { max-width: 260px; justify-self: start; }
  .pillars { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-links .btn { width: 100%; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 20px; }
}
