/* ═══════════════════════════════════════════
   SMARTLAUNCHTECH — Premium iOS App Studio
   styles.css  v2.0
═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Design Tokens ── */
:root {
  --blue:        #2563eb;
  --blue-mid:    #3b82f6;
  --blue-dark:   #1d4ed8;
  --blue-pale:   rgba(37,99,235,.1);
  --blue-glow:   rgba(59,130,246,.35);

  --purple:      #7c3aed;
  --purple-mid:  #8b5cf6;
  --purple-pale: rgba(124,58,237,.08);

  --accent-grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

  --bg:          #07070e;
  --bg-2:        #0d0d16;
  --bg-card:     #10111a;
  --bg-card-2:   #141520;
  --border:      rgba(255,255,255,.06);
  --border-mid:  rgba(255,255,255,.1);
  --border-hover:rgba(59,130,246,.45);

  --text-1:  #f0f4ff;
  --text-2:  #8fa3c0;
  --text-3:  #546a87;

  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t: .25s var(--ease);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  /* Subtle noise grain for premium feel */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ── Utils ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.1));
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,.25);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-grad);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 40px rgba(124,58,237,.45); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(.98); }

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t); }
.btn-primary:hover .btn-icon { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-2);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color var(--t), border-color var(--t), background var(--t);
  cursor: none;
}
.btn-ghost:hover { color: var(--text-1); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }

