:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f5fb;
  --text: #15203d;
  --muted: #6c7b95;
  --accent: #2d6cff;
  --border: #d8e3ef;
  --shadow: 0 30px 80px rgba(31, 62, 112, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Comfortaa', cursive;
  background: var(--bg);
  color: var(--text);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-label {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-sub {
  font-size: 0.95rem;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

main {
  padding-top: 92px;
}

.hero {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(45, 108, 255, 0.14), transparent 24%),
              radial-gradient(circle at bottom right, rgba(45, 108, 255, 0.08), transparent 20%),
              linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  text-align: center;
}

.hero-shell {
  width: min(940px, 100%);
  padding: 0 24px;
}

.hero-copy {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 40px;
  padding: 60px;
  box-shadow: 0 40px 90px rgba(31, 62, 112, 0.12);
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  background: rgba(45, 108, 255, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 0.9;
  color: var(--accent);
  animation: fadeInUp 0.9s ease-out;
}

.hero-text {
  margin: 28px auto 34px;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-pill-group span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(45, 108, 255, 0.12);
  color: #164d9c;
  font-weight: 600;
  font-size: 0.96rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn::after {
  content: '→';
  margin-left: 10px;
  transition: transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(4px);
}

.primary {
  background: linear-gradient(135deg, #2d6cff, #1f4dd8);
  color: #fff;
  box-shadow: 0 22px 45px rgba(45, 108, 255, 0.24);
}

.outline {
  color: var(--accent);
  border: 2px solid rgba(45, 108, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.hero-note {
  margin: 0;
  color: #5d6f8a;
  font-size: 0.95rem;
}

.section {
  padding: 100px 20px;
}

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

.section-head span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.section-head p {
  margin: 18px auto 0;
  max-width: 620px;
  color: #5e6f8c;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 30px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.compare-card,
.community-card,
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.compare-card:hover,
.community-card:hover,
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 80px rgba(31, 62, 112, 0.14);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.card h3,
.compare-card h3,
.community-card h3,
.download-card h2 {
  margin: 0 0 16px;
  color: #1c3055;
}

.card p,
.compare-card p,
.community-card p,
.download-card p,
.section-head p {
  color: #5d6f8a;
  line-height: 1.75;
  margin: 0;
}

.compare-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.compare-card {
  min-height: 380px;
}

.compare-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.compare-brand img {
  width: 44px;
  height: auto;
  display: block;
}

.miOS-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(45, 108, 255, 0.14);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.09em;
}

.compare-card h3 {
  margin: 0;
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  color: #5d6f8a;
}

.section-compare .compare-grid {
  align-items: stretch;
}

.section-download {
  padding-bottom: 80px;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.download-card h2 {
  margin-bottom: 16px;
}

.download-actions {
  display: flex;
  justify-content: center;
}

.small-copy {
  margin-top: 20px;
  color: #5d6f8a;
  text-align: center;
}

.community-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.community-card {
  text-decoration: none;
  color: inherit;
}

.community-card h3 {
  margin-bottom: 14px;
}

.footer {
  padding: 42px 20px 60px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: #6d7d96;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero-copy {
    padding: 48px 28px;
  }

  .section {
    padding: 80px 18px;
  }

  .download-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  main {
    padding-top: 88px;
  }

  .hero-copy {
    border-radius: 30px;
    padding: 36px 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .section {
    padding: 60px 16px;
  }

  .hero-pill-group {
    justify-content: center;
  }

  nav {
    gap: 16px;
  }

  .compare-brand,
  .download-card {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-brand img {
    width: 36px;
  }
}
