/* ==========================================================================
   NOCturnal Marketing Site — nocturnal247.com
   Dark NOC-inspired SaaS marketing stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Root tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #050810;
  --surface: #0a1020;
  --card: #0f1828;
  --card-hover: #142235;
  --border: #1a2a40;
  --border-light: #253550;
  --text: #e8edf8;
  --text-muted: #8a9bbf;
  --text-dim: #566689;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --green: #00e5a0;
  --red: #ff4466;
  --yellow: #ffc044;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* Plain dark base — the NOC photo backdrop sits on body::before */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Backdrop wallpaper — NOC photo with smoked-glass treatment ────────
   Three stacked layers behind everything else:
     ::before  → the photo, blurred + darkened + desaturated (smoked glass)
     ::after   → a brand-tinted radial gradient overlay (vignette)
     body bg   → solid dark fallback if image fails to load
   z-index -2 / -1 keep them under all real content (which is z-index 0+). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/public/img/noc-room-backdrop.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(6px) brightness(0.45) saturate(0.7) contrast(0.92);
  transform: scale(1.04);              /* hide the soft blur edge */
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(0, 229, 160, 0.05), transparent 60%),
    radial-gradient(ellipse at center, rgba(5, 8, 16, 0.40) 0%, rgba(5, 8, 16, 0.78) 100%);
  z-index: -1;
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5ee5ff;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

::selection {
  background: var(--accent-glow);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}

.logo .logo-mark {
  color: var(--text);
}

.logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #33dcff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 85vh;
  padding: 120px 32px 60px;
  max-width: 1320px;                       /* widened from 1200 so the iPad mockup gets more room */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;    /* visual gets more space than copy */
  align-items: center;
  gap: 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e8edf8 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.subhead {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

/* Container for the device-framed image + the caption beneath it.
   No box styling here anymore — the iPad-style frame lives on
   .hero-visual-img so the caption can sit *outside* the device. */
.hero-visual {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

/* iPad-style device frame: black bezel, rounded corners, soft drop shadow,
   subtle aluminum-edge highlight, front-facing camera dot, hover glow.
   ::before  → camera hole (centered on top bezel)
   ::after   → screen glass highlight (subtle diagonal sheen) */
.hero-visual-img {
  display: block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, #0d0d0f 0%, #050506 100%);
  border-radius: 30px;
  padding: 22px 18px 22px 18px;            /* slightly taller top/bottom for the camera */
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.7),         /* drop shadow */
    0 0 0 1px rgba(255, 255, 255, 0.08),    /* aluminum edge */
    inset 0 1px 0 rgba(255, 255, 255, 0.06),/* top highlight */
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-visual-img:hover {
  transform: translateY(-3px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 212, 255, 0.30),
    0 0 38px rgba(0, 212, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Front-facing camera lens — small dark dot centered on the top bezel,
   with a faint chrome ring and a subtle inner reflection. */
.hero-visual-img::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%,
      rgba(110, 130, 160, 0.35) 0%,
      #1a1d24 50%,
      #06070a 100%);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.07),   /* chrome bezel ring */
    inset 0 0 1.5px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Subtle glass reflection across the screen — extra polish that makes the
   inner display read as a real LCD rather than a flat image. */
.hero-visual-img::after {
  content: '';
  position: absolute;
  top: 22px; left: 18px; right: 18px; bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-visual-img .noc-preview {
  display: block;
  width: 100%;
  border-radius: 12px;       /* the inner "screen" corner radius */
  background: #04070d;
}

/* ── iPad swipeable carousel ──────────────────────────────────────────
   The .ipad-track is a horizontal scroller with CSS scroll-snap. Each
   .ipad-slide is one full-width slide. Native touch swipe + mouse drag
   work out of the box. The dots below provide click navigation. */
.hero-visual-img .ipad-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  background: #04070d;
}
.hero-visual-img .ipad-track::-webkit-scrollbar { display: none; }
.hero-visual-img .ipad-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.hero-visual-img .ipad-slide .noc-preview { width: 100%; display: block; }

/* Globe slide — the iframe is overlaid on top of the static SVG fallback.
   Until the iframe loads, the SVG shows. Once loaded, .loaded class hides
   the fallback. iframe is pointer-events:none so swipes/clicks reach the
   parent <a>. */
.hero-visual-img .ipad-slide--globe { position: relative; }
.hero-visual-img .ipad-globe-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.hero-visual-img .ipad-slide--globe.loaded .ipad-globe-frame { opacity: 1; }
.hero-visual-img .ipad-globe-fallback { position: relative; z-index: 1; }

/* Slide-indicator dots, positioned just inside the bottom bezel */
.hero-visual-img .ipad-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-visual-img .ipad-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 0; padding: 0; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-visual-img .ipad-dot.active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
}
.hero-visual-img .ipad-dot:hover { background: rgba(255, 255, 255, 0.35); }
.hero-visual-img .ipad-dot.active:hover { background: var(--accent); }

/* Caption sits BELOW the device frame, not on it. */
.hero-visual-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

section > h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

section > p.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 64px;
  font-size: 18px;
  line-height: 1.55;
}

.eyebrow {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Social proof
   -------------------------------------------------------------------------- */
.social-proof {
  padding: 40px 32px;
  background: transparent;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-proof-logos {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.7;
}

.social-proof-logos span,
.social-proof-logos img {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 16px;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.social-proof-logos span:hover,
.social-proof-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   How it works — steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-number {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.step h3 {
  font-size: 22px;
  margin: 12px 0;
  font-weight: 600;
  color: var(--text);
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--border-light);
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
  background: linear-gradient(180deg, var(--card) 0%, rgba(0, 212, 255, 0.03) 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.pricing-card .price {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-card .price .per {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .plan-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  min-height: 42px;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  flex: 1;
}

.pricing-card .features li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.pricing-card .features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300d4ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.testimonial:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.testimonial blockquote {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text);
  font-style: normal;
}

.testimonial blockquote::before {
  content: '"';
  font-family: var(--mono);
  font-size: 48px;
  color: var(--accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 8px;
}

.testimonial .cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

.testimonial .cite strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

details.faq-item:hover {
  border-color: var(--border-light);
}

details.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

details.faq-item .faq-answer {
  padding: 16px 24px 20px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Final CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  padding: 80px 32px;
  margin-top: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--surface), var(--card));
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 212, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.55;
}

.cta-band .hero-buttons {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 48px 32px 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.55;
  max-width: 260px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom .socials {
  display: inline-flex;
  gap: 14px;
}

.footer-bottom .socials a {
  color: var(--text-dim);
}

.footer-bottom .socials a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Auth forms
   -------------------------------------------------------------------------- */
.auth-wrap {
  max-width: 440px;
  margin: 120px auto;
  padding: 0 32px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.01em;
}

.auth-card p.sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-card .auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-card .auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-group .hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-error {
  background: rgba(255, 68, 102, 0.08);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-success {
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 12px;
  margin: 24px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  color: #333;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.google-btn:hover {
  background: #f7f7f7;
  color: #333;
  transform: translateY(-1px);
}

.google-btn svg,
.google-btn img {
  width: 18px;
  height: 18px;
}

/* Form submit button spans full width in auth cards */
.auth-card .btn-primary[type='submit'],
.auth-card button[type='submit'].btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Utility — badges, pills, dots
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.badge.badge-green {
  background: rgba(0, 229, 160, 0.08);
  color: var(--green);
  border-color: rgba(0, 229, 160, 0.25);
}

.badge.badge-red {
  background: rgba(255, 68, 102, 0.08);
  color: var(--red);
  border-color: rgba(255, 68, 102, 0.25);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 229, 160, 0.6);
  animation: pulse 2s infinite;
}

.text-mono {
  font-family: var(--mono);
}

.text-muted {
  color: var(--text-muted);
}

.text-dim {
  color: var(--text-dim);
}

.text-accent {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.08s; }
.fade-up.delay-2 { animation-delay: 0.16s; }
.fade-up.delay-3 { animation-delay: 0.24s; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 110px;
  }

  .hero p.subhead {
    max-width: 100%;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 20px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  section.section {
    padding: 60px 24px;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    padding: 14px;
  }

  .social-proof {
    padding: 32px 20px;
  }

  .social-proof-logos {
    gap: 24px;
  }

  .cta-band {
    padding: 60px 20px;
    margin-top: 40px;
  }

  .auth-wrap {
    margin: 90px auto;
    padding: 0 20px;
  }

  .auth-card {
    padding: 28px 24px;
  }

  footer {
    padding: 40px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .nav-cta .btn-secondary {
    display: none;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 16px;
  }

  .btn {
    padding: 11px 18px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 14px 22px;
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   Homepage — minimal: hero only, ends at tagline footer (no scrolling past)
   -------------------------------------------------------------------------- */
.marketing-main-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px); /* assumes ~72px sticky header */
}

.marketing-main-home .hero {
  flex: 1 1 auto;
  min-height: 0;
  padding: 96px 32px 48px;
}

.marketing-main-home .hero-copy {
  max-width: 580px;
}

.marketing-main-home .hero h1,
.marketing-main-home .hero-headline {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  max-width: 560px;
  margin-bottom: 22px;
}

.marketing-main-home .hero-subhead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.55;
}

.marketing-main-home .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.marketing-main-home .hero-microcopy {
  margin-top: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.home-tagline-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 28px 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.home-tagline-accent {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .marketing-main-home .hero {
    padding: 72px 24px 32px;
  }
  .home-tagline-footer {
    font-size: 15px;
    padding: 22px 18px;
  }
}

/* --------------------------------------------------------------------------
   Homepage ISP latency leader + ticker
   -------------------------------------------------------------------------- */
.isp-leader-section {
  text-align: center;
  padding: 22px 24px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.isp-leader-line {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.isp-leader-name {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.15em;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
}

/* ==========================================================================
   ISP TICKER — original "console" theme (kept for rollback)
   To revert: delete the "modern chip" block below and uncomment this block.
   --------------------------------------------------------------------------
.isp-ticker {
  background: #06101e;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 14px;
  color: var(--text-muted);
}
.isp-ticker::before,
.isp-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  pointer-events: none;
  z-index: 2;
}
.isp-ticker::before { left: 0;  background: linear-gradient(to right, #06101e, transparent); }
.isp-ticker::after  { right: 0; background: linear-gradient(to left,  #06101e, transparent); }
.isp-ticker-track {
  display: inline-block;
  padding: 14px 0;
  animation: isp-ticker-scroll 60s linear infinite;
  will-change: transform;
}
.isp-ticker:hover .isp-ticker-track { animation-play-state: paused; }
.isp-ticker-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 18px; }
.isp-ticker-isp  { color: #d6e2f5; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.isp-ticker-ms   { color: var(--accent); font-weight: 700; }
.isp-ticker-sep  { color: #2a3b5c; padding: 0 6px; }
.isp-ticker-empty{ display: inline-block; padding: 14px 24px; color: var(--text-dim); font-style: italic; }
@media (max-width: 768px) {
  .isp-leader-section { padding: 16px 18px 10px; }
  .isp-ticker         { font-size: 13px; }
  .isp-ticker-item    { padding: 0 14px; }
  .isp-ticker-track   { animation-duration: 45s; }
}
   -------------------------------------------------------------------------- */

/* ==========================================================================
   ISP TICKER — minimal "newsline" theme (current)
   Quiet, modern, no chips/glows. Editorial typography with hairline dividers.
   ========================================================================== */
.isp-ticker {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: #0b1220;
  border-top:    1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13.5px;
  color: #aab6cc;
}
.isp-ticker::before,
.isp-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.isp-ticker::before { left: 0;  background: linear-gradient(to right, #0b1220, rgba(11, 18, 32, 0)); }
.isp-ticker::after  { right: 0; background: linear-gradient(to left,  #0b1220, rgba(11, 18, 32, 0)); }

.isp-ticker-track {
  display: inline-block;
  padding: 12px 0;
  /* Duration is set inline by JS based on track width so the visual speed
     stays constant (~80 px/sec) regardless of how many ISPs are listed.
     The fallback below is only used until JS runs / if it fails. */
  animation: isp-ticker-scroll 25s linear infinite;
  will-change: transform;
}
.isp-ticker:hover .isp-ticker-track { animation-play-state: paused; }

.isp-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 22px;
  position: relative;
}
/* Hairline divider on the left of every item — guarantees the gap between
   the last item of one segment and the first of the next looks identical
   to every other gap, so the loop is visually seamless. */
.isp-ticker-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.isp-ticker-isp {
  color: #d6dceb;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}
.isp-ticker-ms {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.isp-ticker-sep { display: none; }
.isp-ticker-empty {
  display: inline-block;
  padding: 12px 24px;
  color: var(--text-dim);
  font-style: italic;
}

@keyframes isp-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .isp-leader-section { padding: 16px 18px 10px; }
  .isp-ticker         { font-size: 12.5px; }
  .isp-ticker-item    { padding: 0 16px; }
  .isp-ticker-track   { animation-duration: 18s; }
}

/* Homepage hero tagline (sits at the bottom of the hero, left-justified) */
.marketing-main-home .hero {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.marketing-main-home .hero .hero-inner {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;     /* match the wider .hero rule above */
  align-items: center;
  gap: 56px;
}
.hero-tagline {
  margin-top: 48px;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.hero-tagline-accent {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .marketing-main-home .hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-tagline { margin-top: 32px; font-size: 16px; }
}

/* Leader-line disclaimer */
.isp-leader-disclaimer {
  max-width: 760px;
  margin: 8px auto 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}

.isp-leader-countdown {
  margin-top: 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.04em;
}
.isp-countdown-value {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   ISP dock — pins the leader headline + ticker to the viewport bottom.
   The main pads its bottom by --isp-dock-h (set from JS at runtime) so the
   hero content never slides under the dock.
   -------------------------------------------------------------------------- */
.isp-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.marketing-main-home {
  padding-bottom: var(--isp-dock-h, 180px);
  /* min-height now needs to factor the dock so the hero still fills the
     remaining viewport height instead of leaving a gap. */
  min-height: calc(100vh - 72px - var(--isp-dock-h, 180px));
}
@media (max-width: 768px) {
  .marketing-main-home {
    padding-bottom: var(--isp-dock-h, 150px);
    min-height: calc(100vh - 64px - var(--isp-dock-h, 150px));
  }
}
