/* ===========================================================
   walidb.co — premium navy redesign
   deep navy base · subtle raised cards · muted steel-blue accent
   =========================================================== */

:root {
  --bg:        #090E20;   /* deep navy base */
  --bg-soft:   #0B1126;
  --surface:   #111A33;   /* raised section cards */
  --surface-2: #18223E;   /* nested elements (tiers, cards) */
  --text:      #F4F6FF;
  --muted:     #98A2C4;
  --heading-2: #57628C;   /* two-tone heading, second line */
  --accent:    #5C7CB8;   /* muted steel blue */
  --accent-2:  #7191C6;
  --accent-soft: rgba(92, 124, 184, .16);
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.13);

  --maxw: 1080px;
  --radius: 24px;

  --display: "Clash Display", system-ui, sans-serif;
  --body: "General Sans", system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* atmospheric depth — faint steel glows, not flat */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 700px at 78% -8%, rgba(92,124,184,.13), transparent 60%),
    radial-gradient(800px 600px at -5% 35%, rgba(92,124,184,.08), transparent 55%);
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 40px);
  backdrop-filter: blur(10px);
}
.nav__brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .98rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 20px; font-size: .92rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .18s ease, background .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 17px; height: 17px; margin-right: 9px; flex: 0 0 auto; }
.btn--pill { background: var(--text); color: #0A1024; border: 1px solid var(--text); }
.btn--pill:hover { opacity: .9; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn--outline:hover { border-color: var(--text); background: rgba(255,255,255,.05); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- section cards ---------- */
.panel {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 26px auto;
  padding: clamp(38px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -50px rgba(0,0,0,.9);
}

/* ---------- hero (open, centered — no card) ---------- */
.hero {
  background: transparent; border: none; box-shadow: none;
  text-align: center; overflow: hidden;
  padding-top: clamp(74px, 12vw, 150px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.hero__brands {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto 24px;
}
.brand-chip {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  border: 2px solid var(--bg); margin-left: -8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3); overflow: hidden;
}
.brand-chip:first-child { margin-left: 0; }
.brand-chip img, .brand-chip svg { width: 70%; height: 70%; object-fit: contain; }
.hero__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(92,124,184,.22), transparent 62%);
  filter: blur(18px); pointer-events: none;
}
.hero__title {
  position: relative; margin: 0 auto; max-width: 20ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  line-height: 1.05; letter-spacing: -.025em;
}
.line-white { display: block; color: var(--text); }
.line-muted { display: block; color: var(--heading-2); }
.hero__sub {
  position: relative; margin: 22px auto 0; max-width: 46ch;
  font-size: clamp(1rem, 1.7vw, 1.22rem); color: var(--muted);
}
.hero .btn-row { position: relative; margin-top: 34px; justify-content: center; }

/* ---------- about ---------- */
.about {
  background: transparent; border: none; box-shadow: none;
  display: grid; grid-template-columns: auto minmax(0, 360px);
  justify-content: center; align-items: center;
  gap: clamp(28px, 4vw, 54px);
  padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(28px, 4vw, 52px);
}
.about__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.02em; }
.about__role { margin-top: 16px; color: var(--muted); font-size: 1.12rem; max-width: 34ch; }
.about__photo {
  max-width: 320px; aspect-ratio: 4 / 5;
  border-radius: 26px 44% 26px 26px;   /* asymmetric sweep */
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border-2);
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 39% 40%; transform: scale(1.65); transform-origin: 39% 40%;
  display: block;
}

/* ---------- system / funnel ---------- */
.system { background: transparent; border: none; box-shadow: none; text-align: center; }
.system__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  letter-spacing: -.02em; line-height: 1.12; max-width: 18ch;
  margin: 0 auto;
}
.underline-wrap { position: relative; white-space: nowrap; }
.underline { position: absolute; left: 0; bottom: -.28em; width: 100%; height: .42em; overflow: visible; }
.system__sub { margin: 18px auto 0; color: var(--muted); font-size: 1.12rem; max-width: 44ch; }

