/* ════════════════════════════════════════════════
   WinkiFlux — Marketing site styles
   Design system: dark mode, Inter, HSL tokens
════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Design tokens (dark mode) ──────────────── */
:root {
  --background: hsl(222.2, 84%, 4.9%);
  --foreground: hsl(210, 40%, 98%);
  --card:       hsl(220, 55%, 8%);
  --primary:    hsl(252, 87%, 65%);
  --primary-fg: hsl(0, 0%, 100%);
  --muted:      hsl(217.2, 32.6%, 17.5%);
  --muted-fg:   hsl(215, 20.2%, 65.1%);
  --accent:     hsl(217.2, 35%, 21%);
  --border:     hsl(217.2, 30%, 24%);
  --sidebar-bg: hsl(252, 50%, 4%);
  --radius:     0.5rem;
  /* Brand mark — original gradient identity */
  --brand-blue: #00d4ff;
  --brand-vio:  #6c47ff;
}

/* ── Base ───────────────────────────────────── */
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout ─────────────────────────────────── */
.wrap     { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-5xl { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background: hsla(222.2, 84%, 4.9%, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg { width: 30px; height: 30px; display: block; }
.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

/* ── Section label pill ─────────────────────── */
.section-label {
  display: inline-block;
  border-radius: 9999px;
  background: hsla(252, 87%, 65%, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 1.5rem 0;
  text-align: center;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  top: -5%; left: -20%;
  background: hsla(252, 87%, 65%, 0.18);
  filter: blur(120px);
}
.hero-orb-2 {
  width: 600px; height: 600px;
  top: 10%; right: -15%;
  background: hsla(214, 100%, 64%, 0.14);
  filter: blur(100px);
}
.hero-orb-3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 30%;
  background: hsla(270, 80%, 60%, 0.08);
  filter: blur(90px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsla(252, 87%, 65%, 0.25);
  background: hsla(252, 87%, 65%, 0.08);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: badge-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px hsla(252, 87%, 65%, 0.6);
}

/* Wink logo (large, hero) */
.wink-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 24px hsla(252, 87%, 65%, 0.35));
}
.wink-logo svg { width: 96px; height: 96px; }

/* Hero title */
.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 40%, #60a5fa 70%, var(--primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 6s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Hero subtitle */
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.175rem);
  color: var(--muted-fg);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* Format strip */
.format-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.format-pill {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: hsla(217.2, 32.6%, 17.5%, 0.5);
  padding: 0.2rem 0.7rem;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--muted-fg);
}
.format-sep { color: var(--border); user-select: none; font-size: 0.75rem; }

