/* =========================================================
   Swipe Slip — Shared Stylesheet
   Dark space theme with neon cyan/orange accents
   ========================================================= */

/* ----- Custom Properties ----- */
:root {
  --color-bg:            #07071a;
  --color-bg-card:       #0d0d2b;
  --color-bg-nav:        rgba(7, 7, 26, 0.92);
  --color-accent:        #00d4ff;
  --color-accent-glow:   rgba(0, 212, 255, 0.25);
  --color-accent2:       #ff6b35;
  --color-accent2-glow:  rgba(255, 107, 53, 0.20);
  --color-text:          #e8eaf6;
  --color-text-muted:    #8892b0;
  --color-border:        rgba(0, 212, 255, 0.18);
  --color-border-subtle: rgba(255, 255, 255, 0.07);

  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1100px;
  --section-py: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #fff;
  opacity: 0.9;
}

ul {
  list-style: none;
}

code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.85em;
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-padding {
  padding-block: var(--section-py);
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--color-bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-accent);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.nav__toggle span + span { margin-top: 6px; }

.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  padding-block-start: 120px;
  padding-block-end: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 0 48px var(--color-accent-glow), 0 16px 40px rgba(0,0,0,0.5);
  margin-inline: auto;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 180px;
  justify-content: center;
}

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

.btn-store--primary {
  background: var(--color-accent);
  color: #07071a;
  box-shadow: 0 8px 28px var(--color-accent-glow);
}

.btn-store--primary:hover {
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.4);
  color: #07071a;
}

.btn-store--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-store--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ----- Features ----- */
.features {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-card) 100%);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.08);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ----- Screenshots ----- */
.screenshots {
  background: var(--color-bg);
}

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

.screenshots__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: var(--color-bg-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.screenshots__card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.15);
  border-color: var(--color-accent);
}

.screenshots__card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- How to Play ----- */
.how-to-play {
  background: var(--color-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: steps;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, #a78bfa 100%);
  color: #07071a;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--color-accent-glow);
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ----- Footer ----- */
.footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border-subtle);
  padding-block: 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.footer__projects-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__projects-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__projects-links a {
  font-size: 0.85rem;
  color: var(--color-accent);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer__projects-links a:hover {
  opacity: 1;
  color: #fff;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ----- Legal pages ----- */
.legal-page {
  padding-block-start: 104px;
  padding-block-end: 80px;
}

.legal-page__header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.legal-page__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page__updated {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.4);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ----- Accent divider ----- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-border) 50%, transparent 100%);
  margin-block: 0;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  :root { --section-py: 64px; }
}

@media (max-width: 768px) {
  :root { --section-py: 52px; }

  .nav__links {
    display: none;
    position: absolute;
    inset-block-start: 64px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-nav);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 14px 24px;
    width: 100%;
    font-size: 1rem;
  }

  .nav__toggle {
    display: flex;
    flex-direction: column;
  }

  .hero {
    padding-block-start: 100px;
  }

  .hero__icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

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

  .btn-store {
    width: 100%;
    max-width: 280px;
  }

  .screenshots__track {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

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

  .footer__links {
    gap: 16px;
  }

  .footer__projects-links {
    gap: 14px;
  }

  .legal-page {
    padding-block-start: 88px;
    padding-block-end: 48px;
  }

  .legal-page__header {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .legal-content h2 {
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }

  .hero {
    padding-block-start: 88px;
    padding-block-end: 48px;
  }

  .hero__icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .hero__badges {
    padding-inline: 8px;
  }

  .btn-store {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-width: 0;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .step {
    padding: 22px 18px;
  }

  .footer__projects-links {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }

  .legal-content p,
  .legal-content ul li {
    font-size: 0.9rem;
  }

  .legal-content ul {
    padding-left: 18px;
  }

  .nav__logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .nav__logo-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
}
