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

:root {
  --navy: #0f1b2d;
  --navy-light: #16273e;
  --teal: #1b6f7a;
  --teal-light: #2d8f9e;
  --teal-bright: #3fb4c4;
  --silver: #c7ced6;
  --silver-dark: #8b96a3;
  --white: #ffffff;
  --off-white: #f7f9fb;
  --text-dark: #16273e;
  --text-muted: #5c6b7a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 27, 45, 0.15);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-weight: 800; line-height: 1.2; color: var(--navy); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-light));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(45, 143, 158, 0.35);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45, 143, 158, 0.45); }

.button.secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--silver);
}
.button.secondary:hover { border-color: var(--teal-light); color: var(--teal-light); transform: translateY(-2px); }

.button.large { padding: 15px 32px; font-size: 1.05rem; }

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 27, 45, 0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo img { height: 36px; }

nav ul {
  display: flex;
  gap: 32px;
}

nav ul a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color var(--transition);
  position: relative;
}
nav ul a:hover { color: var(--teal-light); }

.navButtons { display: flex; gap: 12px; align-items: center; }

.navToggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.navToggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 143, 158, 0.08), transparent 50%),
    var(--off-white);
}

.heroGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.heroImage img {
  border-radius: var(--radius);
  filter: drop-shadow(var(--shadow-lg));
}

.heroBadge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(45, 143, 158, 0.12);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.heroContent h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.heroContent p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.heroButtons {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.supportedPlatforms {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.supportedPlatforms div { position: relative; padding-left: 18px; }
.supportedPlatforms div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
}

/* ===== Stats ===== */
.stats {
  padding: 50px 0;
  background: var(--navy);
}

.statGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.statGrid h2 {
  color: var(--teal-bright);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.statGrid p {
  color: var(--silver);
  font-size: 0.9rem;
}

/* ===== Section Title ===== */
.sectionTitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.sectionTitle h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.sectionTitle p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Features ===== */
#features { padding: 90px 0; }

.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(15, 27, 45, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.card.visible { opacity: 1; transform: translateY(0); }

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(45, 143, 158, 0.25);
}

.card .icon {
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(45, 143, 158, 0.1);
  margin-bottom: 20px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Screenshot ===== */
.screenshot {
  padding: 90px 0;
  background: var(--off-white);
  text-align: center;
}

.screenshot img {
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 27, 45, 0.08);
}

/* ===== How It Works ===== */
.how { padding: 90px 0; background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-light));
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* ===== Download Grid ===== */
.download { padding: 80px 0; background: var(--off-white); }

.downloadGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.downloadGrid a {
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--navy);
  transition: all var(--transition);
}
.downloadGrid a:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ===== CTA ===== */
.cta {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}
.cta h2 { color: var(--white); margin-bottom: 14px; }
.cta p { color: var(--silver); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: var(--silver);
  padding: 60px 0 24px;
}

.footerGrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footerGrid h3 { color: var(--white); margin-bottom: 10px; }
.footerGrid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footerGrid p { color: var(--silver-dark); font-size: 0.9rem; }

.footerGrid a {
  display: block;
  color: var(--silver-dark);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footerGrid a:hover { color: var(--teal-bright); }

.copyright {
  text-align: center;
  padding-top: 24px;
  color: var(--silver-dark);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .heroGrid { grid-template-columns: 1fr; }
  .heroImage { order: -1; }
  .statGrid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .featureGrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .downloadGrid { grid-template-columns: repeat(3, 1fr); }
  .footerGrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  nav ul, .navButtons .button.secondary { display: none; }
  .navToggle { display: flex; }

  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .featureGrid, .steps, .downloadGrid, .footerGrid { grid-template-columns: 1fr; }
  .heroButtons { flex-direction: column; }
  .heroButtons .button { width: 100%; }
}
