/* ---------- Design tokens (palette RunPlayground) ---------- */
:root {
  --primary: #00c2dc;
  --primary-dark: #083060;
  --secondary: #2ebe7a;
  --accent: #ff8a00;
  --accent-red: #ff6038;
  --sky-blue: #3890c8;
  --tint: #e0f8ff;
  --white: #ffffff;
  --gray-100: #f6f9fb;
  --gray-200: #eef2f5;
  --gray-300: #dde3e8;
  --gray-500: #8b98a3;
  --gray-600: #5c6b77;
  --gray-700: #2c3a45;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px rgba(8, 48, 96, 0.10);
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--primary-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 194, 220, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--gray-300);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-icon {
  display: none;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 400;
  flex-shrink: 0;
}

.brand strong {
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 85% 0%, var(--tint) 0%, var(--white) 55%);
  padding: 72px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.hero-subtitle {
  color: var(--gray-600);
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.hero-stats span {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 24px 40px rgba(8, 48, 96, 0.18));
}

/* ---------- Features ---------- */
.features {
  padding: 96px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 56ch;
  margin: 0 auto 56px;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.icon-blue { background: var(--tint); }
.icon-green { background: #e4f8ee; }
.icon-orange { background: #fff1e0; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- How it works ---------- */
.how-it-works {
  background: var(--gray-100);
  padding: 96px 0;
}

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

.step {
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 96px 0;
}

.testimonial-inner {
  max-width: 720px;
  text-align: center;
}

.testimonial blockquote {
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin: 0 0 20px;
}

.testimonial-author {
  color: var(--gray-500);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--sky-blue));
  color: var(--white);
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.cta .btn-primary {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand-icon {
  display: inline-block;
  vertical-align: middle;
}

.footer-brand span {
  margin-left: 10px;
  color: var(--white);
  font-weight: 400;
}

.footer-brand strong {
  font-weight: 800;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 96px;
}

.legal-inner {
  max-width: 760px;
}

.legal-updated {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 32px;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.legal h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--gray-600);
  font-size: 0.98rem;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .nav-toggle-checkbox:checked ~ .main-nav {
    max-height: 320px;
    padding: 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    max-width: 240px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 422px) {
  .btn-download {
    padding: 10px 14px;
  }

  .btn-download .btn-label {
    display: none;
  }

  .btn-download .btn-icon {
    display: inline;
    font-size: 1.1rem;
    line-height: 1;
  }
}
