/* =========================================================
   Ocean Automation — stylesheet
   Colors, spacing and radii are all CSS variables below,
   so the whole palette can be retuned from one place.
   ========================================================= */

:root {
  /* Dark premium ocean palette */
  --bg: #0A1420;           /* deep navy page background */
  --bg-rgb: 10, 20, 32;    /* same as --bg, as r,g,b for use inside rgba() */
  --bg-tint: #0F1E30;      /* slightly lighter navy for alternating sections */
  --surface: #101F32;      /* card / panel surface, one step up from bg-tint */

  --accent: #17E9C4;       /* glowing cyan/teal — headings, buttons, links */
  --accent-rgb: 23, 233, 196;
  --accent-deep: #00B8A0;  /* darker teal, gradient depth / hover states */
  --accent-soft: #6FD9C9;  /* dimmer cyan for eyebrows / subtitles / small labels */
  --border: #1B3A5C;       /* muted blue — card borders, dividers */

  --text: #E8EEF2;         /* light gray/white body text */
  --text-soft: #8FA6B8;    /* dimmer secondary text, still readable on dark bg */

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(var(--accent-rgb), 0.08);
  --glow-sm: 0 0 18px rgba(var(--accent-rgb), 0.35);

  --container: 1160px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* Respect reduced-motion preference site-wide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #06231D;
  box-shadow: var(--shadow-md), var(--glow-sm);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--glow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, #CFFFF6 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-tint);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.lang-btn {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { color: var(--accent); }
.lang-btn.is-active {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--accent);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, #102943 0%, var(--bg) 65%);
}

.hero-waves {
  position: absolute;
  inset: auto 0 -10% 0;
  height: 42%;
  pointer-events: none;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.wave path { fill: var(--accent); }
.wave-1 { opacity: 0.05; animation: drift 22s ease-in-out infinite; }
.wave-2 { opacity: 0.07; animation: drift 26s ease-in-out infinite reverse; }
.wave-3 { opacity: 0.10; animation: drift 18s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-2.5%) translateY(6px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--text);
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-deep), var(--accent) 60%, #B8FFF0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtext {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 64px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Sections (generic) ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}
.eyebrow {
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2, .about-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

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

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-deep);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.05));
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.card-subtitle { color: var(--accent-soft); font-weight: 500; font-size: 0.94rem; margin-bottom: 18px; }
.card p { color: var(--text-soft); }

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 0.94rem;
  color: var(--text);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Cases ---------- */
.case-card p { margin-bottom: 18px; }
.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #06231D;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm), var(--glow-sm);
}
.step h3 { font-size: 1.02rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 0.88rem; }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}
.price-card h3 { font-size: 1.15rem; }
.price-row { margin-top: 4px; }
.price-from { color: var(--text-soft); font-size: 0.9rem; margin-right: 4px; }
.price-amount { font-size: 2rem; font-weight: 800; color: var(--accent); }
.price-sub { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 20px; }
.price-amount-sm { font-weight: 700; color: var(--accent-soft); }
.price-card .check-list { margin-bottom: 26px; flex-grow: 1; }

.price-card-popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--glow-sm);
  transform: scale(1.03);
}
.price-card-popular:hover { transform: scale(1.03) translateY(-6px); }
.badge-popular {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #06231D;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.addons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.addon-pill {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}
.core {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.core-glow {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, #CFFFF6 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: 0 0 50px 14px rgba(var(--accent-rgb), 0.45);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 50px 14px rgba(var(--accent-rgb), 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 66px 20px rgba(var(--accent-rgb), 0.6); }
}
.ring {
  position: absolute;
  border: 1.5px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
}
.ring-1 { width: 120px; height: 120px; animation: spin 9s linear infinite; border-top-color: var(--accent); }
.ring-2 { width: 156px; height: 156px; animation: spin 14s linear infinite reverse; border-right-color: var(--accent); }
.ring-3 { width: 190px; height: 190px; animation: spin 20s linear infinite; border-bottom-color: var(--accent-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

.about-text p { color: var(--text-soft); margin-top: 18px; max-width: 520px; }
.about-text h2 { margin-top: 6px; }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tech-tag {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact / CTA ---------- */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #102943, #0B1826);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), var(--glow-sm);
}
.contact-box h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
}
.contact-box p {
  color: var(--text-soft);
  margin-top: 14px;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { color: var(--text-soft); font-size: 0.88rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--accent); }

.footer-link-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.6;
  cursor: default;
}
.soon-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-soft);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Wave dividers between sections ----------
   Each divider's own background matches the section ABOVE it
   (so its top edge is seamless); the SVG path is filled with
   the color of the section BELOW it, creating the curve. Set
   which colors via the --div-bg / --div-fill custom props on
   the element, e.g. style="--div-bg:var(--bg); --div-fill:var(--bg-tint);"
   ---------------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  line-height: 0;
  background: var(--div-bg, var(--bg));
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wave-divider path {
  fill: var(--div-fill, var(--bg-tint));
  filter: drop-shadow(0 -1px 5px rgba(var(--accent-rgb), 0.16));
}
.wave-divider.flip { transform: scaleX(-1); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-visual { height: 240px; }
  .about-text p { margin-left: auto; margin-right: auto; }
  .tech-tags { justify-content: center; }
  .price-card-popular { transform: scale(1); }
  .price-card-popular:hover { transform: translateY(-6px); }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav-links.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 10px 0; width: 100%; }

  .nav-burger { display: flex; }
  .brand-name { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 30px; }
  .section { padding: 68px 0; }

  .contact-box { padding: 48px 22px; }

  .wave-divider { height: 36px; }
}

@media (max-width: 420px) {
  .nav-actions { gap: 8px; }
  .lang-btn { padding: 6px 8px; font-size: 0.74rem; }
  .btn-sm { padding: 9px 14px; font-size: 0.84rem; }
}
