/* SNSYS Brand Website - Design System
   Aesthetic: Palantir/Scale AI - bold, dramatic, cinematic
   Theme: Dark-first
*/

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 350;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ========== COLOR TOKENS ========== */
:root {
  /* Core palette */
  --bg-deep:       #06070a;
  --bg:            #0a0b0f;
  --bg-elevated:   #111218;
  --surface:       #181920;
  --surface-2:     #1e1f28;
  --border:        rgba(255,255,255,0.06);
  --border-accent: rgba(0,212,170,0.2);

  /* Text */
  --text:          #e8e9ed;
  --text-secondary:#9b9ba3;
  --text-muted:    #5e5f6a;

  /* Accent */
  --accent:        #00d4aa;
  --accent-hover:  #00e8bc;
  --accent-dim:    rgba(0,212,170,0.4);
  --accent-glow:   rgba(0,212,170,0.12);
  --accent-glow-strong: rgba(0,212,170,0.25);

  /* Widget spoke colors */
  --spoke-voice:     #00b4d8;
  --spoke-security:  #fb923c;
  --spoke-access:    #7b68ee;
  --spoke-wifi:      #4ade80;
  --spoke-revenue:   #f472b6;
  --spoke-intel:     #d4a03c;
  --spoke-growth:    #0ea5e9;
  --spoke-presence:  #14b8a6;

  /* Layout */
  --max-width:     1280px;
  --gutter:        clamp(1.25rem, 4vw, 3rem);
  --section-pad:   clamp(4rem, 10vw, 8rem);
  --radius:        12px;
  --radius-lg:     20px;
  --radius-sm:     8px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
}

h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

p {
  color: var(--text-secondary);
  max-width: 680px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 50%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1440px;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ========== GRID ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

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

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.card-glass {
  background: rgba(17, 18, 24, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
  border-color: var(--border-accent);
  background: rgba(17, 18, 24, 0.8);
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Card with colored spoke accent */
.card[data-spoke]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.card[data-spoke="voice"]::before { background: linear-gradient(90deg, var(--spoke-voice), transparent); }
.card[data-spoke="security"]::before { background: linear-gradient(90deg, var(--spoke-security), transparent); }
.card[data-spoke="access"]::before { background: linear-gradient(90deg, var(--spoke-access), transparent); }
.card[data-spoke="wifi"]::before { background: linear-gradient(90deg, var(--spoke-wifi), transparent); }
.card[data-spoke="revenue"]::before { background: linear-gradient(90deg, var(--spoke-revenue), transparent); }
.card[data-spoke="intel"]::before { background: linear-gradient(90deg, var(--spoke-intel), transparent); }
.card[data-spoke="growth"]::before { background: linear-gradient(90deg, var(--spoke-growth), transparent); }
.card[data-spoke="presence"]::before { background: linear-gradient(90deg, var(--spoke-presence), transparent); }

/* ========== STAT CARDS ========== */
.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== ICON CONTAINERS ========== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--accent-glow);
  color: var(--accent);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.icon-box[data-spoke="voice"] { background: rgba(0,180,216,0.12); color: var(--spoke-voice); }
.icon-box[data-spoke="security"] { background: rgba(251,146,60,0.12); color: var(--spoke-security); }
.icon-box[data-spoke="access"] { background: rgba(123,104,238,0.12); color: var(--spoke-access); }
.icon-box[data-spoke="wifi"] { background: rgba(74,222,128,0.12); color: var(--spoke-wifi); }
.icon-box[data-spoke="revenue"] { background: rgba(244,114,182,0.12); color: var(--spoke-revenue); }
.icon-box[data-spoke="intel"] { background: rgba(212,160,60,0.12); color: var(--spoke-intel); }
.icon-box[data-spoke="growth"] { background: rgba(14,165,233,0.12); color: var(--spoke-growth); }
.icon-box[data-spoke="presence"] { background: rgba(20,184,166,0.12); color: var(--spoke-presence); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow-strong); }
}

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

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll-triggered animation targets */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 600ms; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 700ms; }

/* ========== HERO PATTERNS ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem var(--gutter) 4rem;
  overflow: hidden;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero .subtitle {
  margin: 0 auto 2.5rem;
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero .btn-group {
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
  justify-content: center;
}

.hero-mini {
  min-height: auto;
  padding: 10rem var(--gutter) 5rem;
}

/* Dot grid background */
.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 70%);
}

/* Radial glow behind hero content */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s 1.2s both;
}

.scroll-indicator .chevron {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: float 2s ease-in-out infinite;
}

/* ========== SECTION BACKGROUNDS ========== */
.bg-deep { background: var(--bg-deep); }
.bg-elevated { background: var(--bg-elevated); }
.bg-surface { background: var(--surface); }

.bg-gradient-accent {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,212,170,0.03) 50%, var(--bg) 100%);
}

/* ========== CTA SECTION ========== */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section .btn-group {
  justify-content: center;
  margin-top: 2rem;
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.comparison-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.comparison-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

/* ========== LOGO TICKER ========== */
.logo-ticker {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.logo-ticker::before,
.logo-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}

.logo-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.logo-ticker-track {
  display: flex;
  gap: 4rem;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.logo-ticker-track img {
  height: 28px;
  opacity: 0.35;
  filter: grayscale(1) brightness(2);
  transition: opacity 0.3s;
}

.logo-ticker-track img:hover {
  opacity: 0.7;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== FLOW/TIMELINE ========== */
.flow-horizontal {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 2rem 0;
}

.flow-step {
  flex: 0 0 auto;
  text-align: center;
  padding: 1.5rem;
  min-width: 180px;
}

.flow-arrow {
  flex: 0 0 auto;
  color: var(--accent-dim);
  font-size: 1.5rem;
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

/* ========== IMAGE CONTAINERS ========== */
.img-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.img-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.relative { position: relative; }

/* ========== NAV SPACING ========== */
.page-content {
  /* Space for fixed nav */
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 5rem var(--gutter) 3rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .flow-horizontal {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}
