/* ================================================================
   WARDINEL COMING-SOON LANDING — styles.css
   Standalone static site. No framework, no build step.
   Aesthetic: premium dark security console, glacier-blue accents.

   CSP NOTE: fonts.googleapis.com (style-src) and
   fonts.gstatic.com (font-src) must be allowed.

   Sections:
     1. Custom properties (design tokens)
     2. Reset & base
     3. Layout utilities
     4. Background (grid + blooms)
     5. Header
     6. Hero
     7. Eye animations
     8. Tiles section
     9. Why section
    10. Footer
    11. Utilities (glow-text, kicker, divider, cta)
    12. Reveal animation
    13. Reduced-motion overrides
================================================================ */


/* ── 1. DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Background scale */
  --ink-980: #03050a;
  --ink-950: #05080f;
  --ink-900: #08111d;
  --ink-850: #0b1724;
  --ink-800: #0f2030;

  /* Foreground scale */
  --ice:       #edf6ff;
  --ice-muted: #a9bbcb;
  --ice-dim:   #74889a;

  /* Glacier accent scale */
  --glacier-300: #7dd3fc;
  --glacier-400: #38bdf8;
  --glacier-600: #1e90ff;
  --cyan:        #22d3ee;

  /* Borders */
  --line:        rgba(185, 210, 230, 0.12);
  --line-strong: rgba(56, 189, 248, 0.34);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Spacing */
  --container-max: 1200px;
  --container-px:  clamp(1.25rem, 5vw, 4rem);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}


/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-width: 320px;
  overflow-x: clip;
  background-color: var(--ink-980);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  /* Cyber-grid: two repeating linear-gradients at 72px pitch, glacier ~5% alpha */
  background-image:
    radial-gradient(ellipse 70% 50% at 70% 18%, rgba(56, 189, 248, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(30, 144, 255, 0.05) 0%, transparent 60%),
    linear-gradient(90deg,  rgba(56, 189, 248, 0.048) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56, 189, 248, 0.038) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    72px 72px,
    72px 72px;
  background-attachment: fixed;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: var(--ice);
}

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

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

/* Accessible focus ring — glacier colour, always visible */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--glacier-300);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ── 3. LAYOUT UTILITIES ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}


/* ── 4. DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.28), transparent);
  margin-block: 0;
}


/* ── 5. HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.76);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: 1rem;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.wordmark-eye {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  /* subtle glow around favicon mark */
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.55));
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ice);
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 999px;
  background: rgba(8, 17, 29, 0.72);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glacier-300);
  white-space: nowrap;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--glacier-400);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 6px rgba(56, 189, 248, 0.5); }
  50%       { opacity: 1;    box-shadow: 0 0 14px rgba(56, 189, 248, 0.9); }
}


/* ── 6. HERO ────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (max-width: 767px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Hero copy */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ice);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--ice-muted);
  line-height: 1.72;
  max-width: 48ch;
}

.hero-launch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ice-dim);
  text-transform: uppercase;
}

/* On mobile: show eye above copy */
@media (max-width: 767px) {
  .hero-inner {
    /* eye first, then copy */
    grid-template-rows: auto auto;
  }
  .hero-eye-wrap { order: -1; }
}


/* ── 7. EYE — FOREGROUND + ANIMATION LAYERS ─────────────────── */
.hero-eye-wrap {
  position: relative;
  display: grid;
  place-items: center;
  /* Ensure the wrapper has explicit dimensions to anchor pseudo elements */
  width: min(46vw, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .hero-eye-wrap {
    width: min(62vw, 340px);
  }
}

/* Layer 1: radial glacier bloom behind the eye */
.eye-bloom {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(56, 189, 248, 0.18) 0%,
    rgba(30, 144, 255, 0.09) 35%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 1;
}

/* Layer 2: radar sweep — conic-gradient rotating, masked to circle */
.eye-radar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Conic: bright glacier leading edge fading to transparent */
  background: conic-gradient(
    from 0deg,
    rgba(34, 211, 238, 0.0)   0deg,
    rgba(34, 211, 238, 0.0)   288deg,
    rgba(56, 189, 248, 0.22)  330deg,
    rgba(125, 211, 252, 0.48) 360deg
  );
  mask-image: radial-gradient(circle, black 38%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 38%, transparent 72%);
  animation: radar-sweep 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Layer 3: concentric ping rings */
.ping-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.55);
  animation: ping-expand 4s ease-out infinite;
  pointer-events: none;
  z-index: 3;
}

