/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-surface: #141414;
  --bg-card: #1a1a1a;
  --border: #2a2a2a;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #48484a;
  --accent: #2997ff;
  --accent-hover: #5eb0ff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ===== LAYOUT ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ===== HERO ===== */
#hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title .gradient {
  background: linear-gradient(135deg, #2997ff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 44px;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 980px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

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

.section-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.apps-grid {
  display: grid;
  gap: 24px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.app-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.app-platform {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.app-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feature-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(41, 151, 255, 0.08);
  border: 1px solid rgba(41, 151, 255, 0.2);
  padding: 4px 12px;
  border-radius: 980px;
}

.app-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 980px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-appstore:hover {
  background: #e0e0e2;
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn-appstore svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-privacy {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-privacy:hover {
  color: var(--text-primary);
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text-primary);
}

.about-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stack-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
}

.stack-info {
  display: flex;
  flex-direction: column;
}

.stack-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.stack-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== CONTACT ===== */
#contact {
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 400px;
  margin: 0 auto 36px;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 980px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

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

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.97);
  padding: 8px 24px 16px;
  animation: navMobileIn 0.15s ease;
}

.nav-mobile ul {
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
}

.nav-mobile ul li a {
  display: block;
  padding: 13px 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

.nav-mobile ul li:last-child a {
  border-bottom: none;
}

.nav-mobile ul li a:hover {
  color: var(--text-primary);
}

@keyframes navMobileIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  section {
    padding: 60px 0;
  }

  #hero {
    padding: 80px 0 60px;
  }

  .app-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .app-header {
    flex-direction: column;
    gap: 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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