.funnel { position: relative; max-width: 900px; margin: 46px auto 0; text-align: left; }
.funnel__steps { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 2; }
.tier {
  width: var(--w); min-width: min(100%, 360px);
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 26px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.tier:hover { transform: translateY(-2px); border-color: rgba(92,124,184,.5); }
.tier__num {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--text);
  font-family: var(--display); font-weight: 600; font-size: .95rem;
}
.tier__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.tier__body p { margin-top: 5px; color: var(--muted); font-size: .95rem; max-width: 56ch; }

.tier--money {
  margin-top: 16px; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 26px; border-radius: 18px;
  background: linear-gradient(180deg, var(--accent-soft), rgba(9,14,32,.4));
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(92,124,184,.2), 0 26px 55px -24px rgba(92,124,184,.7);
}
.tier--money .tier__num { background: var(--accent); }
.tier--money .tier__body h3 { font-size: 1.38rem; }
.tier--money .tier__body p { color: rgba(255,255,255,.82); max-width: 42ch; }

.funnel__flow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.funnel__flow span {
  position: absolute; top: -6%; left: var(--x, 50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 2px rgba(92,124,184,.8);
  opacity: 0; animation: fall var(--d, 6s) linear var(--delay, 0s) infinite;
}
@keyframes fall { 0%{top:-6%;opacity:0} 12%{opacity:.6} 88%{opacity:.6} 100%{top:104%;opacity:0} }

/* ---------- work ---------- */
.work__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 2.7rem); letter-spacing: -.02em; }
.tabs { display: flex; gap: 10px; margin: 28px 0 26px; }
.tab {
  font-family: var(--body); font-weight: 600; font-size: .98rem; text-transform: lowercase;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.tab.is-active { background: var(--accent); color: #0A1024; border-color: var(--accent); }

.carousel-wrap { position: relative; overflow: hidden; }
.carousel-wrap.is-hidden { display: none; }
.carousel { display: flex; gap: 18px; width: max-content; padding: 6px 2px 16px; }
@media (hover: hover) {
  .carousel { animation: marquee linear infinite; }
  .carousel-wrap:hover .carousel { animation-play-state: paused; }   /* hover to grab + click */
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--shift, 50%))); }
}
.card {
  flex: 0 0 auto; width: clamp(220px, 28vw, 270px); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.card--static { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.card--video { background: #000; border: 1px solid var(--border); }
.card--video video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* touch devices: no hover to pause, so fall back to free swipe (no auto-scroll, no clones) */
@media (hover: none) {
  .carousel-wrap { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .carousel-wrap::-webkit-scrollbar { display: none; }
  .carousel { animation: none; }
  .carousel__clone { display: none; }
}

/* ---------- results ---------- */
.results__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 2.7rem); letter-spacing: -.02em; }
.proof-board { position: relative; width: 100%; max-width: 1040px; aspect-ratio: 5 / 4; margin: 34px auto 0; }
.proof {
  position: absolute;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%);
  transform: rotate(calc(var(--r) * 1deg)); transition: box-shadow .2s;
}
.proof img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 38px -16px rgba(0,0,0,.85);
  background: #fff; user-select: none; -webkit-user-drag: none;
}
.proof.is-hero img { border: 2px solid var(--accent); box-shadow: 0 22px 50px -18px rgba(92,124,184,.5); }
.proof__handle { display: none; }
.proof-board.arrange .proof { cursor: grab; }
.proof-board.arrange .proof:hover { outline: 1px dashed rgba(255,255,255,.5); outline-offset: 4px; }
.proof-board.arrange .proof.dragging { cursor: grabbing; z-index: 999; box-shadow: 0 30px 60px -18px rgba(0,0,0,.9); }
.proof-board.arrange .proof__handle {
  display: block; position: absolute; right: -8px; bottom: -8px;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent); border: 2px solid #fff; cursor: nwse-resize; z-index: 2;
}

/* ---------- footer (open, centered) ---------- */
.footer { background: transparent; border: none; box-shadow: none; text-align: center; padding-bottom: clamp(54px, 8vw, 96px); }
.footer__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; }
.footer .btn-row { justify-content: center; margin-top: 34px; }
.footer__brand { margin-top: 44px; font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 1.05rem; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .about { grid-template-columns: 1fr; }
  .tier { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .funnel__flow { display: none; }
  .carousel { animation: none; }
  html { scroll-behavior: auto; }
}
