/* Pension Cashflow Modeller – website styles (layout inspired by team-up, colours from app) */
:root {
  --bg: #0d001a;
  --bg-card: #140029;
  --bg-light: #f7f4ff;
  --text-dark: #2b1d45;
  --text-muted-dark: #5b4b7a;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-hover: #6d28d9;
  --text: #f5f3ff;
  --text-muted: #c4b5fd;
  --border: rgba(167, 139, 250, 0.2);
  --success: #34d399;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 0, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo:hover {
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(124, 58, 237, 0.15);
  text-decoration: none;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  text-decoration: none;
  color: white;
}

@media (max-width: 600px) {
  .nav-container {
    padding: 0 12px;
    height: 56px;
  }
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .nav-link {
    display: none;
  }
  .nav-cta {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-card) 50%, var(--bg) 100%);
  color: white;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-carousel {
  position: relative;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-carousel__track {
  position: relative;
  width: 280px;
  height: 500px;
  flex-shrink: 0;
}

.hero-carousel__img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-carousel__img--active {
  opacity: 1;
}

.hero-carousel__dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-shrink: 0;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-carousel__dot--active {
  background: #ffffff;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: default;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-light .section-title {
  color: var(--text-dark);
}

.section-light .section-subtitle {
  color: var(--text-muted-dark);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle--narrow {
  max-width: 560px;
}

/* App preview carousel */
@media (max-width: 900px) {
  .hero-carousel {
    width: 250px;
  }

  .hero-carousel__track {
    width: 250px;
    height: 446px;
  }

  .hero-carousel__img {
    width: 250px;
    max-height: 446px;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    width: 220px;
  }

  .hero-carousel__track {
    width: 220px;
    height: 392px;
  }

  .hero-carousel__img {
    width: 220px;
    max-height: 392px;
  }
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* How it works */
.how-it-works {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Your data */
.your-data .section-subtitle {
  margin-bottom: 0;
}

/* Download */
.download {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.download-logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 18px;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.store-btn {
  min-width: 140px;
}

/* Footer */
.footer {
  background: #080011;
  color: var(--text-muted);
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section .logo-text {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-section p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-section h4 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.footer-bottom p {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}
