/* ==========================================================================
   MatSea Innovation — Design Tokens
   Signature element: the "live ping" — concentric radar rings that echo the
   logomark's pin + checkmark, standing in for a real-time GPS signal.
   ========================================================================== */

:root {
  /* Color */
  --navy-950: #0c1230;
  --navy-900: #121a45;
  --navy-800: #1b2564;
  --navy-700: #26327f;
  --emerald-500: #21c579;
  --emerald-400: #3fe094;
  --alert-600: #e2394a;
  --paper-0: #ffffff;
  --paper-50: #f4f6fb;
  --paper-100: #e9edf7;
  --ink-900: #10142a;
  --ink-600: #454c66;
  --ink-400: #7b82a0;
  --line: rgba(18, 26, 69, 0.1);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-w: 1180px;
  --radius: 14px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper-50);
  color: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

p { margin: 0 0 1em; color: var(--ink-600); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(33, 197, 121, 0.6);
  animation: dotPulse 2.2s infinite;
}

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

/* visually hidden (skip links, sr-only labels) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------- header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 246, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.02rem;
}

.brand img { height: 34px; width: auto; }
.brand .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  text-transform: uppercase;
  font-weight: 500;
}

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

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-600);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--navy-900);
  color: #fff;
}

.nav-cta {
  margin-left: 8px;
  background: var(--emerald-500) !important;
  color: var(--navy-950) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--emerald-400) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper-0);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    gap: 4px;
  }
  .site-header.nav-open .nav-links a { text-align: left; }
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 90px;
  background: radial-gradient(circle at 78% 12%, #202c6f 0%, var(--navy-900) 46%, var(--navy-950) 100%);
  color: #fff;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero p.lead { color: rgba(255,255,255,0.72); font-size: 1.08rem; max-width: 46ch; }
.hero .eyebrow { color: var(--emerald-400); }
.hero .eyebrow::before { background: var(--emerald-400); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.ping-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ping-mark {
  position: absolute;
  top: 50%; right: 8%;
  transform: translate(0, -50%);
  width: 340px; height: 340px;
}

@media (max-width: 900px) {
  .ping-mark { width: 220px; height: 220px; right: 2%; opacity: 0.5; }
}

.ping-mark svg { width: 100%; height: 100%; }

.ring {
  fill: none;
  stroke: var(--emerald-400);
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: center;
  animation: ringPulse 3.6s ease-out infinite;
}
.ring.r2 { animation-delay: 1.2s; }
.ring.r3 { animation-delay: 2.4s; }

@keyframes ringPulse {
  0%   { opacity: 0.55; transform: scale(0.35); }
  70%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(33, 197, 121, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(33, 197, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 197, 121, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .eyebrow::before, .wa-fab .ring-fab { animation: none !important; }
}

/* ---------------------------------- buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--emerald-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--emerald-400); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-700); }

/* ---------------------------------- sections ---------------------------------- */

section { padding: 76px 0; }
.section-tight { padding: 54px 0; }

.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.band-dark {
  background: var(--navy-950);
  color: #fff;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: rgba(255,255,255,0.68); }

.band-paper-alt { background: var(--paper-100); }

/* ---------------------------------- stats ---------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  background: var(--paper-0);
  padding: 26px 22px;
}

.band-dark .stat-cell { background: var(--navy-900); }
.band-dark .stat-row { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--alert-600);
  display: block;
}
.band-dark .stat-num { color: var(--emerald-400); }

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-top: 4px;
}
.band-dark .stat-label { color: rgba(255,255,255,0.55); }

/* ---------------------------------- cards ---------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .hero .wrap { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card .index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-500);
  letter-spacing: 0.1em;
}

.card h3 { font-size: 1.08rem; margin-top: 10px; }
.card p { font-size: 0.93rem; margin-bottom: 0; }

.icon-badge {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--emerald-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------------------------------- founders ---------------------------------- */

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

@media (max-width: 820px) { .founder-grid { grid-template-columns: 1fr; } }

.founder-card {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.founder-card .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-500);
}

