/* MyDreamGPT — Landing Page Styles */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #0a0a1a;
  --color-surface: #12122a;
  --color-border: #1e1e3a;
  --color-primary: #7c5cfc;
  --color-primary-hover: #6a4ce0;
  --color-accent: #c084fc;
  --color-text: #e8e8f0;
  --color-text-muted: #9898b0;
  --color-white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.logo:hover {
  color: var(--color-white);
}

.logo-icon {
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-white);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.12) 0%, transparent 60%);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  color: var(--color-white);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.store-badge:hover img {
  opacity: 1;
}

/* --- Features --- */
.features {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 60px;
  color: var(--color-white);
}

.steps {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--color-white);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.pricing-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.pricing-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  min-width: 280px;
  max-width: 360px;
  flex: 1;
  position: relative;
  text-align: left;
}

.pricing-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px rgba(124, 92, 252, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 600;
}

.pricing-card .btn {
  width: 100%;
}

/* --- Download --- */
.download {
  padding: 100px 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(124, 92, 252, 0.08) 0%, transparent 60%);
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-white);
}

.download p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* --- Footer --- */
footer {
  padding: 40px 24px 24px;
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* --- Legal Pages --- */
.legal-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-container h1 {
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-container section {
  margin-bottom: 32px;
}

.legal-container h2 {
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.legal-container section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.legal-container h3 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 8px;
  margin-top: 16px;
}

.legal-container p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal-container ul {
  color: var(--color-text-muted);
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-container li {
  margin-bottom: 6px;
}

.legal-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.legal-container th,
.legal-container td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.legal-container th {
  background: var(--color-surface);
  color: var(--color-white);
}

.legal-container td {
  color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
