/* ==========================================================
   UNIFISHIELD — CORE DESIGN SYSTEM
   Modern, Sleek, Linear-Style, Navy Purple Brand Blue Brand
   ========================================================== */

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

:root {
  /* Type */
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Layout */
  --wrap: 1240px;
  --wrap-wide: 1400px;
  --gutter: 28px;

  /* Purples */
  --purple: #2563EB;
  --purple-500: #2563EB;
  --purple-600: #1D4ED8;
  --purple-700: #1E40AF;
  --purple-900: #0f2747;
  --purple-glow: rgba(37, 99, 235, 0.12);
  --purple-glow-soft: rgba(37, 99, 235, 0.04);

  /* Accents */
  --green: #10B981;
  --amber: #F59E0B;
  --indigo: #6366F1;

  /* Surfaces (light theme) */
  --bg: #FFFFFF;
  --bg-1: #F9FAFB;
  --bg-2: #F3F4F6;
  --bg-3: #E5E7EB;
  --bg-4: #D1D5DB;

  /* Lines */
  --line: rgba(15, 23, 42, 0.06);
  --line-2: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.14);

  /* Text */
  --fg: #0F172A;        /* Dark Slate */
  --fg-2: #334155;      /* Slate-700 */
  --fg-3: #64748B;      /* Slate-500 */
  --fg-4: #94A3B8;      /* Slate-400 */

  /* Shadows */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --phone-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --contact-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);

  /* Header specific */
  --header-bg: rgba(255, 255, 255, 0.7);
  --header-bg-scrolled: rgba(255, 255, 255, 0.95);
  --header-border: var(--line);

  /* Buttons ghost */
  --btn-ghost-hover-bg: rgba(15, 23, 42, 0.03);

  /* Grid lines */
  --grid-line: rgba(15, 23, 42, 0.03);
}

:root.dark {
  /* Purples */
  --purple-glow: rgba(37, 99, 235, 0.35);
  --purple-glow-soft: rgba(37, 99, 235, 0.12);

  /* Surfaces (dark linear-style) */
  --bg: #0A0A0C;
  --bg-1: #0F0F12;
  --bg-2: #141419;
  --bg-3: #1C1C22;
  --bg-4: #25252D;

  /* Lines */
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.14);

  /* Text */
  --fg: #F5F5F7;
  --fg-2: #C8C8CE;
  --fg-3: #8B8B94;
  --fg-4: #787880;

  /* Shadows */
  --card-shadow: none;
  --card-hover-shadow: 0 12px 30px -10px rgba(0,0,0,0.5), 0 0 1px 1px rgba(37, 99, 235, 0.1) inset;
  --phone-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05), 0 0 40px 0 var(--purple-glow-soft);
  --contact-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);

  /* Header specific */
  --header-bg: rgba(10, 10, 12, 0.4);
  --header-bg-scrolled: rgba(10, 10, 12, 0.85);
  --header-border: rgba(255, 255, 255, 0.08);

  /* Buttons ghost */
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.02);

  /* Grid lines */
  --grid-line: rgba(255, 255, 255, 0.02);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: clip;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

/* Grid & Glow layout helpers */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
}

.purple-glow-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Containers */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

em {
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
}

p {
  color: var(--fg-2);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Global Navigation Header */
header#nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s var(--ease);
}

header#nav-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom: 1px solid var(--header-border);
}

header#nav-header.scrolled .nav-container {
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.logo-img {
  height: 90.625px;
  width: auto;
  display: block;
  transition: height 0.3s var(--ease);
}

.logo-img-dark {
  display: none;
}

:root.dark .logo-img-light {
  display: none;
}

:root.dark .logo-img-dark {
  display: block;
}

header#nav-header.scrolled .logo-img {
  height: 48px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 15px var(--purple-glow);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
  fill: currentColor;
}

.logo span {
  font-weight: 400;
  color: var(--purple);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
}

.btn-ghost {
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--btn-ghost-hover-bg);
}

.btn-solid {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px -6px var(--purple-glow);
}

.btn-solid:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px var(--purple-glow);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--r-lg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-2);
  margin: 4px 0;
  transition: all 0.3s var(--ease);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 40px var(--gutter);
  gap: 40px;
  transition: right 0.4s var(--ease);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--fg-3);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.mobile-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-2);
}

.mobile-links a:hover,
.mobile-links a.active {
  color: var(--purple);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 99px;
  color: var(--purple);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--purple);
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero .hero-sub {
  font-size: 18px;
  color: var(--fg-2);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
  font-family: var(--mono);
}

