/* =========================================================
   WaventCode - landing  (calmer, less AI-flavored)
   ========================================================= */
:root {
  --ink-950: #060c1d;
  --ink-900: #0a1326;
  --ink-800: #111e3d;
  --ink-700: #1a2a55;
  --line:        rgba(120, 150, 220, 0.14);
  --line-strong: rgba(120, 150, 220, 0.26);

  --blue-700: #1a3fb8;
  --blue-600: #1f4ed8;
  --blue-500: #2f6bff;
  --blue-400: #5b8cff;
  --blue-300: #8eb0ff;
  --blue-200: #c5d4ff;
  --paper:    #eef2ff;
  --muted:    #9aa8c8;

  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --maxw: 1200px;
  --pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { position: relative; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* very subtle ambient backdrop */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  mix-blend-mode: screen;
}
.blob.b1 {
  width: 560px; height: 560px;
  left: -160px; top: -120px;
  background: radial-gradient(circle, var(--blue-600), transparent 70%);
}
.blob.b2 {
  width: 600px; height: 600px;
  right: -180px; top: 40%;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  opacity: 0.14;
}

/* scroll reveals - restrained */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  background: rgba(6, 12, 29, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo {
  height: 28px;
  width: auto;
}
.nav-name {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.nav-name b { color: var(--blue-400); font-weight: 700; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 15px;
  color: var(--blue-200);
}
.nav-links a {
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 180ms;
}
.nav-links a:hover { opacity: 1; color: #fff; }
.nav-cta {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--blue-500);
  color: white;
  font-weight: 500;
  font-size: 15px;
  transition: background 180ms;
}
.nav-cta:hover { background: var(--blue-400); }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  padding: 100px var(--pad-x) 100px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--paper);
  text-wrap: pretty;
}
.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--blue-200);
  max-width: 600px;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform 220ms ease, box-shadow 240ms ease, background 240ms ease, border-color 220ms ease, color 220ms ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { transition: transform 240ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f6bff 0%, #1f4ed8 100%);
  box-shadow:
    0 8px 24px -8px rgba(47, 107, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5b8cff 0%, #2f6bff 100%);
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow:
    0 14px 32px -10px rgba(47, 107, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  color: var(--paper);
  background: rgba(17, 30, 61, 0.5);
  border-color: rgba(120, 150, 220, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(47, 107, 255, 0.14);
  border-color: var(--blue-400);
  color: #fff;
}
.hero-strip {
  margin-top: 48px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.strip-item {
  display: flex; align-items: center; gap: 8px;
}
.strip-item b { color: var(--paper); font-weight: 500; }
.strip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
}

/* faint background W */
.hero-mark { display: none; }

/* ===== BAND (marquee) ===== */
.band {
  position: relative;
  z-index: 2;
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 50% 50%, rgba(47,107,255,0.07), transparent 70%),
    linear-gradient(180deg, rgba(10,19,38,0.5), rgba(6,12,29,0.85));
  overflow: hidden;
}
.band-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.band-row + .band-row { margin-top: 22px; }

.band-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: band-scroll 50s linear infinite;
}
.band-track--rev {
  animation: band-scroll-rev 70s linear infinite;
  gap: 14px;
}
.band:hover .band-track {
  animation-play-state: paused;
}
@keyframes band-scroll {
  to { transform: translateX(-50%); }
}
@keyframes band-scroll-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.band-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
}
.band-stat b {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--paper), var(--blue-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.band-stat i {
  font-style: normal;
  font-size: 15px;
  color: var(--blue-200);
  letter-spacing: 0.01em;
}
.band-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  opacity: 0.7;
  flex-shrink: 0;
}

.band-tag {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 30, 61, 0.55);
  color: var(--blue-200);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}


/* ===== SECTION ===== */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px var(--pad-x);
}
.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--paper);
  text-wrap: balance;
}
.section-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--blue-200);
  text-wrap: pretty;
}

