/* ========================================
   FOUNDER ENGINE - styles.css
   Premium dark SaaS with glassmorphism
   ======================================== */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --navy-950: #0a0f1e;
  --navy-900: #0f1629;
  --navy-800: #161d3a;
  --accent: #00d4ff;
  --accent-dark: #00a3cc;
}

/* ========================================
   Base overrides (for pages without Tailwind)
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Background gradient orbs
   ======================================== */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: orb-drift-1 25s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
  top: 30%;
  right: -10%;
  animation: orb-drift-2 30s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation: orb-drift-3 20s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(60px, 40px); }
  66% { transform: translate(-30px, 80px); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-50px, -30px); }
  66% { transform: translate(40px, -60px); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -40px); }
}

/* ========================================
   Glassmorphism utilities
   ======================================== */
.glass-nav {
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-scrolled {
  background: rgba(10, 15, 30, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================
   Gradient text
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================
   Hero mesh background
   ======================================== */
.hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
}

/* ========================================
   Hero waveform (voice-style animated bars)
   ======================================== */
.waveform-container {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 200px;
}

.wave-line {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #00d4ff 0%, #6366f1 50%, #a855f7 100%);
  animation: wave-bar 1.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.wave-line:nth-child(1) { height: 40px; animation-delay: 0s; }
.wave-line:nth-child(2) { height: 80px; animation-delay: 0.15s; }
.wave-line:nth-child(3) { height: 120px; animation-delay: 0.3s; }
.wave-line:nth-child(4) { height: 160px; animation-delay: 0.45s; }
.wave-line:nth-child(5) { height: 140px; animation-delay: 0.6s; }
.wave-line:nth-child(6) { height: 90px; animation-delay: 0.75s; }
.wave-line:nth-child(7) { height: 60px; animation-delay: 0.9s; }
.wave-line:nth-child(8) { height: 30px; animation-delay: 1.05s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ========================================
   Fade-in animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Bento cards
   ======================================== */
.bento-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-accent:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.bento-purple:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

/* ========================================
   Why cards (problem/solution split)
   ======================================== */
.why-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.why-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Pricing popular card
   ======================================== */
.pricing-popular {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.06);
}

/* ========================================
   Dot Grid (2,500 dots)
   ======================================== */
.dot-grid {
  display: grid;
  grid-template-columns: repeat(50, 1fr);
  gap: 2px;
  max-width: 650px;
  margin: 0 auto;
}

.dot {
  aspect-ratio: 1;
  border-radius: 1.5px;
  background: #4b5563;
}

.dot.green {
  background: #10b981;
}

.dot.orange {
  background: #f59e0b;
}

.dot.red {
  background: #ef4444;
  animation: red-dot-pulse 2s ease-in-out infinite;
}

@keyframes red-dot-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 6px 2px rgba(239, 68, 68, 0.6); }
}

/* ========================================
   Bar Chart
   ======================================== */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
}

.chart-label {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  text-align: right;
  white-space: nowrap;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chart-bar {
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  min-width: 4px;
  transition: width 0.8s ease-out;
}

.chart-bar.ai-bar {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5) 0%, rgba(99, 102, 241, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.chart-bar.wf-bar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bar-value {
  font-size: 10px;
  font-weight: 600;
  color: #e2e8f0;
  padding-left: 8px;
  white-space: nowrap;
}

/* ========================================
   Mobile navigation
   ======================================== */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 40;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
  .chart-row {
    grid-template-columns: 100px 1fr;
  }

  .chart-label {
    font-size: 11px;
  }

  .dot-grid {
    gap: 1px;
  }
}

/* ========================================
   Legacy base styles (for market-xray.html and thank-you.html)
   These pages still reference styles.css without Tailwind
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Legacy page background */
body.legacy-page {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #D0D7E2;
  background: var(--navy-950);
  overflow-x: hidden;
}

/* Legacy nav (used by market-xray and thank-you) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #FFFFFF;
  text-decoration: none;
}

.nav-logo:hover {
  opacity: 1;
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link {
  color: #D0D7E2;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-login {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #0a0a0a !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  opacity: 1;
}

/* Legacy overline */
.overline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Legacy buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  opacity: 1;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  opacity: 1;
}

/* Legacy form inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(0, 212, 255, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.optional {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* Legacy links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Legacy headings */
h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
}

/* Thank-you page */
.thankyou {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--navy-950);
}

.thankyou-content {
  text-align: center;
  max-width: 520px;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.thankyou-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thankyou h1 {
  font-size: 48px;
  font-weight: 300;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.thankyou p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.7;
}

.thankyou-dash {
  font-size: 14px;
  color: #64748b;
}

.thankyou-dash:hover {
  color: #FFFFFF;
}

/* ========================================
   Custom scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