.meta-item svg {
  color: var(--purple);
}

/* Feature Showcase Grid */
.feature-showcase {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-head .kicker {
  font-family: var(--mono);
  color: var(--purple);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}

.section-head h2 {
  margin-bottom: 18px;
}

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

.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--purple);
  margin-bottom: 24px;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.feature-card p {
  color: var(--fg-3);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Zig Zag Layouts */
.zigzag-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.zigzag-section:nth-of-type(even) {
  background: var(--bg-1);
}

.zigzag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.zigzag-image-panel {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  box-shadow: var(--card-hover-shadow);
}

.zigzag-image-panel .glow-spot {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 65%);
}

.zigzag-features-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zigzag-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}

.zigzag-features-list li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Integrations orbit (features page) */
.integrations-panel {
  padding: 24px 16px 20px;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  overflow: visible;
}

.integrations-orbit-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  padding-bottom: 8px;
}

.integrations-orbit {
  position: relative;
  width: min(100%, 340px);
  height: 300px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.integrations-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  pointer-events: none;
}

.integrations-orbit-ring--1 { width: 150px; height: 150px; }
.integrations-orbit-ring--2 { width: 240px; height: 240px; }
.integrations-orbit-ring--3 { width: 330px; height: 330px; opacity: 0.65; }

.integrations-orbit-ring--1::before,
.integrations-orbit-ring--2::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--purple) 24deg, transparent 48deg);
  mask: radial-gradient(circle, transparent 49%, black 49.5%, black 50.5%, transparent 51%);
  -webkit-mask: radial-gradient(circle, transparent 49%, black 49.5%, black 50.5%, transparent 51%);
  animation: integrations-orbit-spin 12s linear infinite;
  opacity: 0.45;
}

.integrations-orbit-ring--2::before {
  animation-duration: 18s;
  animation-direction: reverse;
  opacity: 0.3;
}

@keyframes integrations-orbit-spin {
  to { transform: rotate(360deg); }
}

.integrations-orbit-center {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-700) 100%);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.2;
  box-shadow:
    0 0 40px -8px var(--purple-glow),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.integrations-orbit-center::before,
.integrations-orbit-center::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--purple-glow);
}

.integrations-orbit-center::before {
  inset: -8px;
  opacity: 0.6;
}

.integrations-orbit-center::after {
  inset: -16px;
  opacity: 0.35;
}

.integrations-orbit-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.integrations-orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  min-height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
  line-height: 1.2;
  padding: 8px 5px;
  box-shadow: var(--card-shadow);
  z-index: 3;
  pointer-events: auto;
  opacity: 0;
  transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(0.65);
  transition:
    transform 0.52s var(--ease),
    opacity 0.44s ease,
    filter 0.44s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform, opacity;
}

.integrations-orbit-node.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(1);
}

.integrations-orbit-node.is-leaving {
  opacity: 0;
  filter: blur(4px);
  transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(0.42);
  transition:
    transform 0.48s cubic-bezier(0.55, 0, 1, 0.42),
    opacity 0.42s ease,
    filter 0.42s ease;
  pointer-events: none;
  z-index: 2;
}

.integrations-orbit-node.is-entering {
  opacity: 0;
  filter: blur(3px);
  transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(0.68);
  pointer-events: none;
  z-index: 3;
}

.integrations-orbit-node:hover {
  border-color: var(--purple);
  color: var(--fg);
  box-shadow: 0 8px 24px -6px var(--purple-glow);
  z-index: 4;
}

.integrations-orbit-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
  padding: 0 8px;
  text-align: center;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.integrations-orbit-caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: integrations-pulse 2s ease-in-out infinite;
}

@keyframes integrations-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

:root.dark .integrations-orbit-node {
  background: var(--bg-2);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .integrations-orbit {
    width: min(100%, 320px);
    height: 280px;
  }

  .integrations-orbit-ring--3 {
    width: 300px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .integrations-orbit-ring--1::before,
  .integrations-orbit-ring--2::before,
  .integrations-orbit-caption-dot {
    animation: none;
  }
}

@media (max-width: 480px) {
  .integrations-orbit-node {
    width: 60px;
    min-height: 60px;
    margin: -30px 0 0 -30px;
    font-size: 8.5px;
  }

  .integrations-orbit-center {
    width: 92px;
    height: 92px;
    font-size: 10px;
  }
}

/* Phone Mockup on Hero */
.hero-phone-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

.phone-shell {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: #000;
  border-radius: 40px;
  border: 12px solid #1a1a1f;
  box-shadow: var(--phone-shadow);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0f0f13;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 14px;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #1a1a1f;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.splash-preview {
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #121217 0%, #08080a 100%);
}

.splash-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
}