/* ── Helpers ── */
.hidden { display: none !important; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════
   PRELOADER
═══════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-logo {
  animation: preloaderPulse 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(124,58,237,.5)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 28px rgba(124,58,237,.8)); }
}
.preloader-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-1);
}
.preloader-bar-wrap {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #a78bfa);
  background-size: 200% 100%;
  animation: barShimmer 1.5s linear infinite;
  border-radius: 999px;
  transition: width .05s linear;
}
@keyframes barShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.preloader.done {
  animation: preloaderOut .6s var(--ease) forwards;
}
@keyframes preloaderOut {
  to { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* ═══════════════════════════
   CUSTOM CURSOR
═══════════════════════════ */
.cursor {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: transform .1s, background .2s;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9997;
  transition: transform .18s var(--ease), width .25s, height .25s, border-color .25s;
}
.cursor.hovering { transform: translate(-50%,-50%) scale(2.5); background: var(--blue-mid); }
.cursor-ring.hovering { width: 48px; height: 48px; border-color: rgba(59,130,246,.6); }

/* ═══════════════════════════
   NAVBAR
═══════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.navbar.scrolled {
  background: rgba(9,9,15,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 40px rgba(0,0,0,.4);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  cursor: none;
}
.logo-icon { display: flex; }
.logo-text { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.logo-accent { 
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-link {
  text-decoration: none;
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  transition: color var(--t);
  cursor: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue-mid);
  border-radius: 999px;
  transition: width var(--t);
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(124,58,237,.12));
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,.28);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
  cursor: none;
}
.nav-cta:hover { background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(124,58,237,.22)); border-color: rgba(139,92,246,.5); color: #ddd6fe; box-shadow: 0 4px 20px rgba(124,58,237,.2); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--t); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(9,9,15,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px 20px;
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--t);
}
.mobile-menu a:hover { color: var(--text-1); }
.mobile-cta {
  margin-top: 8px;
  color: var(--blue-mid) !important;
  border-bottom: none !important;
  font-weight: 700 !important;
}
.mobile-menu.open { display: flex; }

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

/* Mesh background */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbDrift 10s ease-in-out infinite;
}
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(37,99,235,.16), transparent 70%); top: -180px; right: -120px; animation-delay: 0s; }
.orb-2 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(124,58,237,.14), transparent 70%); bottom: -60px; left: -140px; animation-delay: -4s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%); top: 40%; right: 20%; animation-delay: -8s; }
.orb-4 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(59,130,246,.1), transparent 70%); top: 20%; left: 15%; animation-delay: -2s; }
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(25px,-35px) scale(1.06); }
  66% { transform: translate(-20px,25px) scale(.94); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Hero inner */
.hero-inner {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

/* Stagger animations */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn .8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.preloader-gone .hero-anim { /* triggered after preloader */ }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { flex: 1; max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: linear-gradient(135deg, var(--blue-mid), var(--purple-mid));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(139,92,246,.7);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 6px rgba(124,58,237,.6); }
  50% { box-shadow: 0 0 18px rgba(139,92,246,.9); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}
.title-line {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.04;
  color: var(--text-1);
}
.title-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-proof { display: flex; align-items: center; gap: 32px; }
.proof-item { }
.proof-item strong {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(135deg, #f0f4ff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-item sup { font-size: 1rem; font-weight: 700; color: #a78bfa; vertical-align: top; margin-top: 4px; }
.proof-item p { font-size: .72rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.proof-sep { width: 1px; height: 36px; background: var(--border); }

/* ── iPhone Device ── */
.hero-device {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-glow {
  position: absolute;
  width: 320px; height: 440px;
  background: radial-gradient(ellipse, rgba(124,58,237,.22) 0%, rgba(37,99,235,.18) 40%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.iphone {
  position: relative;
  z-index: 1;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-20px) rotate(-1.5deg); }
}

.iphone-body {
  width: 264px;
  height: 556px;
  background: linear-gradient(160deg, #1c1c1e, #141416);
  border-radius: 50px;
  padding: 14px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 0 0 2px rgba(0,0,0,.8),
    0 40px 80px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Side buttons */
.iphone-body::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 100px;
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, #2a2a2e, #1a1a1e);
  border-radius: 0 3px 3px 0;
}

.dynamic-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0d1b3e 0%, #0a1628 50%, #06101e 100%);
  border-radius: 38px;
  overflow: hidden;
}

/* Mock UI inside screen */
.mock-ui {
  padding: 58px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.mock-header { display: flex; align-items: center; gap: 10px; }
.mock-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  flex-shrink: 0;
}
.mock-text-block { flex: 1; }
.mock-line {
  height: 10px;
  background: rgba(255,255,255,.15);
  border-radius: 6px;
}
.mock-bell { width: 28px; height: 28px; flex-shrink: 0; }
.mock-bell svg { width: 100%; height: 100%; }

.mock-card {
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 16px;
  padding: 14px;
}
.mock-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mock-card-top span { color: rgba(255,255,255,.6); font-size: .72rem; font-weight: 500; }
.mock-pct { color: #60a5fa; font-weight: 800; font-size: .85rem; }
.mock-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #818cf8); border-radius: 999px; }

.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-cell {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.06);
}
.mock-cell span { font-size: 1.2rem; }
.mock-cell p { font-size: .6rem; color: rgba(255,255,255,.5); font-weight: 600; }

.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 9px 10px;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,15,25,.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.float-badge svg { flex-shrink: 0; }
.badge-top { top: 80px; right: -60px; animation: badgeFloat 4s ease-in-out infinite; }
.badge-bottom { bottom: 100px; left: -70px; animation: badgeFloat 4s ease-in-out infinite; animation-delay: -2s; }
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.iphone-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,.5) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 0 32px;
  position: relative;
  z-index: 1;
  animation: hintFade 2s ease 2s both;
}
@keyframes hintFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scroll-hint span { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--text-3);
  border-radius: 999px;
  animation: wheelScroll 1.8s ease infinite;
}
@keyframes wheelScroll {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ═══════════════════════════
   MARQUEE STRIP
═══════════════════════════ */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marquee-track .dot { 
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════
   SECTION HEADER
═══════════════════════════ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text-1);
  margin-bottom: 14px;
  line-height: 1.1;
}
.section-header p { font-size: .95rem; color: var(--text-2); max-width: 380px; margin: 0 auto; line-height: 1.7; }

/* ═══════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════
   APPS SECTION
═══════════════════════════ */
.apps-section { padding: 100px 0; background: var(--bg); }

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 600;
  cursor: none;
  transition: all var(--t);
  font-family: inherit;
}
.filter-btn:hover { color: var(--text-1); border-color: rgba(255,255,255,.15); }
.filter-btn.active {
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(124,58,237,.15));
  border-color: rgba(139,92,246,.4);
  color: #c4b5fd;
}

/* Apps grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

/* App card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: none;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.2), rgba(59,130,246,.2), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.app-card:hover { border-color: rgba(139,92,246,.3); transform: translateY(-5px); box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(124,58,237,.12), 0 0 40px rgba(124,58,237,.05); }
.app-card:hover::before { opacity: 1; }

/* card glow on hover */
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.1) 0%, rgba(59,130,246,.06) 40%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.app-card:hover .card-glow { opacity: 1; }

.app-card.hidden-card { display: none; }

