/* =========================================
   Briefly — Landing Page Styles
   Modex Apps · 2026
   ========================================= */

/* Variables */
:root {
  --bg: #09090F;
  --bg-card: #111118;
  --bg-card-hover: #17171F;
  --border: rgba(255, 255, 255, 0.07);
  --text: #F0F0F5;
  --text-muted: #8888A0;
  --text-faint: #55556A;
  --accent: #F5C842;
  --accent-dim: rgba(245, 200, 66, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* Section spacing */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--text);
  color: #000;
  padding: 16px 28px;
  font-size: 16px;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-sm {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid var(--border);
}
.btn-sm:hover { background: rgba(255,255,255,0.14); }

.apple-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 120px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-content { flex: 1; max-width: 560px; }

.badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.accent { color: var(--accent); }

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

.hero-actions { margin-bottom: 24px; }

.social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }

/* PHONE MOCKUP */
.hero-phone { flex-shrink: 0; }
.phone-frame {
  width: 260px;
  height: 540px;
  background: #1A1A24;
  border-radius: 44px;
  padding: 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 6px;
  background: #000;
  border-radius: 3px;
  z-index: 2;
}
.phone-screen {
  background: #0A0A12;
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.phone-app { padding: 0 14px 14px; }
.phone-header {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.phone-sub-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.phone-book-card {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-radius: 14px;
  padding: 14px;
}
.phone-book-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.phone-book-author {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.phone-book-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.phone-badge {
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.85);
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}
.phone-book-meta span:last-child {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.phone-progress-bar {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  height: 4px;
  margin-bottom: 6px;
}
.phone-progress-fill {
  background: rgba(255,255,255,0.85);
  border-radius: 4px;
  height: 100%;
}
.phone-progress-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.phone-mini-row {
  display: flex;
  gap: 8px;
}
.phone-mini-card {
  flex: 1;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-radius: 10px;
  padding: 10px;
}
.phone-mini-title {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.phone-mini-meta {
  font-size: 9px;
  color: rgba(255,255,255,0.65);
}

/* HOW IT WORKS */
.how { background: linear-gradient(180deg, #09090F 0%, #0D0D16 100%); }
.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 60px;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
}
.step {
  flex: 1;
  padding: 0 24px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
  opacity: 0.9;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.step-divider {
  width: 1px;
  height: 120px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}

/* BOOKS SHELF */
.books { overflow: hidden; }
.books .container { margin-bottom: 40px; }
.books-scroll {
  overflow-x: auto;
  padding: 10px 24px 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.books-scroll::-webkit-scrollbar { display: none; }
.books-scroll:active { cursor: grabbing; }
.books-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
}
.book-card {
  width: 180px;
  height: 240px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.book-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
}
.book-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.book-card-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
}
.book-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.book-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}
.book-author { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.book-time {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.85);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* FEATURES */
.features { background: #0D0D16; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.feature-icon { font-size: 36px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.testimonial-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 18px; }
.testimonial-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 13px; color: var(--text-faint); }

/* FINAL CTA */
.cta { background: var(--bg); }
.cta-box {
  background: linear-gradient(135deg, #111118 0%, #17171F 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(245,200,66,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.cta-note { font-size: 13px; color: var(--text-faint); margin-top: 16px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-logo { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { gap: 50px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid .testimonial-card:nth-child(3) { display: none; }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { margin: 0 auto 36px; }
  .social-proof { justify-content: center; }
  .phone-frame { width: 220px; height: 460px; }
  .steps {
    flex-direction: column;
    gap: 40px;
  }
  .step { padding: 0; }
  .step-divider { width: 100%; height: 1px; align-self: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:nth-child(3) { display: block; }
  .cta-box { padding: 48px 28px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { gap: 16px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 32px; letter-spacing: -0.8px; }
  .section-title { font-size: 26px; }
  .phone-frame { width: 200px; height: 420px; }
}
