/* CSS Variables - Brutalist Warm Theme */
:root {
  --bg-primary: #FFF8F0;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #FFF8F0;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --accent-orange: #FF6B35;
  --accent-yellow: #FFE66D;
  --accent-teal: #4ECDC4;
  --accent-orange-dark: #E55A2B;
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FFE66D 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 230, 109, 0.1) 100%);
  --border-color: #1a1a1a;
  --border-radius: 0;
  --border-radius-lg: 0;
  --transition: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 0;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 4px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 0 var(--border-color);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 4px solid var(--border-color);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 0 var(--border-color);
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-right {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-x-link {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.nav-x-link:hover {
  opacity: 1;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 52px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: none;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  max-width: 600px;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 24px 0 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero Visual / Browser Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.browser-mockup {
  background: var(--bg-secondary);
  border-radius: 0;
  border: 4px solid var(--border-color);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 8px 8px 0 0 var(--border-color);
}

.browser-header {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  border-bottom: 4px solid var(--border-color);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-content {
  padding: 40px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.context-menu {
  background: var(--bg-secondary);
  border-radius: 0;
  border: 4px solid var(--border-color);
  padding: 8px 0;
  min-width: 280px;
  box-shadow: 4px 4px 0 0 var(--border-color);
  position: relative;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.menu-item:hover {
  background: rgba(255, 107, 53, 0.1);
}

.menu-item .arrow {
  margin-left: auto;
  color: var(--text-muted);
}

.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--bg-secondary);
  border-radius: 0;
  border: 4px solid var(--border-color);
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 4px 4px 0 0 var(--border-color);
  margin-left: 4px;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 4px solid var(--border-color);
  border-bottom: 4px solid var(--border-color);
}

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

.feature-card {
  background: var(--bg-primary);
  border: 4px solid var(--border-color);
  border-radius: 0;
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 0 var(--border-color);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-orange);
  border: 4px solid var(--border-color);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

/* How It Works Section */
.how-it-works {
  padding: 120px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--accent-orange);
  border: 4px solid var(--border-color);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.step-content h3 {
  margin-bottom: 8px;
}

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

.step-connector {
  width: 80px;
  height: 4px;
  background: var(--border-color);
  margin-top: 32px;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 4px solid var(--border-color);
  border-bottom: 4px solid var(--border-color);
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-top: -40px;
  margin-bottom: 60px;
  font-size: 1.125rem;
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 4px solid var(--border-color);
  border-radius: 0;
  padding: 48px;
  text-align: center;
}

.pricing-header {
  margin-bottom: 32px;
}

.total-cost {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.per-launch {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.fee-table th,
.fee-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 4px solid var(--border-color);
}

.fee-table th {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fee-table td {
  font-size: 1rem;
}

.fee-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent-orange);
}

.pricing-cta {
  margin-top: 24px;
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 4px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
}

.footer-tagline {
  color: var(--text-secondary);
}

.footer-x-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.footer-x-link:hover {
  opacity: 1;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logo span {
    display: none;
  }

  .logo {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
  }

  .nav-right {
    gap: 12px;
  }

  .hero-content {
    padding: 40px 24px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .browser-mockup {
    max-width: 100%;
  }

  .context-menu {
    min-width: 240px;
  }

  .submenu {
    position: relative;
    left: 0;
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 4px;
    height: 40px;
    margin: 0;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .total-cost {
    font-size: 2.5rem;
  }
}

/* Animations - removed decorative float/pulse, kept functional spin */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dark Mode - System Preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #f0f0f0;
    --gradient-subtle: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 230, 109, 0.15) 100%);
  }
}

/* Dark Mode - Manual Toggle */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-tertiary: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border-color: #f0f0f0;
  --gradient-subtle: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 230, 109, 0.15) 100%);
}

/* Dark mode specific overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .browser-dots span {
    background: #f0f0f0;
  }
  :root:not([data-theme="light"]) .browser-dots span:first-child { background: #ff5f57; }
  :root:not([data-theme="light"]) .browser-dots span:nth-child(2) { background: #febc2e; }
  :root:not([data-theme="light"]) .browser-dots span:nth-child(3) { background: #28c840; }
}
[data-theme="dark"] .browser-dots span {
  background: #f0f0f0;
}
[data-theme="dark"] .browser-dots span:first-child { background: #ff5f57; }
[data-theme="dark"] .browser-dots span:nth-child(2) { background: #febc2e; }
[data-theme="dark"] .browser-dots span:nth-child(3) { background: #28c840; }

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 4px solid var(--border-color);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.15s ease;
  border-radius: 0;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 0 var(--border-color);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}
