/* Your WiFi Guys — apex styles
 *
 * Voice: bright, plainspoken, blue-collar-confident, quietly sophisticated.
 * The deliberate opposite of Atrium's dark sovereign luxury — this brand
 * shakes your hand and fixes the dead zone behind the bar.
 *
 * Palette: deep navy ink + a confident signal-blue accent + warm white paper.
 */

:root {
  --ink:        #0b1b3a;   /* deep navy — text + dark sections */
  --ink-soft:   #324a73;
  --paper:      #f7f9fc;   /* warm-cool white */
  --paper-2:    #eef3fa;
  --line:       #d9e2f0;
  --signal:     #1f6fff;   /* the accent — "signal" blue */
  --signal-2:   #4f93ff;
  --signal-ink: #0e3fa6;
  --warm:       #ffb347;   /* close-time warmth, used sparingly */
  --white:      #ffffff;

  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }
.accent { color: var(--signal); }
em { font-style: normal; color: var(--signal); }

/* ───────────────────────────  signal mark  ─────────────────────────── */
.signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 1em; }
.signal i {
  display: block; width: 4px; border-radius: 2px;
  background: var(--signal);
  animation: bar 2.4s ease-in-out infinite;
}
.signal i:nth-child(1) { height: 28%; animation-delay: 0s; }
.signal i:nth-child(2) { height: 52%; animation-delay: .15s; }
.signal i:nth-child(3) { height: 76%; animation-delay: .30s; }
.signal i:nth-child(4) { height: 100%; animation-delay: .45s; }
.signal.big { height: 1.6em; gap: 5px; }
.signal.big i { width: 7px; }
@keyframes bar { 0%, 100% { opacity: .45; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1); } }
.signal i { transform-origin: bottom; }

/* ───────────────────────────────  nav  ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem var(--pad);
  background: rgba(247, 249, 252, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  text-decoration: none; color: var(--white); background: var(--signal);
  padding: .5rem 1rem; border-radius: 999px; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--signal-ink); transform: translateY(-1px); }

/* ──────────────────────────────  hero  ─────────────────────────────── */
.hero { position: relative; padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(31,111,255,.16), transparent 70%),
    radial-gradient(50% 45% at 12% 30%, rgba(79,147,255,.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 7vw, 4.6rem); max-width: 16ch; }
.lede { font-size: clamp(1.08rem, 2.1vw, 1.32rem); color: var(--ink-soft); max-width: 56ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ──────────────────────────────  buttons  ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--signal); color: var(--white); box-shadow: 0 8px 24px -8px rgba(31,111,255,.6); }
.btn-primary:hover { background: var(--signal-ink); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }
.btn-big { font-size: 1.12rem; padding: 1rem 2rem; }

/* ──────────────────────────────  turn  ─────────────────────────────── */
.turn { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 9vw, 6rem) 0; }
.turn-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal-2); margin-bottom: 1rem;
}
.turn h2 { font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 3rem); max-width: 20ch; }
.turn h2 .accent, .turn em { color: var(--signal-2); }
.turn-sub { color: #b9c7e0; font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 60ch; margin-top: 1.4rem; }

/* ──────────────────────────────  what  ─────────────────────────────── */
.what { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.8rem; }
.kicker {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin-bottom: .9rem;
}
.section-head h2 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-sub { color: var(--ink-soft); font-size: 1.12rem; margin-top: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.7rem 1.6rem; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(11,27,58,.4); border-color: #c3d3ec; }
.card.lead { background: linear-gradient(160deg, #0b1b3a, #15356f); color: var(--white); border: none; grid-column: span 1; }
.card.lead .card-tag { color: var(--signal-2); }
.card.lead p { color: #c8d6ef; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--signal); margin-bottom: 1rem; height: 2rem; }
.card.lead .card-icon { color: var(--white); }
.card h3 { font-weight: 700; font-size: 1.3rem; margin-bottom: .3rem; }
.card-tag { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--signal); margin-bottom: .7rem; }
.card p:last-child { color: var(--ink-soft); font-size: .98rem; }
.card.lead p:last-child { color: #c8d6ef; }

/* ──────────────────────────────  why  ──────────────────────────────── */
.why { background: var(--paper-2); padding: clamp(3.5rem, 9vw, 6rem) 0; }
.whys { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem 2rem; margin-top: 2.4rem; }
.why-item h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: .5rem; position: relative; padding-left: 1rem; }
.why-item h3::before { content: ""; position: absolute; left: 0; top: .15em; height: 1em; width: 4px; border-radius: 2px; background: var(--signal); }
.why-item p { color: var(--ink-soft); }

/* ──────────────────────────────  who  ──────────────────────────────── */
.who { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.who h2 { font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.8rem); max-width: 22ch; }
.who-sub { color: var(--ink-soft); font-size: 1.15rem; max-width: 60ch; margin-top: 1.2rem; }

/* ──────────────────────────────  call  ─────────────────────────────── */
.call {
  background: linear-gradient(160deg, #15356f, var(--signal)); color: var(--white);
  padding: clamp(4rem, 10vw, 6.5rem) 0; text-align: center;
}
.call h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); }
.call-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e4edff; max-width: 50ch; margin: 1.2rem auto 2.2rem; }
.call .btn-primary { background: var(--white); color: var(--signal-ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.call .btn-primary:hover { background: var(--paper); }
.call-fine { margin-top: 1.2rem; color: #d6e3ff; font-size: .95rem; }

/* ──────────────────────────────  footer  ───────────────────────────── */
.foot { background: var(--ink); color: var(--white); padding: 2.8rem 0; text-align: center; }
.foot-brand { justify-content: center; color: var(--white); margin-bottom: .6rem; }
.foot .brand-name { color: var(--white); }
.foot-tag { font-family: var(--font-display); font-weight: 600; color: #b9c7e0; }
.foot-fine { color: #6f83a8; font-size: .85rem; margin-top: .8rem; }

/* ──────────────────────────────  reveal  ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .signal i { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
