/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  AEO-REX TOOLS - COMPLETE DESIGN SYSTEM
  Mobile-first, production-ready CSS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

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

/* CSS CUSTOM PROPERTIES */
:root {
  /* Colors */
  --color-bg-primary: #0a0a1a;
  --color-bg-secondary: #1a1a2e;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-accent-cyan: #00f3ff;
  --color-accent-magenta: #ff00de;
  --color-success: #00ff88;
  --color-warning: #ffaa00;
  --color-error: #ff4444;

  /* Typography - 50% LARGER */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-size-h1: 64px;
  --font-size-h2: 48px;
  --font-size-h3: 32px;
  --font-size-body: 20px;
  --font-size-small: 18px;
  --line-height-heading: 1.3;
  --line-height-body: 1.7;

  /* Spacing - COMPACT */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;

  /* Component Sizes - BIGGER */
  --button-height: 64px;
  --input-height: 64px;
  --border-radius: 16px;
  --card-padding: 48px;
}

/* BASE STYLES */
html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background: #0a0a1a;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 95%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: stars 60s linear infinite;
  min-height: 100vh;
}

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
}

h1 { font-size: 56px; margin-bottom: 20px; }
h2 { font-size: 42px; margin-bottom: 28px; }
h3 { font-size: 32px; margin-bottom: 16px; }