/* ── Hero mockup ─────────────────────────────── */
.hero-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 4rem auto 0;
  padding: 0 1rem;
}
.mockup-window {
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid hsla(217.2, 30%, 24%, 0.6);
  background: var(--card);
  box-shadow:
    0 30px 80px -10px rgba(0,0,0,0.7),
    0 0 0 1px hsla(252, 87%, 65%, 0.05),
    inset 0 1px 0 hsla(210, 40%, 98%, 0.04);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid hsla(217.2, 30%, 24%, 0.5);
  background: hsla(217.2, 32.6%, 10%, 0.8);
}
.mc-dot {
  width: 0.625rem; height: 0.625rem; border-radius: 50%; flex-shrink: 0;
}
.mc-r { background: hsla(0,   65%, 60%, 0.6); }
.mc-y { background: hsla(38,  65%, 60%, 0.6); }
.mc-g { background: hsla(142, 55%, 52%, 0.6); }
.mockup-url {
  margin-left: 1rem;
  flex: 1;
  border-radius: 0.35rem;
  background: hsla(222.2, 84%, 4.9%, 0.7);
  padding: 0.225rem 0.7rem;
  font-family: 'Courier New', monospace;
  font-size: 0.6375rem;
  color: hsla(215, 20.2%, 65.1%, 0.4);
  text-align: left;
}
.mockup-body {
  display: flex;
  height: 15rem;
  overflow: hidden;
  text-align: left;
  font-size: 0.65rem;
}
.mockup-sidebar {
  width: 9.5rem;
  flex-shrink: 0;
  border-right: 1px solid hsla(217.2, 30%, 24%, 0.5);
  background: var(--sidebar-bg);
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ms-label {
  padding: 0.25rem 0.5rem 0.375rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(215, 20.2%, 65.1%, 0.35);
}
.ms-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.35rem;
  padding: 0.375rem 0.5rem;
  color: hsla(215, 20.2%, 65.1%, 0.55);
  font-size: 0.6625rem;
}
.ms-item.active {
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 500;
}
.ms-icon {
  width: 0.65rem; height: 0.65rem;
  border-radius: 0.15rem;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.35;
}
.ms-item.active .ms-icon { opacity: 0.5; background: white; }
.mockup-main {
  flex: 1;
  padding: 1rem 1.125rem;
  background: var(--background);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.mm-row   { display: flex; align-items: center; justify-content: space-between; }
.mm-title { height: 0.7rem;  width: 7.5rem; border-radius: 0.2rem; background: hsla(210,40%,98%,0.18); }
.mm-btn   { height: 1.5rem;  width: 5rem;   border-radius: 0.35rem; background: hsla(252,87%,65%,0.75); }
.mm-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem; }
.mm-card  {
  border-radius: 0.45rem;
  border: 1px solid hsla(217.2,30%,24%,0.65);
  background: var(--card);
  padding: 0.7rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.mm-ct { height: 0.55rem;  width: 3.75rem; border-radius: 0.15rem; background: hsla(210,40%,98%,0.14); }
.mm-cs { height: 0.4rem;   width: 2.5rem;  border-radius: 0.15rem; background: hsla(215,20.2%,65.1%,0.17); }
.mm-cb { display: flex; gap: 0.3rem; margin-top: 0.2rem; }
.mm-cbp { height: 1rem; width: 2.5rem; border-radius: 0.25rem; background: hsla(252,87%,65%,0.22); }
.mm-cbs { height: 1rem; width: 2.5rem; border-radius: 0.25rem; background: hsla(217.2,32.6%,22%,0.8); }
.mm-bar {
  border-radius: 0.45rem;
  border: 1px solid hsla(217.2,30%,24%,0.65);
  background: var(--card);
  padding: 0.625rem 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.mm-bl { height: 0.5rem; border-radius: 0.15rem; background: hsla(210,40%,98%,0.1); }
.mm-bl-w { width: 5.5rem; }
.mm-bl-s { width: 2.5rem; }
.mm-bd { width: 0.65rem; height: 0.65rem; border-radius: 50%; flex-shrink:0; background: hsla(252,87%,65%,0.45); }

/* Status badge row inside mockup */
.mm-status-row { display: flex; align-items: center; gap: 0.5rem; }
.mm-status {
  height: 0.9rem; width: 4rem; border-radius: 9999px;
  font-size: 0.45rem; display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: 0.05em;
}
.mm-status-green { background: hsla(142,50%,30%,0.4); color: hsla(142,70%,70%,0.8); }
.mm-status-amber { background: hsla(38, 50%,30%,0.4); color: hsla(38, 70%,70%,0.8); }
.mm-status-blue  { background: hsla(214,50%,30%,0.4); color: hsla(214,70%,70%,0.8); }

.mockup-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5.5rem;
  background: linear-gradient(to top, var(--background) 10%, transparent 100%);
  pointer-events: none;
}

/* ── Features section ───────────────────────── */
.features-section {
  position: relative;
  z-index: 1;
  background: hsl(222, 60%, 6.5%);
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border);
}
.features-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.features-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.features-head p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  max-width: 36rem;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: hsla(252, 87%, 65%, 0.35);
}

.feature-icon {
  display: inline-flex;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsla(252, 87%, 65%, 0.2), hsla(252, 87%, 65%, 0.04));
  padding: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
}
.feature-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.45rem;
}
.feature-card p {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

/* ── Footer ─────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: hsl(222, 60%, 6.5%);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer-brand svg { width: 1.125rem; height: 1.125rem; color: var(--primary); }
.footer-brand .name    { font-weight: 600; }
.footer-brand .tagline { color: var(--muted-fg); }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.footer-meta a {
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--foreground); }

/* ── Keyframes ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wink {
  0%, 85%, 100% { transform: scaleY(1); }
  90%, 95%      { transform: scaleY(0.05); }
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px hsla(252, 87%, 65%, 0.6); }
  50%      { opacity: 0.4; box-shadow: 0 0 3px hsla(252, 87%, 65%, 0.2); }
}

/* Staggered entrance animations */
.a1 { animation: fadeUp 0.7s 0.05s ease both; }
.a2 { animation: fadeUp 0.7s 0.18s ease both; }
.a3 { animation: fadeUp 0.7s 0.32s ease both; }
.a4 { animation: fadeUp 0.7s 0.46s ease both; }
.a5 { animation: fadeUp 0.7s 0.60s ease both; }

/* Eye wink — applied inline via style attribute for transform-origin */
.eye-wink { animation: wink 4s 2s ease-in-out infinite; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup-body  { height: 12rem; }
}

@media (max-width: 768px) {
  .hero { padding-top: 3rem; }
  .hero-sub { font-size: 1rem; }
  .hero-mockup { display: none; }

  .feature-grid { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.625rem; }
}
