/* ============================================================
   Elucor — styles.css
   Palette: water-light. Type: Sora (display) / Albert Sans (body)
   / IBM Plex Mono (labels). Signature: the living ripple.
   ============================================================ */

:root {
  --surface: #fafdff;
  --mist: #eaf4fb;
  --mist-deep: #dcedf8;
  --ink: #0b2a3c;
  --slate: #41617a;
  --wave: #3fa9f5;
  --deep: #1273b8;
  --glow: #bfe3fb;
  --line: #cfe6f6;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--glow); }

a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--wave);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- type ---------- */

h1, h2, h3 { font-family: 'Sora', system-ui, sans-serif; line-height: 1.15; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }

.nav-cta {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--wave);
  color: var(--deep);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--wave); color: #fff; text-decoration: none; }

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

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-ripples {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 120px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 20px 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--deep);
}

.hero .sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto 38px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 99px;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(18, 115, 184, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  background: var(--wave);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(18, 115, 184, 0.55);
  text-decoration: none;
}

.btn-ghost {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 99px;
  color: var(--deep);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--wave); background: #fff; text-decoration: none; }

.etymology {
  margin-top: 56px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.etymology b { color: var(--deep); font-weight: 500; }

/* ---------- ripple animation (signature) ---------- */

.ring {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  animation: ripple 7.5s cubic-bezier(0.16, 0.6, 0.4, 1) infinite;
}
.ring:nth-child(2) { animation-delay: 1.5s; }
.ring:nth-child(3) { animation-delay: 3s; }
.ring:nth-child(4) { animation-delay: 4.5s; }
.ring:nth-child(5) { animation-delay: 6s; }

@keyframes ripple {
  0%   { transform: scale(0.12); opacity: 0; }
  10%  { opacity: 0.55; }
  70%  { opacity: 0.18; }
  100% { transform: scale(1); opacity: 0; }
}

.droplet-fall {
  animation: fall 1.1s cubic-bezier(0.5, 0, 0.9, 0.6) 0.25s both;
}

@keyframes fall {
  0%   { transform: translateY(-130px); opacity: 0; }
  25%  { opacity: 1; }
  92%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(4px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; opacity: 0.35; transform: none; }
  .ring:nth-child(4), .ring:nth-child(5) { opacity: 0.15; }
  .droplet-fall { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
}

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

section { padding: 96px 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
}
.section-head p { color: var(--slate); }

/* services */

.services { background: linear-gradient(var(--surface), var(--mist) 140%); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 10px 30px -18px rgba(11, 42, 60, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -18px rgba(11, 42, 60, 0.26);
}

.card h3 { font-size: 1.25rem; font-weight: 600; margin: 18px 0 12px; }
.card p { color: var(--slate); margin-bottom: 18px; }

.card ul { list-style: none; }
.card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--wave);
  border-radius: 50%;
}

.card-icon { width: 44px; height: 44px; }

/* process — rings grow with each step */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }

.step {
  border-top: 2px solid var(--line);
  padding-top: 26px;
}

.step-icon { width: 56px; height: 56px; margin-bottom: 16px; }

.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.step h3 span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--deep);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
}
.step p { color: var(--slate); font-size: 0.98rem; }

/* about */

.about { background: var(--mist); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
}
.about-grid p { color: var(--ink); margin-bottom: 18px; }
.about-grid p.quiet { color: var(--slate); }

/* contact */

.contact { text-align: center; }
.contact h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  margin: 14px 0 18px;
}
.contact p { color: var(--slate); max-width: 520px; margin: 0 auto 36px; }
.contact .mail {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  margin-top: 26px;
  color: var(--deep);
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.9rem;
  color: var(--slate);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--slate); }
.footer-links a:hover { color: var(--deep); }

/* ---------- scroll reveal ---------- */

/* hidden only when JS is available (html.js) — no-JS users see everything */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */

.legal { padding: 72px 0 96px; max-width: 720px; }
.legal h1 { font-size: 2rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .todo {
  background: #fff6e0;
  border: 1px dashed #d9a514;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero-inner { padding: 64px 20px 96px; }
  .nav-cta { padding: 8px 14px; font-size: 0.85rem; }
}