.splash-logo-circle {
  width: 18px;
  height: 18px;
  background: var(--purple);
  border-radius: 4px;
}

.splash-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.splash-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.splash-promo-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.promo-kicker {
  font-family: var(--mono);
  color: var(--purple);
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.promo-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.splash-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  text-align: left;
}

.splash-btn {
  width: 100%;
  padding: 12px;
  background: var(--purple);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Interactive Gamification — phone mockup + scratch card */
.game-phone {
  width: 300px;
  height: 540px;
  background: #141419;
  border: 10px solid #25252d;
  border-radius: 36px;
  position: relative;
  box-shadow: var(--phone-shadow), 0 0 40px var(--purple-glow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.game-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 16px;
  background: #25252d;
  border-radius: 0 0 10px 10px;
  z-index: 30;
}

.game-phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #0b0c10;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 16px 16px;
}

.phone-wifi-header {
  display: none;
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 30;
  text-align: center;
  width: 100%;
}

.game-phone-screen.wifi-active .phone-wifi-header {
  display: block;
}

.demo-logo {
  display: block;
  margin: 0 auto 10px;
}

.demo-logo img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.wifi-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
  margin: 0;
}

.scratch-card-container {
  position: relative;
  width: 260px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 5;
  flex-shrink: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.scratch-card-container:not(.scratch-ready) .scratch-prize-under {
  visibility: hidden;
}

.scratch-prize-under {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
}

.scratch-prize-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(245, 158, 11, 0.35) 0%, transparent 60%),
    linear-gradient(160deg, #4a3520 0%, #1a1408 100%);
}

.scratch-prize-emoji {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.scratch-prize-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 14px 16px;
  text-align: center;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.55) 55%, transparent 100%);
  color: #fff;
  pointer-events: none;
}

.scratch-prize-overlay .prize-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scratch-prize-overlay .prize-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 10px;
  color: #fde68a;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.scratch-prize-overlay .prize-code {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed var(--line-strong);
  color: var(--amber);
}

.scratch-canvas-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #2d2d35;
  cursor: crosshair;
  touch-action: none;
  z-index: 2;
}

.scratch-hint {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  z-index: 6;
}

.game-popup {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.game-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 240px;
}

.game-popup h4 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.game-popup p {
  font-size: 13px;
  color: #FBBF24;
  margin-bottom: 16px;
  line-height: 1.55;
}

.game-popup p strong {
  color: #FDE68A;
}

.scratch-popup-btn {
  width: 100%;
}

.game-phone-screen.scratch-won .scratch-hint {
  visibility: hidden;
}

.game-phone-screen.scratch-won .scratch-card-container {
  z-index: 4;
}

.game-phone-screen.scratch-won .game-popup.active {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.game-phone-screen.scratch-won .popup-step {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Pricing Grid Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
  align-items: flex-start;
}

.pricing-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--purple);
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.08) 0%, var(--bg-1) 70%);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

.popular-badge {
  position: absolute;
  top: 24px;
  right: 40px;
  background: var(--purple);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  border-radius: 99px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 14.5px;
  color: var(--fg-3);
  margin-bottom: 32px;
  min-height: 48px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
  font-weight: 700;
}

.price-currency {
  font-size: 28px;
  color: var(--fg-2);
}

.price-val {
  font-size: 52px;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 14px;
  color: var(--fg-4);
  font-weight: 400;
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: 40px;
}

.pricing-features-head {
  font-size: 13px;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--fg-3);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--fg-2);
}

.pricing-features-list li svg {
  color: var(--purple);
  flex-shrink: 0;
}

.pricing-grid-single {
  max-width: 480px;
  margin-inline: auto;
}

.pricing-grid-single .pricing-card {
  border-color: var(--purple);
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.08) 0%, var(--bg-1) 70%);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

.pricing-grid-single .pricing-desc {
  min-height: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

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

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--purple);
  flex-shrink: 0;
  line-height: 1;
}

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

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--fg-3);
  line-height: 1.65;
}

.faq-page-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Call to Action Contact Section */
.contact-section {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 70%), var(--bg-1);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.contact-section .bg-grid {
  opacity: 0.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-info {
  max-width: 560px;
}

.contact-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 17px;
  color: var(--fg-2);
  margin-bottom: 36px;
}

