:root {
  /* Monochrome Black & White Theme */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-hover: #e9ecef;
  
  --ink: #000000;
  --text: #000000;
  --muted: #4b5563;
  --faint: #9ca3af;
  
  --line: #000000;
  --line-strong: #000000;
  
  /* Pure Black Branding */
  --brand-primary: #000000;
  --brand-secondary: #000000;
  --accent: #000000;
  
  --success: #000000;
  --warning: #000000;
  --danger: #000000;
  
  /* Shadows & Glows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-glow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
  
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  
  --sans: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

@keyframes gradientPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-up {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 25%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.03em; }
p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
.text-center { text-align: center; }
.text-gradient {
  color: var(--ink);
  font-weight: 900;
}

/* Utilities */
.hidden { display: none !important; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Navbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--surface); border: 1px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--surface); border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.4);
}
.btn-secondary {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.btn-full { width: 100%; }

/* Hero Section (Vercel-Inspired) */
.hero {
  padding: 120px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.hero-badge:hover { border-color: var(--line-strong); }
.hero-badge span { color: var(--muted); }

.hero h1 { font-size: clamp(48px, 7vw, 84px); max-width: 900px; margin-bottom: 24px; line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; }
.hero p { font-size: 20px; max-width: 600px; margin-bottom: 40px; color: var(--muted); line-height: 1.5; }

/* Domain Search inside Hero */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 600px;
}
.domain-search {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 8px;
  width: 100%;
  transition: border-color 0.3s;
}
.domain-search:focus-within { border-color: var(--ink); }
.domain-search input {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.domain-search .btn { padding: 12px 24px; font-size: 14px; }

/* Marquee / Social Proof */
.marquee-container {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
  background: var(--surface-soft);
}
.marquee-content {
  display: flex;
  gap: 60px;
  width: 200%;
  animation: marquee 20s linear infinite;
  align-items: center;
}
.marquee-content img {
  height: 24px;
  opacity: 0.5;
  filter: grayscale(100%) contrast(200%);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}
.bento-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: #555;
}
.bento-card-large { grid-column: span 2; }
.bento-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--ink);
}
.bento-card h3 { font-size: 20px; margin-bottom: 12px; }
.bento-card p { font-size: 15px; color: var(--muted); }

/* Pricing Grid */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 44px; margin-bottom: 16px; font-weight: 700; letter-spacing: -0.03em; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.pricing-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-secondary);
}
.pricing-card.featured {
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--surface); border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.price-name { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.price-amount { font-size: 48px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.05em; color: var(--ink); }
.price-cadence { font-size: 16px; color: var(--muted); font-weight: 400; }
.price-desc { font-size: 15px; margin-bottom: 32px; min-height: 45px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 32px 0; flex: 1; }
.feature-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; color: #000000; }
.feature-list li svg { width: 20px; height: 20px; color: var(--brand-secondary); flex-shrink: 0; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}
.feature-item {
  background: var(--surface-soft);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s;
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.feature-item h3 { font-size: 20px; margin-bottom: 12px; color: var(--ink); }

/* Dashboard & UI Panels */
.checkout-container, .dashboard-container { padding: 60px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}
.panel-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.panel-body { padding: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #e4e4e7; }
.form-group input, .form-group select, .domain-search select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus { 
  border-color: var(--brand-secondary); 
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168, 85, 247, 0.4);
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.05em; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--ink); }

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.table-row:hover { background: rgba(0,0,0,0.02); }
.table-row:last-child { border-bottom: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.status-dot.deploying { background: var(--warning); color: var(--warning); }
.status-dot.live { background: var(--success); color: var(--success); }

/* Custom Scrollbar for Dark Mode */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* Stripe Element Override */
#card-element {
  background: #ffffff !important;
  border: 1px solid var(--line-strong) !important;
}

@media (max-width: 900px) {
  .pricing-grid, .features-grid, .checkout-grid, .dash-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .domain-search { flex-direction: column; }
  .nav-links { display: none; }
}

/* MARKETING SITE ADDITIONS */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.feature-card-modern {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card-modern:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 40px rgba(99,102,241,0.1);
}
.feature-card-modern .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.glow-text {
  text-shadow: 0 0 20px rgba(99,102,241,0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.comparison-table th {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comparison-table td {
  color: var(--muted);
}
.comparison-table tr:hover td {
  background: rgba(0,0,0,0.02);
}
.comparison-table .check { color: var(--success); }
.comparison-table .cross { color: #ef4444; }

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: block;
  margin-bottom: 12px;
}
.footer-link:hover {
  color: var(--brand-primary);
}

/* =========================================
   Mobile Responsiveness & Micro-interactions
   ========================================= */

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none; /* Hide topbar links on very small screens, maybe add a hamburger menu later */
  }
  .hero h1 {
    font-size: 36px;
  }
  .domain-search {
    flex-direction: column;
  }
  .domain-search .btn {
    width: 100%;
  }
  .panel-body {
    padding: 16px;
  }
  .topbar {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }
}
