/* ============================================================
   MobiEdge — Minimalist Black & White Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --black:   #000000;
  --dark:    #111111;
  --mid:     #555555;
  --light:   #aaaaaa;
  --border:  #e0e0e0;
  --bg-soft: #f7f7f7;
  --white:   #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --radius: 4px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}
.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 540px;
  line-height: 1.7;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--black);
  margin: 24px 0;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--black);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* Black logo on transparent PNG → shows as black on white nav */
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--black); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white) !important;
  background: var(--black);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: opacity var(--transition) !important;
}

.nav-cta:hover { opacity: 0.75 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--dark);
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 9px 18px;
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 720px;
}

.hero-title em {
  font-style: normal;
  border-bottom: 3px solid var(--black);
  padding-bottom: 2px;
}

.hero-sub {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── About Section ── */
.about { background: var(--bg-soft); }

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

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--white);
}

.value-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.value-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.6;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-feature {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.about-feature:first-child { padding-top: 0; }
.about-feature:last-child { border-bottom: none; padding-bottom: 0; }

.feature-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--light);
  min-width: 28px;
  padding-top: 2px;
}

.about-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.about-feature p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── Apps Grid ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.app-card {
  background: var(--white);
  padding: 32px;
  transition: background var(--transition);
}

.app-card:hover { background: var(--bg-soft); }

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  font-size: 1.6rem;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.app-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 2px;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
}

.app-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--black);
  padding: 80px 0;
}

.cta-banner .section-title { color: var(--white); }
.cta-banner .section-sub { color: var(--light); }
.cta-banner .divider { background: var(--white); opacity: 0.3; }

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

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-white:hover { background: #eeeeee; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

/* ── Page Header ── */
.page-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-header .breadcrumb {
  font-size: 0.75rem;
  color: var(--light);
  margin-bottom: 16px;
  font-weight: 500;
}

.page-header .breadcrumb a { color: var(--mid); }
.page-header .breadcrumb a:hover { color: var(--black); }

/* ── App Detail Page ── */
.app-detail-hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.app-detail-top {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.app-detail-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  font-size: 2.5rem;
}

.app-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 8px;
}

.app-detail-info .app-developer {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 12px;
}

.app-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

.app-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--black);
  transition: opacity var(--transition);
}

.play-store-btn:hover { opacity: 0.8; }

.play-store-btn svg { flex-shrink: 0; }

.app-content {
  padding: 64px 0;
}

.app-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.app-description h2,
.app-features h2,
.app-screenshots h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.app-description p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.5;
}

.features-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
  margin-top: 7px;
  flex-shrink: 0;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  border: 1px solid var(--border);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.sidebar-stat:last-child { border-bottom: none; }

.sidebar-stat span:first-child { color: var(--mid); }
.sidebar-stat span:last-child { font-weight: 600; color: var(--black); }

/* ── Privacy / Terms / Contact Pages ── */
.legal-content {
  padding: 64px 0;
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin: 40px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: none;
  margin: 12px 0 16px 0;
}

.legal-content ul li {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  padding: 4px 0 4px 18px;
  position: relative;
}

.legal-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--light);
}

.legal-content a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }

.legal-meta {
  font-size: 0.8rem;
  color: var(--light);
  margin-top: 4px;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-item-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 4px;
}

.contact-item-text span,
.contact-item-text a {
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.5;
}

.contact-item-text a:hover { text-decoration: underline; }

/* ── Contact Form ── */
.contact-form-wrap {
  background: var(--bg-soft);
  padding: 40px;
}

.contact-form-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 8px;
}

/* ── Footer ── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--light);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 5px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: invert(1);
  /* Black logo on transparent PNG → inverted to white for dark footer */
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #888888;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.78rem;
  color: #666666;
}

.footer-bottom a:hover { color: var(--white); }

/* ── Apps Page Filter ── */
.apps-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: 1px solid var(--border);
  padding: 7px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 20px;
  }

  .nav-cta { display: none; }

  .hero { padding: 64px 0 56px; }
  section { padding: 60px 0; }

  .about-grid,
  .app-content-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
  .app-detail-top { flex-direction: column; }
}

@media (max-width: 600px) {
  .apps-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}
