/* ============================================
   XTND.TV - Unified Styles
   Marketing Pages + Application
   ============================================ */

:root {
  /* Colors - Terminal inspired */
  --bg-primary: #0a0e17;
  --bg-secondary: #141824;
  --bg-tertiary: #1a1f2e;

  --text-primary: #e4e6eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-cyan: #00d9ff;
  --accent-green: #00ff9f;
  --accent-yellow: #ffd60a;
  --accent-purple: #a78bfa;
  --accent-red: #ff006e;

  --border-color: #2d3748;
  --border-bright: #4a5568;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Effects */
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
  --shadow-harsh: 4px 4px 0 rgba(0, 217, 255, 0.4);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   MARKETING PAGES - NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
  padding: 1.5rem 0;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand span:first-of-type {
  font-weight: 700;
}

.brand .badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  border-left: 1px solid var(--border-color);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}

.brand:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.menuBtn {
  display: none;
  background: none;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navlinks {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.navlinks a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--accent-cyan);
}

.navlinks a[aria-current="page"]::after,
.navlinks a:hover::after {
  width: 100%;
}

/* Last two links (Login/Signup) special styling */
.navlinks a:nth-last-child(2) {
  color: var(--accent-cyan);
}

.navlinks a:nth-last-child(1) {
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--accent-cyan);
  padding: 0.5rem 1rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.navlinks a:nth-last-child(1):hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.navlinks a:nth-last-child(1)::after,
.navlinks a:nth-last-child(2)::after {
  display: none;
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 1rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
}

.skip:focus {
  top: 0;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: var(--space-3xl) 0;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent-cyan);
  background: rgba(0, 217, 255, 0.05);
  margin-bottom: var(--space-md);
}

.kicker svg {
  width: 20px;
  height: 20px;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.ctas {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border: 2px solid;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn.primary {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 4px 4px 0 rgba(0, 217, 255, 0.4);
}

.btn.primary:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 6px 6px 0 rgba(0, 255, 159, 0.4);
  transform: translate(-2px, -2px);
}

.btn:not(.primary) {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.btn:not(.primary):hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ============================================
   PILLS
   ============================================ */

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   PANEL (Hero Visual)
   ============================================ */

.panel {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  padding: var(--space-lg);
  box-shadow: 8px 8px 0 rgba(0, 217, 255, 0.1);
  position: relative;
}

.panel.glow {
  border-color: var(--accent-cyan);
}

.panel .inner {
  position: relative;
  z-index: 2;
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.metric {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-md);
  border-left: 3px solid var(--border-color);
  transition: all 0.3s ease;
}

.metric:hover {
  border-left-color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.05);
}

.metric .n {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.metric .t {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sep {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-lg) 0;
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  text-align: center;
}

.section>.container>p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

/* ============================================
   CARDS
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  padding: var(--space-xl);
  transition: all 0.4s ease;
}

.card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 8px 8px 0 rgba(0, 217, 255, 0.2);
  transform: translate(-4px, -4px);
}

.card .icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card .icon svg {
  width: 36px;
  height: 36px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   SPLIT LAYOUTS
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.callout {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  padding: var(--space-xl);
}

.callout.scanlines {
  position: relative;
  overflow: hidden;
}

.callout.scanlines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(to bottom,
      transparent,
      transparent 2px,
      rgba(0, 217, 255, 0.03) 2px,
      rgba(0, 217, 255, 0.03) 4px);
  pointer-events: none;
}

.callout .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--accent-yellow);
  background: rgba(255, 214, 10, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.callout .tag svg {
  width: 16px;
  height: 16px;
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.callout p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.callout ul {
  list-style: none;
  margin-bottom: var(--space-md);
}

.callout ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: var(--space-sm);
}

.callout ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.quote {
  background: rgba(0, 217, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer .container>.row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.footer strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer .note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ============================================
   RESPONSIVE - MARKETING PAGES
   ============================================ */

@media (max-width: 1024px) {

  .grid,
  .split,
  .footer .container>.row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menuBtn {
    display: block;
  }

  .navlinks {
    display: none;
  }

  .ctas {
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Icon Animations */
@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 5px currentColor);
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.icon-pulse {
  animation: iconPulse 3s infinite ease-in-out;
}

.card:hover .icon-pulse {
  animation-duration: 1.5s;
}