:root {
  --bg: #030711;
  --fg: #f4f8ff;
  --muted: #b9c9e7;
  --line: rgba(92, 151, 255, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #000;
  color: var(--fg);
  overflow-x: hidden;
}

.letter-glitch {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

#glitch-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.vignette-outer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
}

.vignette-center {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}

.page-shell {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 24, 48, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  filter: brightness(0) invert(1);
}

.hero h1 {
  margin: 6px 0 0;
  max-width: 960px;
  font-size: clamp(30px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 26px);
}

.contact-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid rgba(151, 199, 255, 0.6);
  background: linear-gradient(180deg, rgba(47, 116, 246, 0.35), rgba(24, 64, 138, 0.35));
  color: #eef5ff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.01em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(193, 224, 255, 0.95);
  box-shadow: 0 16px 42px rgba(19, 80, 187, 0.35);
}

.store-row {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  display: inline-block;
  width: min(150px, 44vw);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.projects {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 88px;
}

.projects-head {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.projects-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(151, 199, 255, 0.45);
  background: rgba(13, 24, 48, 0.72);
  color: #d9e7ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.projects-head p {
  margin: 14px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(151, 199, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 20, 36, 0.88), rgba(7, 12, 22, 0.92)),
    radial-gradient(circle at top right, rgba(47, 116, 246, 0.18), transparent 42%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(47, 116, 246, 0.16);
  border: 1px solid rgba(151, 199, 255, 0.32);
  color: #dce9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 16px 0 10px;
  font-size: 28px;
  line-height: 1.1;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(151, 199, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #eef5ff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(193, 224, 255, 0.9);
  background: rgba(47, 116, 246, 0.14);
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    padding: 92px 24px 48px;
  }

  .projects {
    padding-top: 8px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 84px 18px 40px;
  }

  .hero h1 {
    max-width: 680px;
  }

  .hero p {
    max-width: 560px;
  }

  .store-row {
    margin-top: 32px;
  }

  .projects {
    padding: 8px 18px 64px;
  }

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

  .project-card {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  body { overflow-x: hidden; }

  .hero {
    padding: 72px 14px 32px;
    gap: 10px;
  }

  .hero-logo {
    width: 64px;
    height: 64px;
  }

  .hero h1 {
    font-size: clamp(30px, 11vw, 46px);
  }

  .hero p {
    font-size: clamp(16px, 4.6vw, 22px);
  }

  .contact-btn {
    width: min(320px, 94vw);
    min-width: 0;
  }

  .store-row {
    width: 100%;
    gap: 10px;
    margin-top: 26px;
  }

  .store-badge {
    width: min(160px, 46vw);
  }

  .projects {
    padding: 8px 14px 56px;
  }

  .projects-head p {
    font-size: 16px;
  }

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

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

  .project-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 10vw, 40px);
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 16px;
  }

  .store-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .projects-kicker {
    font-size: 11px;
  }

  .projects-head p,
  .project-card p {
    font-size: 15px;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links a {
    width: 100%;
  }
}
