@import url('base.css');

body { background: var(--bg-2); }

/* ===== Ambient glows (3D depth) ===== */
.glow {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(90px); opacity: 0.5; animation: breathe 8s ease-in-out infinite;
}
.glow-green { width: 420px; height: 420px; background: radial-gradient(circle, rgba(16,185,129,0.5), transparent 70%); top: -120px; right: -100px; }
.glow-blue  { width: 460px; height: 460px; background: radial-gradient(circle, rgba(59,130,246,0.5), transparent 70%); bottom: -140px; left: -120px; animation-delay: -4s; }
.glow-amber { width: 320px; height: 320px; background: radial-gradient(circle, rgba(245,158,11,0.3), transparent 70%); top: 45%; left: 38%; animation-delay: -2s; }
@keyframes breathe { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .6; transform: scale(1.15); } }

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.14;
  background-image:
    linear-gradient(rgba(59,130,246,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 75%);
}

.landing { position: relative; z-index: 1; }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 60px);
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.nav-logo img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 130px clamp(20px, 5vw, 70px) 60px; max-width: 1400px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: var(--green); font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 99px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.2; font-weight: 900; margin-bottom: 20px; }
.hero p.sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.9; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.install-btn { animation: pulse-glow 2.2s ease-in-out infinite; font-size: 17px; padding: 16px 34px; border-radius: 16px; }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 10px 35px rgba(16,185,129,0.35), 0 10px 35px rgba(59,130,246,0.25); }
  50% { box-shadow: 0 10px 60px rgba(16,185,129,0.65), 0 10px 60px rgba(59,130,246,0.5); }
}
.hero-stats { display: flex; gap: 36px; margin-top: 42px; }
.hero-stats div strong { font-size: 26px; color: #fff; display: block; }
.hero-stats div span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ===== 3D Tilt Phone ===== */
.phone-scene { perspective: 1400px; display: flex; justify-content: center; align-items: center; }
.phone-wrap {
  transform-style: preserve-3d; transition: transform 0.12s ease-out;
  animation: float-phone 5s ease-in-out infinite;
  will-change: transform;
}
@keyframes float-phone { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.phone {
  width: min(320px, 70vw); aspect-ratio: 9/19;
  border-radius: 42px; padding: 10px; position: relative;
  background: linear-gradient(160deg, #1E293B, #0B1120);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 60px 120px rgba(0,0,0,0.6),
    0 0 80px rgba(59,130,246,0.22),
    -30px 40px 80px rgba(16,185,129,0.14);
  transform-style: preserve-3d;
}
.phone::before {
  content: ''; position: absolute; inset: 0; border-radius: 42px;
  background: linear-gradient(135deg, rgba(16,185,129,0.18), transparent 40%, rgba(59,130,246,0.18));
  pointer-events: none;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--bg-2); position: relative; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 11px;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0B1120; border-radius: 99px; z-index: 5;
  border: 1px solid rgba(255,255,255,0.08);
}
.ps-header {
  display: flex; align-items: center; gap: 6px; padding: 14px 14px 10px;
  background: rgba(11,17,32,0.7); border-bottom: 1px solid var(--border);
}
.ps-header img { width: 20px; height: 20px; }
.ps-header b { font-size: 12px; }
.ps-alert {
  margin: 8px 10px 0; padding: 7px 9px; border-radius: 10px;
  background: var(--amber-dim); border: 1px solid rgba(245,158,11,0.35);
  color: var(--amber); font-size: 10px; font-weight: 700; text-align: center;
}
.ps-search {
  margin: 10px; padding: 9px 11px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: #475569; font-size: 10px;
}
.ps-members { padding: 0 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow: hidden; }
.ps-card {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.ps-ava { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 11px; }
.ps-card div { flex: 1; line-height: 1.3; }
.ps-card b { font-size: 11px; display: block; }
.ps-card span { font-size: 9px; color: var(--muted); }
.ps-card .badge { font-size: 8px; padding: 3px 7px; }
.ps-nav {
  display: flex; gap: 6px; padding: 8px 12px 12px;
  border-top: 1px solid var(--border); background: rgba(11,17,32,0.7);
}
.ps-tab { flex: 1; text-align: center; font-size: 9px; color: var(--muted); padding: 6px 0; border-radius: 9px; font-weight: 700; }
.ps-tab.on { background: rgba(16,185,129,0.12); color: var(--green); }

/* ===== Feature cards (3D floating glass) ===== */
.features { padding: 90px clamp(20px, 5vw, 70px) 100px; max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; perspective: 1200px; }
.fcard {
  position: relative; padding: 30px 24px; border-radius: 22px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1), box-shadow 0.35s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.fcard::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(135deg, rgba(16,185,129,0.14), transparent 45%, rgba(59,130,246,0.14));
  opacity: 0; transition: opacity .35s;
}
.fcard:hover { transform: translateY(-14px) rotateX(6deg) rotateY(-4deg) scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 50px rgba(59,130,246,0.15); border-color: var(--border-glow); }
.fcard:hover::after { opacity: 1; }
.fcard .ico {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); box-shadow: 0 10px 30px rgba(16,185,129,0.3);
  font-size: 26px;
}
.fcard h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.fcard p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* feature mini-illustrations */
.mini-battery { display:flex; align-items:flex-end; gap:3px; }
.mini-battery span { width: 7px; border-radius: 3px; background: var(--green); opacity:.35; animation: bars 1.6s ease-in-out infinite; }
.mini-battery span:nth-child(1){height:12px} .mini-battery span:nth-child(2){height:22px;animation-delay:.2s}
.mini-battery span:nth-child(3){height:16px;animation-delay:.4s} .mini-battery span:nth-child(4){height:27px;animation-delay:.6s}
@keyframes bars { 0%,100%{opacity:.3} 50%{opacity:1} }
.mini-tg { width: 40px; height: 40px; border-radius: 50%; background:#229ED9; display:flex; align-items:center; justify-content:center; box-shadow: 0 0 30px rgba(34,158,217,.6); }
.mini-print { font-size: 30px; animation: print-slide 2.6s ease-in-out infinite; }
@keyframes print-slide { 0%,100%{ transform: translateY(0); opacity:.85;} 50%{ transform: translateY(6px); opacity:1;} }
.mini-sports { display:flex; gap:6px; }
.mini-sports span { width: 12px; border-radius: 4px; background: var(--grad); transform: rotate(18deg); }
.mini-sports span:nth-child(1){height:34px} .mini-sports span:nth-child(2){height:24px;opacity:.7} .mini-sports span:nth-child(3){height:30px}

/* ===== CTA band ===== */
.cta-band { text-align: center; padding: 90px 20px; position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; margin-bottom: 18px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 34px; font-size: 16px; line-height: 1.9; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
footer .brand { color: var(--text); font-weight: 800; }

/* ===== Install modal / sheet ===== */
.install-sheet {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(2,6,23,0.7); backdrop-filter: blur(6px); padding: 20px;
}
.sheet-card { max-width: 420px; width: 100%; padding: 30px; text-align: center; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sheet-card img { width: 72px; height: 72px; margin-bottom: 16px; border-radius: 18px; }
.sheet-card h3 { font-size: 20px; margin-bottom: 8px; }
.sheet-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.sheet-actions { display: flex; gap: 12px; }
.sheet-actions .btn { flex: 1; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: center; }
  .hero p.sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .phone-scene { order: -1; }
  .nav-links { display: none; }
}