.avatar-mark {
  width: 86px; height: 86px;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
  color: var(--emerald-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.founder-card h3 { font-size: 1.32rem; margin-bottom: 2px; }
.founder-card .founder-title { color: var(--ink-400); font-size: 0.92rem; margin-bottom: 16px; }

.founder-card .signal {
  position: absolute;
  top: 28px; right: 28px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(33,197,121,0.55);
  animation: dotPulse 2.4s infinite;
}

/* ---------------------------------- services ---------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row .num {
  font-family: var(--font-mono);
  color: var(--emerald-500);
  font-size: 0.85rem;
  padding-top: 3px;
}

.service-row h3 { margin-bottom: 6px; font-size: 1.12rem; }
.service-row p { margin-bottom: 0; max-width: 62ch; }

.sos-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--alert-600), #a4192a);
  color: #fff;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sos-panel h3 { color: #fff; margin-bottom: 6px; }
.sos-panel p { color: rgba(255,255,255,0.85); margin-bottom: 0; max-width: 46ch; }

/* ---------------------------------- contact ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-list .ci-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  display: block;
}
.contact-list .ci-value { font-weight: 600; color: var(--navy-900); }
.contact-list a.ci-value:hover { color: var(--emerald-500); }

.contact-list .ci-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--emerald-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list .ci-icon svg { width: 18px; height: 18px; }

.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper-0);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.social-btn svg { width: 18px; height: 18px; color: var(--navy-900); }
.social-btn:hover { background: var(--navy-900); border-color: var(--navy-900); transform: translateY(-2px); }
.social-btn:hover svg { color: var(--emerald-400); }

form.contact-form {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  gap: 16px;
}

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-50);
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--emerald-500);
  outline-offset: 1px;
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-400);
  margin-top: -4px;
}

.form-status {
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(33,197,121,0.12); color: #12894f; }

/* ---------------------------------- map-ish placeholder ---------------------------------- */

.coverage-note {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-400);
  margin-top: 18px;
}

/* ---------------------------------- footer ---------------------------------- */

footer.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 46px 0 30px;
}
footer.site-footer .foot-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer .brand { color: #fff; }
footer .brand .tag { color: rgba(255,255,255,0.45); }
footer .foot-links { display: flex; gap: 34px; flex-wrap: wrap; }
footer .foot-links h4 { color: #fff; font-size: 0.82rem; margin-bottom: 12px; }
footer .foot-links a {
  display: block; font-size: 0.9rem; color: rgba(255,255,255,0.6);
  padding: 5px 0; transition: color 0.2s;
}
footer .foot-links a:hover { color: var(--emerald-400); }
footer .foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 20px;
  font-size: 0.8rem;
}
footer .foot-bottom .social-row { margin-top: 0; }
footer .social-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
footer .social-btn svg { color: rgba(255,255,255,0.8); }
footer .social-btn:hover { background: var(--emerald-500); border-color: var(--emerald-500); }
footer .social-btn:hover svg { color: var(--navy-950); }

/* ---------------------------------- WhatsApp floating action button ---------------------------------- */

.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(18, 26, 69, 0.35);
  border: none;
  cursor: pointer;
}
.wa-fab svg { width: 28px; height: 28px; }

.wa-fab .ring-fab {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: ringPulse 2.6s ease-out infinite;
}

.wa-tooltip {
  position: fixed;
  right: 92px; bottom: 38px;
  z-index: 60;
  background: var(--navy-950);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.wa-fab:hover + .wa-tooltip,
.wa-fab:focus + .wa-tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 600px) {
  .wa-tooltip { display: none; }
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------------------------------- page hero (secondary pages) ---------------------------------- */

.page-hero {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding: 62px 0 56px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-hero p { color: rgba(255,255,255,0.68); max-width: 58ch; }

/* utility */
.mt-lg { margin-top: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
