/* ===========================
   FRIEND & FAMILY TRACKER
   Main Stylesheet
=========================== */

:root {
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --accent: #f59e0b;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.15; }

a { text-decoration: none; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-size: 1rem;
  color: var(--white);
}
.logo-icon { font-size: 1.4rem; }
.logo strong { color: var(--teal-light); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--teal); color: var(--white) !important;
  padding: 8px 20px; border-radius: 50px;
  font-weight: 600; font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--teal-light) !important; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  gap: 60px;
  padding: 100px 24px 80px;
  max-width: 1120px; margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 50%, rgba(13,148,136,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 50%),
              var(--navy);
}
.hero-content { flex: 1; }
.badge {
  display: inline-block;
  background: rgba(13,148,136,0.18);
  border: 1px solid rgba(20,184,166,0.35);
  color: var(--teal-light);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 24px;
}
h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 800; margin-bottom: 20px; }
h1 em { font-style: normal; color: var(--teal-light); }
.hero-sub {
  font-size: 1.1rem; color: #94a3b8;
  max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px; border-radius: 50px;
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13,148,136,0.35);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13,148,136,0.5);
}
.btn-ghost {
  color: var(--muted);
  padding: 14px 28px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

.trust-bar { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-bar span { font-size: 0.82rem; color: #64748b; }

/* ===== PHONE MOCKUP ===== */
.hero-visual { flex: 0 0 auto; display: flex; justify-content: center; }
.phone-mockup {
  width: 280px; height: 560px;
  background: #1e293b;
  border-radius: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,148,136,0.2);
  position: relative; overflow: hidden;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #0f172a; border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-screen {
  padding: 36px 16px 16px;
  height: 100%; display: flex; flex-direction: column; gap: 12px;
}
.mockup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px;
}
.mockup-title { font-family: 'Sora', sans-serif; font-size: 0.95rem; font-weight: 700; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }

.mini-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; flex: 1;
}
.mini-cell {
  background: rgba(255,255,255,0.05);
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all 0.2s;
}
.mini-cell.active { border-color: rgba(20,184,166,0.3); }
.mini-cell.empty { opacity: 0.4; }
.mini-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem;
  color: #0f172a;
}
.mini-name { font-size: 0.6rem; font-weight: 600; color: var(--white); }
.mini-loc { font-size: 0.52rem; color: var(--teal-light); }
.mini-plus {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #475569;
}
.mockup-actions { display: flex; gap: 8px; }
.mock-btn {
  flex: 1; padding: 8px; border-radius: 10px;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(20,184,166,0.3);
  color: var(--teal-light);
  font-size: 0.7rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* ===== SECTIONS ===== */
.section-label {
  display: inline-block;
  color: var(--teal-light); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; margin-bottom: 48px;
}

/* ===== FEATURES (STEPS) ===== */
.features {
  padding: 100px 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.step {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 280px; text-align: center;
  position: relative;
}
.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white);
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.75rem;
  padding: 3px 12px; border-radius: 50px;
}
.step-icon { font-size: 2.4rem; margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; }
.step-arrow {
  font-size: 1.8rem; color: var(--teal);
  display: flex; align-items: center; padding: 0 12px;
  margin-top: 36px;
}

