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

:root {
  --bg:        #1c1c1e;
  --bg-card:   #2c2c2e;
  --bg-nav:    #1c1c1ecc;
  --accent:    #e63946;
  --accent-dim:#e6394628;
  --text:      #f5f5f5;
  --text-muted:#999;
  --border:    #383838;
  --radius:    12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ── Typography ───────────────────────────────────────────────────────────── */
.marker {
  font-family: 'Permanent Marker', cursive;
}

h1, h2, h3 {
  line-height: 1.2;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
  margin-bottom: 1rem;
}

#hero h1 span {
  color: var(--accent);
}

#hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Section shared ───────────────────────────────────────────────────────── */
section {
  padding: 100px 5%;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ── About ────────────────────────────────────────────────────────────────── */
#about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 960px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stat-card .number {
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  color: var(--accent);
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Apps ─────────────────────────────────────────────────────────────────── */
#apps {
  border-top: 1px solid var(--border);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  display: block;
}

.app-card h3 {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.app-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 4px 10px;
  letter-spacing: 0.5px;
}

.app-links {
  display: flex;
  gap: 0.75rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ── Contact ──────────────────────────────────────────────────────────────── */
#contact {
  border-top: 1px solid var(--border);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 600px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item a:hover {
  color: var(--text);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .logo {
  font-family: 'Permanent Marker', cursive;
  color: var(--accent);
  font-size: 1.1rem;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 80px 6%;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}
