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

:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --primary: #388bfd;
  --primary-hover: #1f6feb;
  --green: #3fb950;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--primary-hover) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg3); border-color: var(--text-muted); }

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #e6edf3 40%, #388bfd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

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

.app-preview {
  width: 280px;
  height: 280px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(56,139,253,.15), 0 0 0 1px rgba(56,139,253,.1);
  position: relative;
}

.app-preview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(56,139,253,.3), transparent 50%, rgba(63,185,80,.2));
  z-index: -1;
}

.hero-icon { filter: drop-shadow(0 0 30px rgba(56,139,253,.4)); }

/* ── SECTIONS ── */
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 56px;
}

/* ── FEATURES ── */
.features { padding: 80px 0; }

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

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(56,139,253,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── DOWNLOAD ── */
.download {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color .2s;
}

.download-card-featured {
  border-color: var(--primary);
  background: rgba(56,139,253,.04);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #0d1117;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

.platform-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.download-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-card > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.btn-download {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.hint {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}
.hint a { color: var(--primary); text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.code-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  color: var(--green);
  word-break: break-all;
  text-align: left;
  line-height: 1.5;
  margin-top: 8px;
}

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid, .download-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid, .download-cards { grid-template-columns: 1fr; }
  .nav a:not(.btn-nav) { display: none; }
}
