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

:root {
  --bg: #0e1621;
  --bg2: #17212b;
  --bg3: #1e2c3a;
  --accent: #2b9af3;
  --accent-hover: #1a8de0;
  --text: #e8f0f7;
  --text-muted: #7d9ab5;
  --border: #2a3a4a;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(14,22,33,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.nav-brand i { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: 20px; font-weight: 600;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--accent-hover) !important; }

/* HERO */
.hero {
  min-height: 100vh; padding: 100px 5% 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  background: radial-gradient(ellipse at 70% 50%, rgba(43,154,243,0.08) 0%, transparent 60%);
}
.hero-content { max-width: 520px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 32px;
  border-radius: 28px; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--accent); color: var(--accent); padding: 12px 30px;
  border-radius: 28px; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: all .2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* PHONE MOCKUP */
.hero-visual { flex-shrink: 0; }
.phone-mockup {
  width: 280px; height: 520px;
  background: var(--bg2);
  border-radius: 36px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(43,154,243,0.1);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.phone-screen { height: 100%; display: flex; flex-direction: column; }
.mock-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.mock-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.mock-info { display: flex; flex-direction: column; }
.mock-info span { font-size: 0.9rem; font-weight: 600; }
.mock-info small { font-size: 0.7rem; color: #4caf50; }
.mock-messages { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mock-msg {
  max-width: 75%; padding: 8px 12px; border-radius: 14px;
  font-size: 0.78rem; line-height: 1.4;
}
.mock-msg.received { background: var(--bg3); align-self: flex-start; border-bottom-left-radius: 4px; }
.mock-msg.sent { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mock-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg3);
  border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.mock-input i { color: var(--accent); }

/* FEATURES */
.features { padding: 80px 5%; background: var(--bg2); }
.features h2 { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(43,154,243,0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ABOUT */
.about {
  padding: 80px 5%;
  background: radial-gradient(ellipse at 30% 50%, rgba(43,154,243,0.07) 0%, transparent 60%);
  text-align: center;
}
.about-content { max-width: 600px; margin: 0 auto; }
.about h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

/* FOOTER */
.footer {
  padding: 14px 5%; background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}
.footer p { color: var(--text-muted); font-size: 0.82rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.footer p { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 90px; }
  .hero-btns { justify-content: center; }
  .phone-mockup { width: 240px; height: 440px; }
}

/* ── HAMBURGER ───────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.3rem; cursor: pointer; padding: 6px;
}

@media (max-width: 768px) {
  /* NAV */
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(14,22,33,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 5% 24px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; margin-top: 12px; text-align: center; }
  .btn-nav {
    border-radius: 20px !important;
    padding: 10px 28px !important;
    width: auto !important;
    display: inline-block !important;
    align-self: center !important;
  }

  /* HERO */
  .hero {
    flex-direction: column; text-align: center;
    padding: 90px 5% 48px; gap: 32px;
  }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-btns { justify-content: center; flex-direction: column; align-items: center; gap: 12px; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; max-width: 280px; text-align: center; }
  .phone-mockup { width: 220px; height: 400px; }

  /* FEATURES */
  .features { padding: 56px 5%; }
  .features h2 { font-size: 1.6rem; margin-bottom: 32px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ABOUT */
  .about { padding: 56px 5%; }
  .about h2 { font-size: 1.6rem; }
  .about p { font-size: 0.95rem; }
  .about-heartspace { flex-direction: column; }

  /* FOOTER */
  .footer { gap: 10px; padding: 16px 5%; }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.9rem; }
  .phone-mockup { width: 190px; height: 360px; }
}

/* ── LOGO IMAGE ──────────────────────────────────────────────────────────── */
.nav-logo    { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.footer-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; vertical-align: middle; }

/* ── HEARTSPACE FEATURE CARD HIGHLIGHT ───────────────────────────────────── */
.feature-card--highlight {
  border-color: #eb459e;
  background: linear-gradient(135deg, rgba(235,69,158,0.08) 0%, var(--bg3) 60%);
  position: relative;
  overflow: hidden;
}
.feature-card--highlight::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(235,69,158,0.12), transparent 60%);
  pointer-events: none;
}
.feature-card--highlight:hover {
  border-color: #eb459e;
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(235,69,158,0.2);
}
.feature-card--highlight h3 { color: #eb459e; }

.feature-icon--heartspace {
  background: rgba(235,69,158,0.18);
  display: flex; align-items: center; justify-content: center;
}

.feature-badge {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #eb459e; color: #fff;
  border-radius: 6px; padding: 2px 6px;
  vertical-align: middle; margin-left: 6px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(235,69,158,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(235,69,158,0); }
}

/* ── ABOUT HEARTSPACE BLOCK ──────────────────────────────────────────────── */
.about-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.about-content > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }

.about-heartspace {
  display: flex; align-items: flex-start; gap: 16px; text-align: left;
  background: rgba(235,69,158,0.07);
  border: 1px solid rgba(235,69,158,0.25);
  border-radius: 14px; padding: 20px 22px;
  margin-bottom: 32px;
}
.about-hs-icon { flex-shrink: 0; margin-top: 2px; }
.about-hs-text h3 {
  font-size: 1rem; font-weight: 800; color: #eb459e; margin-bottom: 8px;
}
.about-hs-text p {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0;
}
.about-hs-text strong { color: var(--text); font-weight: 700; }



/* ── SECURE BY DESIGN HIGHLIGHT ──────────────────────────────────────────── */
.feature-card--secure {
  border-color: #39ff8a;
  background: linear-gradient(135deg, rgba(57,255,138,0.07) 0%, var(--bg3) 60%);
  position: relative; overflow: hidden;
}
.feature-card--secure::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(57,255,138,0.1), transparent 60%);
  pointer-events: none;
}
.feature-card--secure:hover {
  border-color: #39ff8a;
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(57,255,138,0.18);
}
.feature-card--secure h3 { color: #39ff8a; }

.feature-icon--secure {
  background: rgba(57,255,138,0.15);
  color: #39ff8a;
}
