@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Fluid Typography */
  --fs-hero: clamp(2.5rem, 8vw, 4.5rem);
  --fs-h2: clamp(1.8rem, 5vw, 2.8rem);
  --fs-h3: clamp(1.4rem, 4vw, 2rem);
  --fs-body: clamp(0.95rem, 2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1.5vw, 0.9rem);

  /* Color Palette - Premium Night */
  --bg-deep: #050a15;
  --bg-surface: #0e1628;
  --bg-elevated: #1a2333;
  --primary: #64ffda;
  --primary-glow: rgba(100, 255, 218, 0.4);
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.3);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(100, 255, 218, 0.15);
  
  /* Glassmorphism */
  --glass-bg: rgba(14, 22, 40, 0.75);
  --glass-blur: blur(12px);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Utils */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  letter-spacing: 0.01em;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Texture */
.page-bg {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(100, 255, 218, 0.05), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(34, 211, 238, 0.05), transparent 40%);
  z-index: -2;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--bg-deep);
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(100, 255, 218, 0.05);
  transform: translateY(-3px);
}

.btn-subtle {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 120px;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0.25;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 50%, transparent);
}

.hero-content {
  max-width: 700px;
  text-align: left;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(100, 255, 218, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-glow);
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: 2rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-premium);
}

.metric-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  background: var(--bg-elevated);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

/* Sections */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.card:hover { border-color: var(--border-glow); }

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

.feature-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.4rem; }
.feature-card p { color: var(--text-muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border: 1.5px solid var(--primary);
  background: var(--bg-elevated);
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.price-card.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: 1.5rem;
  right: -2rem;
  background: var(--primary);
  color: var(--bg-deep);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 3rem;
  transform: rotate(45deg);
}

.price-card h4 {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
}

.price small {
  font-size: 1rem;
  color: var(--text-dim);
}

.price-list {
  text-align: left;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.price-list div {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.price-list div::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
}

.step-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  filter: blur(100px);
  border-radius: 50%;
  z-index: 0;
}

.cta-content { z-index: 1; }
.cta-actions { z-index: 1; flex-shrink: 0; display: flex; gap: 1rem; }

/* Dashboard Specifics */
.status-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(100, 255, 218, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-glow);
}

.status-pill.offline {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  border-color: rgba(220, 38, 38, 0.2);
}

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

.status-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.link-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-actions {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.link-actions.compact {
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.copy-btn {
  background: var(--primary);
  color: var(--bg-deep);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 64px;
}

.copy-btn.square {
  min-width: 44px;
  padding: 0;
}

/* Forms */
input, select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  width: 100%;
  font-family: inherit;
  transition: var(--transition);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 21, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active, .modal.open { display: flex; }

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  position: relative;
}

/* Responsive */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }

  .cta { flex-direction: column; text-align: center; }
  .pricing-grid { gap: 1.5rem; }
  .price-card.featured { transform: scale(1); }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 3rem;
  }
  
  .section { padding: 60px 0; }
  .nav-wrap { padding: 0 1rem; }
  .metrics { margin-top: 2rem; }
  .hero { height: auto; min-height: 80vh; }
  
  .step-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }

  .link-box {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .link-text {
    white-space: normal;
    word-break: break-word;
  }
  .link-actions { justify-content: flex-start; }
}

/* Mobile Nav Open State */
.nav-mobile-active .nav-links {
  display: flex !important;
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--bg-deep);
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  gap: 3rem;
  font-size: 1.5rem;
  z-index: 999;
}

.nav-mobile-active .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-mobile-active .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-mobile-active .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Pulse Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(100, 255, 218, 0); }
  100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.btn-primary.pulse {
  animation: pulse 2s infinite;
}
