/* =========================================
   MD2 TECH — Shared Stylesheet
   Edit here, applies everywhere.
   ========================================= */

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

:root {
  --black:     #0a0a0a;
  --dark:      #111111;
  --panel:     #1a1a1a;
  --blue:      #4A9EE8;
  --blue-dark: #2d7abf;
  --text:      #e8e8e8;
  --muted:     #888;
  --border:    #2a2a2a;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Barlow', sans-serif;
  --cond: 'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo img { height: 80px; width: auto; }

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

.nav-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1.5rem 2.5rem;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--blue); color: var(--black); text-decoration: none; }
.btn.filled { background: var(--blue); color: var(--black); }
.btn.filled:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ── SECTION BASE ── */
.section-wrap {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2rem;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.card {
  background: var(--dark);
  padding: 2.5rem;
  transition: background 0.2s;
}
.card:hover { background: var(--panel); }

.card-icon {
  width: 48px; height: 48px;
  background: rgba(74,158,232,0.1);
  border: 1px solid rgba(74,158,232,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 22px;
}

.card-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--blue);
  border: 1px solid rgba(74,158,232,0.3);
  padding: 4px 10px;
  text-transform: uppercase;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }

/* ── PRODUCT PAGE — HERO ── */
.product-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 2.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.product-hero h1 {
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.product-hero h1 span { color: var(--blue); }

.product-hero .sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── STORE BADGE ── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.store-badge:hover { border-color: var(--blue); background: var(--panel); text-decoration: none; }
.store-badge .store-icon { font-size: 20px; }
.store-badge .store-info { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .store-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.store-badge .store-name { font-weight: 600; font-size: 14px; }

/* ── SCREENSHOTS ── */
.screenshots {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.screenshots-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-frame {
  flex: 0 0 auto;
  width: 220px;
}

.screenshot-frame img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── FEATURES LIST ── */
.features {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  border-left: 2px solid var(--blue);
  padding-left: 1.5rem;
}

.feature-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.feature-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.feature-text strong { color: var(--text); font-weight: 600; }

/* ── PRICING ── */
.pricing-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
  flex-wrap: wrap;
}

.price-tier {
  flex: 1;
  min-width: 200px;
  background: var(--dark);
  padding: 2rem;
}

.price-tier.featured { background: var(--panel); }

.tier-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: var(--cond);
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tier-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tier-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section-wrap { padding: 4rem 1.5rem; }
  .product-hero { padding: 7rem 1.5rem 3rem; }
  .screenshots { padding: 2rem 1.5rem; }
  .features { padding: 3rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
  .screenshot-frame { width: 160px; }
  .pricing-row { flex-direction: column; }
}