/* ===== FEATURE LIST ===== */
.feature-list { padding: 100px 0; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(20,184,166,0.35);
  transform: translateY(-4px);
}
.feat-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; }

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  text-align: center;
  background: rgba(13,148,136,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.price-card {
  background: var(--navy-mid);
  border: 2px solid var(--teal);
  border-radius: 24px;
  padding: 52px 48px;
  max-width: 480px; margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(13,148,136,0.15);
}
.price-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0f172a;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.78rem;
  padding: 5px 20px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.price-amount {
  font-family: 'Sora', sans-serif; font-size: 4rem;
  font-weight: 800; color: var(--teal-light);
  margin-bottom: 4px;
}
.price-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.price-features {
  list-style: none; text-align: left;
  margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px;
}
.price-features li { font-size: 0.95rem; color: #cbd5e1; }
.btn-large { padding: 18px 48px; font-size: 1.1rem; width: 100%; text-align: center; }
.price-note { margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.btn-access {
  display: block; margin-top: 14px;
  padding: 14px 32px; border-radius: 50px;
  border: 1px solid rgba(20,184,166,0.4);
  color: var(--teal-light);
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.btn-access:hover {
  background: rgba(13,148,136,0.15);
  border-color: var(--teal-light);
}

/* ===== BLOG TEASER ===== */
.blog-teaser {
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.blog-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 36px;
}
.blog-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px; display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: rgba(20,184,166,0.35);
  transform: translateY(-4px);
}
.blog-card-tag {
  display: inline-block;
  background: rgba(13,148,136,0.15);
  color: var(--teal-light);
  padding: 3px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.blog-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.87rem; color: #94a3b8; line-height: 1.6; margin-bottom: 16px; }
.read-more { font-size: 0.85rem; color: var(--teal-light); font-weight: 600; }
.center-btn { display: block; width: fit-content; margin: 0 auto; }

/* ===== FOOTER ===== */
.footer {
  background: #060d1a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px; margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand strong { font-family: 'Sora', sans-serif; font-size: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; }
.footer-bottom p { font-size: 0.82rem; color: #475569; }

/* ===== APP PAGE ===== */
.app-header {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.app-title { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; }
.app-body { padding: 32px 24px; max-width: 900px; margin: 0 auto; }

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.tracker-cell {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 180px; justify-content: center;
  position: relative;
}
.tracker-cell.filled { border-color: rgba(20,184,166,0.3); }
.tracker-cell.filled:hover {
  border-color: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.2);
}
.tracker-cell.empty {
  border-style: dashed; opacity: 0.5;
}
.tracker-cell.empty:hover { opacity: 0.8; border-color: rgba(255,255,255,0.25); }

.cell-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: #0f172a;
}
.cell-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem; }
.cell-location { font-size: 0.78rem; color: var(--teal-light); }
.cell-status {
  position: absolute; top: 12px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.cell-status.pending { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.cell-actions {
  display: flex; gap: 8px; width: 100%;
}
.cell-btn {
  flex: 1; padding: 7px; border-radius: 8px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(20,184,166,0.25);
  color: var(--teal-light);
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.cell-btn:hover { background: rgba(13,148,136,0.3); }
.cell-plus { font-size: 2rem; color: #475569; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 40px;
  max-width: 420px; width: 90%;
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.modal h3 { font-size: 1.3rem; margin-bottom: 20px; }
.modal label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.modal input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; margin-bottom: 16px;
}
.modal input:focus { border-color: var(--teal); }
.modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.modal-actions .btn-primary { flex: 1; text-align: center; padding: 12px; }
.btn-cancel {
  flex: 1; padding: 12px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted); font-size: 0.95rem; cursor: pointer;
  background: none; font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}
.btn-cancel:hover { color: var(--white); }

/* ===== BLOG ===== */
.blog-hero {
  padding: 120px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.blog-hero p { color: var(--muted); font-size: 1rem; }

.blog-list { padding: 60px 0; }
.blog-list-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 120px 24px 80px;
}
.article-body h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 8px; }
.article-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; }
.article-body h2 { font-size: 1.4rem; margin: 40px 0 14px; color: var(--teal-light); }
.article-body p { color: #cbd5e1; line-height: 1.8; margin-bottom: 20px; font-size: 1rem; }
.article-body ul { padding-left: 20px; color: #cbd5e1; line-height: 1.9; margin-bottom: 20px; }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--teal-light); font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .trust-bar { justify-content: center; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 4px 0; }
  .price-card { padding: 40px 24px; }
  .tracker-grid { gap: 12px; }
  .tracker-cell { min-height: 140px; padding: 16px 10px; }
}