.contact-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--fg-2);
}

.contact-bullets li svg {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card-wrap {
  position: relative;
  width: 100%;
}

.contact-card-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--purple), transparent, var(--purple));
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.contact-card {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--contact-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form.hidden {
  display: none;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-2);
}

.contact-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  transition: all 0.2s var(--ease);
}

.contact-input::placeholder {
  color: var(--fg-4);
}

.contact-input:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--bg-4);
  box-shadow: 0 0 0 3px var(--purple-glow-soft);
}

.contact-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.4s var(--ease);
}

.contact-success.active {
  display: flex;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.contact-success h3 {
  font-size: 24px;
  color: var(--fg);
  margin-bottom: 12px;
}

.contact-success p {
  color: var(--fg-3);
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto;
}

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

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .contact-info {
    margin: 0 auto;
  }
  .contact-bullets {
    align-items: center;
    text-align: left;
  }
  .contact-card-wrap {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Footer */
footer {
  background: var(--bg-1);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-3);
  max-width: 320px;
}

.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: var(--fg-3);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--fg-3);
  transition: color 0.2s var(--ease);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--fg-4);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--fg-4);
  transition: color 0.2s var(--ease);
}

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

/* CNA / What-is page hero (phone frame cropped to screenshot height) */
.cna-hero-showcase {
  position: relative;
  width: 100%;
  max-width: 272px;
  margin: 0 auto;
}

.hero-phone-crop-top {
  width: 100%;
  max-width: 272px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.hero-phone-crop-top.hero-phone-container {
  max-width: 272px;
}

.hero-phone-crop-top .phone-shell,
.hero-phone-crop-top .phone-shell.cna-phone-frame {
  width: 100%;
  aspect-ratio: auto;
  height: fit-content;
  min-height: 0;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: #1a1a1f;
  border-radius: 40px 40px 0 0;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
}

/* UniFiShield hero diagram panel */
.hero-diagram-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-diagram-panel {
  position: relative;
  width: min(100%, 520px);
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(145deg, var(--bg-1), var(--bg));
  box-shadow: var(--card-hover-shadow);
  overflow: hidden;
}

.hero-diagram-panel::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-diagram-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  position: relative;
  z-index: 1;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.use-case-card {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
  box-shadow: var(--card-shadow);
}

.use-case-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.use-case-card p {
  color: var(--fg-3);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .hero-diagram-container {
    min-height: auto;
    margin-top: 32px;
  }
}

.hero-phone-crop-top .phone-notch {
  display: none;
}

.cna-phone-screen {
  width: 100%;
  height: auto;
  display: block;
  padding: 0;
  background: #000;
  overflow: hidden;
  line-height: 0;
}

.phone-screen.cna-phone-screen {
  height: auto;
  display: block;
}

.cna-hero-screenshot {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.cna-callout {
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

.cna-callout-emoji {
  font-size: 3rem;
  line-height: 1;
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  margin-bottom: -8px;
  animation: cna-callout-bob 3s ease-in-out infinite;
}

.cna-callout-label {
  background: #FBBF24;
  color: #0f2747;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 10px 16px;
  border-radius: 18px;
  border: 3px solid #0f2747;
  box-shadow: 4px 4px 0 #0f2747;
  transform: rotate(-4deg);
  white-space: nowrap;
}

@keyframes cna-callout-bob {
  0%, 100% { transform: rotate(-90deg) translateY(0); }
  50% { transform: rotate(-90deg) translateY(-5px); }
}

.info-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.info-step {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

.info-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-glow);
  color: var(--purple);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.info-step h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.info-step p {
  font-size: 14.5px;
  color: var(--fg-3);
  line-height: 1.6;
}

.info-callout {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: var(--r);
  padding: 24px 28px;
  margin-top: 32px;
}

.info-callout p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
}

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

  .cna-hero-showcase {
    max-width: 272px;
  }

  .cna-callout {
    top: 78px;
  }

  .cna-callout-emoji {
    font-size: 2.5rem;
  }

  .cna-callout-label {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-copy {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .zigzag-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .zigzag-image-panel {
    order: 2;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .zigzag-section:nth-of-type(even) .zigzag-image-panel {
    order: 2;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--fg-2);
  transition: all 0.2s var(--ease);
}

.theme-toggle-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--btn-ghost-hover-bg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toggle visibility based on dark mode class on html */
html:not(.dark) .theme-toggle-btn .sun-icon {
  display: none;
}

html.dark .theme-toggle-btn .moon-icon {
  display: none;
}

