/* =========================================================
   Pin2Chat – Landing Page Styles
   Dark, modern, location-tech aesthetic
   Fonts: Syne (display) + DM Sans (body)
   ========================================================= */

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

:root {
  --bg: #0b0f1a;
  --surface: #131929;
  --surface-2: #1a2236;
  --border: rgba(255,255,255,0.07);
  --text: #eef1f8;
  --muted: #7a8aaa;
  --primary: #3d7aff;
  --primary-glow: rgba(61,122,255,0.28);
  --accent: #00d4b1;
  --accent-glow: rgba(0,212,177,0.22);
  --pin: #ff4e6a;
  --pin-glow: rgba(255,78,106,0.28);
  --r: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* BLOBS */
.blob-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.blob-1 { width: 500px; height: 500px; top: -150px; left: -100px; background: var(--primary-glow); }
.blob-2 { width: 400px; height: 400px; top: 10%; right: -100px; background: var(--accent-glow); }
.blob-3 { width: 350px; height: 350px; bottom: 10%; left: 30%; background: var(--pin-glow); }

/* LAYOUT */
.container { width: min(1140px, 92%); margin: 0 auto; position: relative; z-index: 1; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  background: rgba(11,15,26,0.82);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: inline-block; }
.logo-img { width: 120px; height: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* HERO */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.h1-accent { color: var(--accent); }
.h1-pin { color: var(--pin); }

.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin-bottom: 36px; line-height: 1.7; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 48px var(--primary-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted); text-decoration: none;
  padding: 14px 24px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border); transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

.stats-row { display: flex; gap: 24px; margin-top: 40px; align-items: center; }
.stat-item { }
.stat-value { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* PHONE */
.phone-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone-carousel { position: relative; z-index: 2; width: 220px; }
.phone-frame {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-screen { width: 100%; aspect-ratio: 9/19; border-radius: 26px; overflow: hidden; position: relative; background: #000; }
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: opacity 0.5s ease;
  position: absolute; top: 0; left: 0;
}
.phone-screen img.hidden { opacity: 0; }
.phone-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.phone-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.phone-dot.active { background: var(--primary); transform: scale(1.3); }

/* SECTIONS */
.lsection { padding: 80px 0; }
.section-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-sub { color: var(--muted); max-width: 50ch; line-height: 1.7; margin-bottom: 48px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-4px); }
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 1; }
.step-num {
  font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.04); position: absolute; top: 16px; right: 20px;
}
.step-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.step-icon-1 { background: rgba(61,122,255,0.15); }
.step-icon-2 { background: rgba(255,78,106,0.15); }
.step-icon-3 { background: rgba(0,212,177,0.15); }
.step-card h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  transition: border-color 0.3s;
}
.bento-card:hover { border-color: rgba(255,255,255,0.12); }
.b1 { grid-column: span 5; }
.b2 { grid-column: span 7; }
.b3 { grid-column: span 4; }
.b4 { grid-column: span 4; }
.b5 { grid-column: span 4; }
.bento-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-top: 12px; margin-bottom: 8px; }
.bento-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.feature-emoji { font-size: 2rem; }
.feature-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,177,0.12); border: 1px solid rgba(0,212,177,0.2);
  color: var(--accent); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 50px; margin-top: 12px;
}

/* PIN MAP */
.pin-map {
  background: rgba(61,122,255,0.07); border: 1px dashed rgba(61,122,255,0.25);
  border-radius: 14px; padding: 18px; margin-top: 16px;
  position: relative; height: 100px; overflow: hidden;
}
.map-pin { position: absolute; font-size: 1.4rem; animation: float 3s ease-in-out infinite; }
.map-pin-1 { top: 10px; left: 30%; animation-delay: 0s; }
.map-pin-2 { top: 30px; left: 55%; animation-delay: 0.8s; }
.map-pin-3 { top: 15px; left: 75%; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* CHAT */
.chat-preview { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { padding: 8px 12px; border-radius: 14px; font-size: 0.82rem; max-width: 80%; line-height: 1.4; }
.chat-bubble.out { background: var(--primary); color: #fff; align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.chat-bubble.in { background: var(--surface-2); color: var(--text); align-self: flex-start; border-radius: 14px 14px 14px 4px; }
.chat-bubble.media { background: var(--surface-2); display: flex; align-items: center; gap: 8px; }

/* PREMIUM */
.premium-section { padding: 80px 0; }
.premium-card {
  background: linear-gradient(135deg, #1a2236 0%, #0f1827 100%);
  border: 1px solid rgba(255,200,50,0.2);
  border-radius: 24px; padding: 52px;
  position: relative; overflow: hidden;
}
.premium-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,50,0.12), transparent 70%);
}
.premium-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,200,50,0.12); border: 1px solid rgba(255,200,50,0.25);
  color: #ffc832; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.premium-desc { color: var(--muted); font-size: 0.95rem; margin-top: 10px; line-height: 1.7; }
.premium-features { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.pf-item { display: flex; align-items: flex-start; gap: 14px; }
.pf-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,200,50,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.pf-text strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.pf-text span { color: var(--muted); font-size: 0.83rem; }

.premium-visual { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.premium-badge-card {
  background: rgba(255,200,50,0.06); border: 1px solid rgba(255,200,50,0.15);
  border-radius: 16px; padding: 20px; text-align: center; flex: 1; min-width: 130px;
}
.pbc-emoji { font-size: 2rem; margin-bottom: 6px; }
.pbc-val { font-family: 'Syne', sans-serif; font-size: 1.3rem; color: #ffc832; display: block; }
.premium-badge-card small { color: var(--muted); font-size: 0.78rem; display: block; margin-top: 6px; }
.pbc-wide { flex-basis: 100%; }
.emoji-row { font-size: 1.3rem; margin-bottom: 6px; }

/* SAFETY */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.safety-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.safety-icon { font-size: 2rem; margin-bottom: 12px; }
.safety-card h4 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.safety-card p { color: var(--muted); font-size: 0.83rem; line-height: 1.6; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 36px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.82rem; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 8px; }
  .phone-carousel { width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b1, .b2, .b3, .b4, .b5 { grid-column: span 1; }
  .premium-grid { grid-template-columns: 1fr; }
  .premium-card { padding: 32px 24px; }
  .safety-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 44px; }
  .stats-row { flex-wrap: wrap; gap: 16px; }
  .safety-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