p { margin-bottom: 24px; font-size: 20px; }
a { color: var(--color-accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.highlight { color: var(--color-accent-cyan); }
.highlight-cyan { color: var(--color-accent-cyan); }
.highlight-magenta { color: var(--color-accent-magenta); }
.highlight-green { color: var(--color-success); }

/* LAYOUT */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* HEADER */
.site-header {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.nav-brand a {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu li a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--color-accent-cyan);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 24px;
  cursor: pointer;
  display: block;
}

/* SECTIONS */
.hero {
  text-align: center;
  padding: 60px 20px !important;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 28px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 24px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 60px;
}

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-success {
  display: inline-block;
  min-height: 64px;
  padding: 20px 40px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  background: #00d9e6;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  text-decoration: none;
}

.btn-secondary-small {
  padding: 8px 16px;
  min-height: 36px;
  font-size: 14px;
}

.btn-success {
  background: var(--color-success);
  color: var(--color-bg-primary);
}

.btn-large {
  min-height: 72px;
  padding: 24px 48px;
  font-size: 24px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* FORMS */
.tool-form-wrapper {
  margin-top: var(--spacing-lg);
}

.tool-form {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: var(--input-height);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  font-size: 16px;
  font-family: var(--font-family);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* TOOL SECTION */
.tool-section {
  padding: 40px 20px;
}

.tool-section h1 {
  text-align: center;
  font-size: 56px;
  margin-bottom: 20px;
}

.tool-description {
  text-align: center;
  font-size: 24px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* PRICING CALLOUTS */
.pricing-callout {
  margin: 40px 0;
  padding: 24px;
  border-radius: var(--border-radius);
  text-align: center;
}

.pricing-callout.cyan {
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.pricing-callout.magenta {
  background: rgba(255, 0, 222, 0.05);
  border: 1px solid rgba(255, 0, 222, 0.2);
}

.pricing-callout.green {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.callout-eyebrow {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
}

.callout-headline {
  font-size: 18px;
  color: var(--color-text-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.callout-subtext {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.callout-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

/* RESULTS SECTION */
.results-section {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.results-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 60px;
}

.results-card-main {
  background: rgba(255, 255, 255, 0.03);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-label {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.results-number-huge {
  font-size: 64px;
  font-weight: 700;
  margin: 20px 0;
}

.results-number-large {
  font-size: 48px;
  font-weight: 700;
}

.results-number-huge.red,
.results-number-large.red {
  color: var(--color-error);
}

.results-period {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.results-highlight-box {
  padding: 24px;
  background: rgba(255, 68, 68, 0.1);
  border-radius: var(--border-radius);
  margin: 32px 0;
}

.results-highlight-label {
  font-size: 16px;
  color: var(--color-error);
  margin-bottom: 8px;
}

.results-methodology {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: 32px;
}

/* TOOLS GRID - HORIZONTAL LAYOUT */
.tools-grid-section {
  padding: 40px 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.tool-card {
  padding: 32px 24px !important;
  margin: 0 !important;
  max-width: none !important;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 400px;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 243, 255, 0.1);
  text-decoration: none;
}

.tool-icon,
.tool-card .emoji {
  font-size: 56px;
  margin-bottom: 16px;
}

.tool-title,
.tool-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.tool-description,
.tool-card p {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center;
  flex-grow: 1;
}

.tool-card a {
  padding: 16px 32px;
  font-size: 18px;
}

.tool-badge {
  display: inline-block;
  background: rgba(0, 243, 255, 0.1);
  color: var(--color-accent-cyan);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tool-badge.free {
  background: rgba(0, 255, 136, 0.1);
  color: var(--color-success);
}

/* PRICING */
.pricing-section {
  padding: 80px 20px 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 48px;
  border-radius: var(--border-radius);
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 20px 60px rgba(0, 243, 255, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.plan-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.plan-price {
  margin: 32px 0;
}

.plan-price .currency {
  font-size: 36px;
  font-weight: 700;
  vertical-align: super;
}

.plan-price .amount {
  font-size: 72px;
  font-weight: 700;
}

.plan-price .period {
  font-size: 24px;
  color: var(--color-text-secondary);
}

.plan-tagline {
  color: var(--color-text-secondary);
  font-size: 20px;
  margin-bottom: 32px;
}

.features-list {
  list-style: none;
  margin: 32px 0;
  text-align: left;
  display: inline-block;
}

.features-list li {
  padding: 12px 0;
  color: var(--color-text-secondary);
  font-size: 18px;
}

/* PRICING PREVIEW (Homepage) */
.pricing-preview {
  padding: 100px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.pricing-preview h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 24px;
}

.pricing-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px 0;
}

.pricing-mini-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.pricing-mini-card.featured {
  border-color: var(--color-accent-cyan);
}

.pricing-mini-card h3 {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.pricing-mini-card .price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-mini-card .price span {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.pricing-mini-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
}

/* FAQ - COMPACT */
.faq-section {
  padding: 40px 20px;
}

.faq-section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 32px;
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--color-text-primary);
  font-size: 20px;
}

.faq-item p {
  margin-top: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 18px;
}

/* CROSS PROMO - COMPACT */
.cross-promo, .cta-section {
  padding: 60px 20px !important;
  margin: 40px 0 !important;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 222, 0.1));
  text-align: center;
}

.cross-promo h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.cross-promo-description {
  font-size: 24px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.cross-promo-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent-cyan);
  margin-bottom: 48px;
}

/* INFO & CTA BOXES */
.info-box, .cta-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

.cta-card.gradient {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 222, 0.1));
  text-align: center;
}

.cta-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* HOW IT WORKS */
.how-it-works-section {
  padding: 80px 20px;
}

.how-it-works-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.how-step {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.how-step p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* FOOTER */
.site-footer {
  padding: 60px 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.footer-col p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0;
}

/* UTILITIES */
.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* SOCIAL PROOF GRID - COMPACT */
.social-proof-grid, .trust-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-proof-item, .trust-item {
  padding: 24px !important;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.trust-section {
  padding: 32px !important;
  margin: 40px auto !important;
  max-width: 900px;
}

/* RESPONSIVE - TABLET */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 42px; }
  h3 { font-size: 32px; }

  .nav-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVE - DESKTOP */
@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-mini-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .tool-card {
    padding: 24px !important;
    min-height: auto;
  }

  .social-proof-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }

  section {
    padding: 24px 16px !important;
  }

  .hero {
    padding: 40px 16px !important;
  }

  .container {
    padding: 24px 16px;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-card, .pricing-card, .faq-item {
  animation: fadeIn 0.5s ease-out;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: #1a1a2e;
  padding: 48px;
  border-radius: 20px;
  border: 2px solid #00f3ff;
  box-shadow: 0 20px 60px rgba(0, 243, 255, 0.3);
  margin: 50px auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #00f3ff;
}

.modal input[type="email"],
.modal input[type="text"],
.modal textarea {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 8px;
  border: 2px solid rgba(0, 243, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-family);
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: #00f3ff;
}

.modal label {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: #e0e0e0;
  text-align: left;
}

.modal button[type="submit"] {
  width: 100%;
  background: #00ff88;
  color: #0a0a1a;
  padding: 20px;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.modal button[type="submit"]:hover {
  background: #00dd77;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}

.modal select {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 8px;
  border: 2px solid rgba(0, 243, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-family);
}

.modal select:focus {
  outline: none;
  border-color: #00f3ff;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 32px 24px;
    margin: 20px auto;
  }
}

/* PRINT STYLES */
@media print {
  .site-header, .site-footer, .btn-primary, .btn-secondary, .modal {
    display: none;
  }
}
