/* ═══════════════════════════════════════════════════════════════
   LanLord - Playful + Techy Design System
   "Your Network, Your Rules"
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colors - Deep teal + network vibes */
  --bg-dark: #0a0f0f;
  --bg-card: #0f1a1a;
  --bg-card-hover: #152525;
  --text-primary: #ffffff;
  --text-secondary: #94a3b0;
  --text-muted: #5a6a70;

  /* Brand gradient - Deep teal network */
  --accent-primary: #0d9488;
  --accent-secondary: #14b8a6;
  --accent-tertiary: #2dd4bf;
  --gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  --gradient-text: linear-gradient(135deg, #0d9488, #14b8a6, #22d3ee);

  /* Status colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & sizing */
  --radius: 12px;
  --radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Effects */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -2;
}

#network-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-crown {
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.logo-text {
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 4rem 4rem;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.badge-icon {
  font-size: 1rem;
}

.product-hunt-badge {
  display: block;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, opacity 0.2s;
}

.product-hunt-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.product-hunt-badge img {
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--accent-secondary);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.4);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.cta-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-icon {
  font-size: 1rem;
}

/* Hero Terminal */
.hero-visual {
  flex-shrink: 0;
}

.terminal-window {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(13, 148, 136, 0.15);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.terminal-line.output {
  color: var(--text-secondary);
}

.terminal-line.indent {
  padding-left: 1.5rem;
}

.terminal-line.dim {
  color: var(--text-muted);
}

.prompt {
  color: var(--accent-primary);
  font-weight: 600;
}

.success {
  color: var(--success);
}

.ip {
  color: var(--text-muted);
  margin-left: auto;
}

.device-icon {
  margin-right: 0.25rem;
}

.grade-a {
  color: var(--success);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 0 0.4rem;
  border-radius: 4px;
}

.cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════ */

.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(13, 148, 136, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */

.how-it-works {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.04) 0%, transparent 100%);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 240px;
  max-width: 280px;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.step-connector {
  width: 80px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   PROBLEMS SECTION
   ═══════════════════════════════════════════════════════════════ */

.problems {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.problems-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.problem-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.problem-tag:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.problem-tag span {
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD SECTION
   ═══════════════════════════════════════════════════════════════ */

.download {
  padding: 6rem 2rem;
}

.download-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.download-crown {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.download-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.download-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
  margin-bottom: 1rem;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.5);
}

.apple-logo {
  width: 22px;
  height: 22px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.separator {
  color: var(--text-muted);
}

/* Security Info */
.security-info {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: left;
}

.security-info summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  list-style: none;
}

.security-info summary::-webkit-details-marker {
  display: none;
}

.security-info summary:hover {
  color: var(--text-primary);
}

.security-icon {
  font-size: 1.1rem;
}

.security-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.security-content p {
  margin-bottom: 1rem;
}

.security-method {
  margin-bottom: 1.25rem;
}

.security-method h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.security-method ol {
  padding-left: 1.25rem;
}

.security-method li {
  margin-bottom: 0.25rem;
}

.security-method code {
  background: rgba(13, 148, 136, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.terminal-cmd {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--success);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-links {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-links span {
  color: var(--text-muted);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

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

@keyframes blink {
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 6rem 2rem 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .product-hunt-badge {
    display: inline-block;
  }

  .hero-visual {
    display: none;
  }

  .steps {
    flex-direction: column;
  }

  .step-connector {
    transform: rotate(90deg);
    width: 40px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 5rem 1rem 2rem;
  }

  .btn-primary, .download-btn {
    width: 100%;
    padding: 1rem;
  }

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

  .download-card {
    padding: 1.5rem;
  }

  .download-meta {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

a:focus,
button:focus,
summary:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-primary);
  color: white;
}