/* ===== SERVICES ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) { .services { grid-template-columns: 1fr; } }
.service {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 30, 61, 0.4);
  transition: border-color 240ms, background 240ms;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service:hover {
  border-color: var(--line-strong);
  background: rgba(17, 30, 61, 0.6);
}
.service-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.service-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-400);
}
.service-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
  color: var(--paper);
}
.service-desc {
  margin: 0;
  color: var(--blue-200);
  line-height: 1.55;
  font-size: 15px;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--paper);
  line-height: 1.45;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}
.service-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.service-foot b { color: var(--paper); font-weight: 500; }

/* ===== PROCESS ===== */
.process {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }
.process-step {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
}
.step-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-400);
}
.process-step h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.process-step p {
  margin: 0;
  color: var(--blue-200);
  font-size: 15px;
  line-height: 1.5;
}
.step-time {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== CASES ===== */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .cases { grid-template-columns: 1fr; } }
.case {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 30, 61, 0.35);
  transition: border-color 240ms, background 240ms;
}
.case:hover {
  border-color: var(--line-strong);
  background: rgba(17, 30, 61, 0.6);
}
.case-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-700);
}
.case-img[data-bg="1"] { background: linear-gradient(135deg, #1f4ed8, #0a1326); }
.case-img[data-bg="2"] { background: linear-gradient(135deg, #2f6bff, #0a1326); }
.case-img[data-bg="3"] { background: linear-gradient(135deg, #1a2a55, #0a1326); }
.case-img[data-bg="4"] { background: linear-gradient(135deg, #1a3fb8, #0a1326); }
.case-img[data-bg="5"] { background: linear-gradient(135deg, #5b8cff, #0a1326); }
.case-img[data-bg="6"] { background: linear-gradient(135deg, #111e3d, #1f4ed8); }
.case-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(6, 12, 29, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.case-meta h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.case-meta p {
  margin: 8px 0 0;
  color: var(--blue-200);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x) 100px;
}
.cta-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 30, 61, 0.5);
}
@media (max-width: 900px) {
  .cta-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
.cta-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}
.cta-sub {
  margin: 18px 0 28px;
  color: var(--blue-200);
  font-size: 16px;
  line-height: 1.55;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
}
.cta-points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 12, 29, 0.3);
}
.cta-points b {
  color: var(--paper);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.cta-points span {
  color: var(--muted);
  font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px var(--pad-x) 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand {
  display: flex; gap: 14px; align-items: center;
}
.footer-logo {
  height: 34px;
}
.footer-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.footer-name b { color: var(--blue-400); font-weight: 700; }
.footer-contacts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-link span {
  font-size: 13px;
  color: var(--muted);
}
.footer-link b {
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
  transition: color 180ms;
}
.footer-link:hover b { color: var(--blue-400); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 768px) {
  :root { --pad-x: 18px; }

  .nav { padding: 14px var(--pad-x); gap: 12px; }
  .nav-logo { height: 24px; }
  .nav-name { font-size: 16px; }
  .nav-cta { padding: 9px 16px; font-size: 14px; }

  .hero { padding: 48px var(--pad-x) 28px; }
  .hero-title { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.08; }
  .hero-title br { display: none; }
  .hero-sub { margin-top: 18px; font-size: 15px; line-height: 1.5; }
  .hero-cta { margin-top: 24px; gap: 10px; }
  .hero-cta .btn { width: 100%; padding: 14px 22px; }

  .section { padding: 36px var(--pad-x) 56px; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .section-sub { font-size: 15px; margin-top: 12px; }

  .service { padding: 24px 20px; gap: 12px; }
  .service-title { font-size: 20px; }
  .service-desc, .service-list li { font-size: 14px; }

  .process-step { padding: 24px 18px; }
  .process-step h3 { font-size: 19px; }
  .process-step p { font-size: 14px; }

  .case { padding: 12px; }
  .case-meta h3 { font-size: 17px; }
  .case-meta p { font-size: 13px; }

  .cta-section { padding: 40px var(--pad-x) 64px; }
  .cta-card { padding: 26px 22px; border-radius: 16px; gap: 24px; }
  .cta-title { font-size: clamp(24px, 6.5vw, 32px); }
  .cta-sub { margin: 12px 0 20px; font-size: 14px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-points { gap: 10px; }
  .cta-points li { padding: 12px 14px; }
  .cta-points b { font-size: 15px; }
  .cta-points span { font-size: 13px; }

  .footer { padding: 36px var(--pad-x) 24px; }
  .footer-top { gap: 20px; }
  .footer-contacts { gap: 18px; }
  .footer-link b { font-size: 16px; }
  .footer-logo { height: 28px; }
  .footer-name { font-size: 17px; }
  .footer-bottom { margin-top: 22px; font-size: 12px; gap: 8px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 30px; }
  .section-title { font-size: 26px; }
}