.ping-ring--2 { animation-delay: 1.33s; }
.ping-ring--3 { animation-delay: 2.66s; }

@keyframes ping-expand {
  0%   { transform: scale(0.52); opacity: 0.7; }
  80%  { transform: scale(1.42); opacity: 0;   }
  100% { transform: scale(1.42); opacity: 0;   }
}

/* Layer 4 (topmost): the eye PNG itself with glow-pulse */
.hero-eye {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  animation: eye-glow-pulse 4s ease-in-out infinite;
  /* ensure the transparent PNG composites cleanly */
  mix-blend-mode: normal;
}

@keyframes eye-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.42)) drop-shadow(0 0 60px rgba(30, 144, 255, 0.18)); }
  50%       { filter: drop-shadow(0 0 38px rgba(56, 189, 248, 0.72)) drop-shadow(0 0 90px rgba(30, 144, 255, 0.30)); }
}


/* ── 8. TILES SECTION ───────────────────────────────────────── */
.section-tiles {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glacier-300);
  margin-bottom: 2.5rem;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (max-width: 900px) {
  .tiles-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(15, 32, 48, 0.72), rgba(8, 17, 29, 0.82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

@media (hover: hover) {
  .tile:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, 0.36);
    background: linear-gradient(180deg, rgba(15, 32, 48, 0.9), rgba(8, 17, 29, 0.9));
  }
}

.tile-icon {
  color: var(--glacier-400);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  /* Subtle icon glow */
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.tile-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ice);
  line-height: 1.3;
}

.tile-body {
  font-size: 0.9rem;
  color: var(--ice-muted);
  line-height: 1.72;
}


/* ── 9. WHY SECTION ─────────────────────────────────────────── */
.section-why {
  padding-block: clamp(4rem, 8vw, 7rem);
  /* offset bloom to the left for variety */
  background-image:
    radial-gradient(ellipse 55% 55% at 8% 50%, rgba(30, 144, 255, 0.06) 0%, transparent 65%);
}

.why-inner {
  max-width: 760px;
}

.why-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.why-body {
  font-size: clamp(0.93rem, 1.5vw, 1.04rem);
  color: var(--ice-muted);
  line-height: 1.78;
  max-width: 68ch;
}


/* ── 10. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ice);
}

.footer-nls {
  color: var(--glacier-300);
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--ice-dim);
}

.footer-contact {
  font-size: 0.82rem;
  color: var(--ice-muted);
  margin-top: 0.25rem;
}

.footer-link {
  color: var(--glacier-300);
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.38);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

@media (hover: hover) {
  .footer-link:hover {
    color: var(--glacier-400);
    text-decoration-color: rgba(56, 189, 248, 0.7);
  }
}


/* ── 11. UTILITIES ──────────────────────────────────────────── */

/* Kicker — mono label above headings */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glacier-300);
  /* pill style */
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(8, 17, 29, 0.64);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}

/* Glow on headings */
.glow-text {
  text-shadow:
    0 0 24px rgba(56, 189, 248, 0.22),
    0 0 60px rgba(30, 144, 255, 0.10);
}

/* Primary CTA button */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--glacier-400);
  color: #03050a;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.4),
    0 8px 28px rgba(56, 189, 248, 0.22);
  width: fit-content;
  min-height: 44px; /* touch target */
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Shine sweep on hover */
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}

@media (hover: hover) {
  .cta-btn:hover {
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, 0.6),
      0 16px 44px rgba(56, 189, 248, 0.32);
    transform: translateY(-1px);
  }

  .cta-btn:hover::after {
    transform: translateX(120%) skewX(-18deg);
    transition: transform 0.55s ease;
  }
}

.cta-btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}


/* ── 12. REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger tiles */
.tiles-grid .tile:nth-child(2) { transition-delay: 0.08s; }
.tiles-grid .tile:nth-child(3) { transition-delay: 0.16s; }


/* ── 13. REDUCED-MOTION OVERRIDES ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Kill all animations */
  .eye-radar,
  .ping-ring,
  .status-dot,
  .hero-eye {
    animation: none !important;
  }

  /* Static glow for the eye in place of the pulse */
  .hero-eye {
    filter: drop-shadow(0 0 26px rgba(56, 189, 248, 0.52));
  }

  /* Reveal elements visible immediately — no motion */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* CTA: no movement */
  .cta-btn,
  .cta-btn::after,
  .tile {
    transform: none !important;
    transition: none !important;
  }
}