.app-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.app-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.app-meta { flex: 1; }
.app-meta h3 { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.app-meta span { font-size: .72rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.app-stars { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.stars-row { color: #f59e0b; font-size: .7rem; letter-spacing: -1px; }
.app-stars span { font-size: .75rem; font-weight: 700; color: var(--text-2); }

.app-card > p { font-size: .88rem; color: var(--text-2); line-height: 1.65; margin-bottom: 18px; }

.app-card-bottom { display: flex; align-items: center; justify-content: space-between; }

.app-price {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.app-price.free { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.app-price.paid { background: rgba(59,130,246,.12); color: #60a5fa; border: 1px solid rgba(59,130,246,.2); }

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--t);
  cursor: none;
}
.store-link svg { width: 14px; height: 14px; }
.store-link:hover { background: white; color: #000; border-color: white; transform: scale(1.04); }

/* ═══════════════════════════
   WHY SECTION
═══════════════════════════ */
.why-section { padding: 90px 0; background: var(--bg-2); border-top: 1px solid var(--border); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.why-card:hover { border-color: rgba(124,58,237,.3); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.35); }

.why-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.1));
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon-wrap svg { width: 20px; height: 20px; color: #a78bfa; }

.why-card h3 { font-size: .95rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.why-card p { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

/* ═══════════════════════════
   ABOUT SECTION
═══════════════════════════ */
.about-section { padding: 100px 0; background: var(--bg); }

.about-inner { display: flex; align-items: center; gap: 80px; }

.about-left { flex: 1; }
.about-left h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 18px;
}
.about-left p { font-size: .93rem; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.about-left .btn-primary { margin-top: 10px; }

/* Code panel */
.about-right { flex: 0 0 420px; }

.code-panel {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.code-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-panel-header span { margin-left: 8px; font-size: .78rem; color: var(--text-3); font-weight: 500; }

.code-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 3px; }
.code-line { font-size: .88rem; font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace; line-height: 1.9; }
.code-line.indent { padding-left: 22px; }

.ck  { color: #c792ea; }
.cv  { color: #82aaff; }
.co  { color: #89ddff; }
.cb  { color: #89ddff; }
.cp  { color: #f07178; }
.cs  { color: #c3e88d; }
.cn  { color: #f78c6c; }
.cbool { color: #ff9cac; }

/* ═══════════════════════════
   CONTACT SECTION
═══════════════════════════ */
.contact-section { padding: 100px 0; background: var(--bg-2); border-top: 1px solid var(--border); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text-1);
  margin-bottom: 14px;
  line-height: 1.1;
}
.contact-left > p { font-size: .93rem; color: var(--text-2); line-height: 1.75; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 500;
}
.ci-icon {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 16px; height: 16px; color: #a78bfa; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Floating label inputs */
.form-field {
  position: relative;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 20px 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
  cursor: none;
}
.form-field textarea { min-height: 120px; padding-top: 24px; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,.08);
}
.form-field label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: .85rem;
  color: var(--text-3);
  font-weight: 500;
  pointer-events: none;
  transition: all .2s var(--ease);
  transform-origin: left top;
}
.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-7px) scale(.75);
  color: var(--blue-mid);
}

.btn-submit { width: 100%; justify-content: center; padding: 15px; font-size: .95rem; }

.form-feedback {
  min-height: 20px;
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
}
.form-feedback.success { color: #34d399; }
.form-feedback.error   { color: #f87171; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.footer {
  background: #060609;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(37,99,235,.08), transparent 70%);
  pointer-events: none;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 60px 0 48px;
}
.footer-brand { flex: 1; }
.footer-brand .nav-logo { color: var(--text-1); margin-bottom: 10px; display: inline-flex; }
.footer-brand p { font-size: .88rem; color: var(--text-3); margin-top: 6px; }

.footer-nav { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 6px; }
.footer-col a { color: #64748b; font-size: .88rem; text-decoration: none; transition: color var(--t); cursor: none; }
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-3);
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 1024px) {
  .about-inner { gap: 48px; }
  .about-right { flex: 0 0 360px; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; padding-top: 50px; gap: 56px; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-eyebrow { justify-content: center; }

  .about-inner { flex-direction: column; gap: 40px; }
  .about-right { flex: 0 0 auto; width: 100%; max-width: 440px; align-self: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .apps-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .hero-device { display: none; }
  .badge-top, .badge-bottom { display: none; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 20px; }
}
