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

:root {
  --charcoal: #0F1115;
  --slate: #1A1F2E;
  --surface: #242A3D;
  --blue: #4C7DFF;
  --blue-hover: #6B94FF;
  --blue-deep: #2B4FCC;
  --success: #34D399;
  --success-deep: #059669;
  --amber: #F0A050;
  --red: #E05555;
  --purple: #A78BFA;
  --white: #ffffff;
  --gray: #9AA0B2;
  --gray-mid: #3A4055;
  --shadow: #080A0D;
}

html { scroll-behavior: smooth; }

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-hover); }

img { max-width: 100%; display: block; }

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-mid);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(76, 125, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(76, 125, 255, 0.45);
  color: var(--white);
}

.btn-secondary {
  background: var(--slate);
  color: var(--white);
  border: 1px solid var(--gray-mid);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-deep), var(--success));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 30px rgba(52, 211, 153, 0.45);
  color: var(--white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(76, 125, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate);
  border: 1px solid var(--gray-mid);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.hero-badge span { color: var(--blue); font-weight: 600; }

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* ===== Hero Screenshot ===== */
.hero-screenshot {
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  box-shadow: 0 20px 80px rgba(76, 125, 255, 0.15), 0 0 0 1px var(--gray-mid);
}

.hero-screenshot img {
  width: 100%;
  display: block;
}

/* ===== Section Layout ===== */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.7;
}

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

.feature-card {
  background: var(--slate);
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 8px 40px rgba(76, 125, 255, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.feature-icon.blue { background: rgba(76, 125, 255, 0.15); }
.feature-icon.green { background: rgba(52, 211, 153, 0.15); }
.feature-icon.amber { background: rgba(240, 160, 80, 0.15); }
.feature-icon.purple { background: rgba(167, 139, 250, 0.15); }
.feature-icon.red { background: rgba(224, 85, 85, 0.15); }

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}

.stat { text-align: center; }

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--slate);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 60px rgba(76, 125, 255, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray);
}

.pricing-card .price-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-features li.included { color: var(--white); }
.pricing-features li.included::before { background: var(--success); }

.pricing-card .btn { width: 100%; }

/* ===== Download Section ===== */
.download-card {
  background: var(--slate);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-card p {
  color: var(--gray);
  margin-bottom: 32px;
}

.system-reqs {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-mid);
  text-align: left;
}

.system-reqs h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray);
}

.system-reqs ul {
  list-style: none;
  color: var(--gray);
  font-size: 0.9rem;
}

.system-reqs li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Features Detail (features page) ===== */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.feature-detail:last-child { border-bottom: none; }

.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }

.feature-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.feature-detail h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-detail p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-detail-visual {
  background: var(--slate);
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  overflow: hidden;
}

.feature-detail-visual img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--gray);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--gray-mid);
  padding: 60px 0 40px;
}

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

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand h3 span { color: var(--blue); }

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 20px;
}

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

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

.footer-col a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-mid);
  padding-top: 32px;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--gray-mid);
    padding: 24px;
    gap: 20px;
  }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.05rem; }

  .section-header h2 { font-size: 2rem; }
  .section { padding: 80px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 40px; }

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

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-detail.reverse { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-hero h1 { font-size: 2.2rem; }
  .page-hero { padding: 130px 0 60px; }

  .download-card { padding: 40px 24px; }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 36px 24px; }
}
