/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pe-blue: #0033A7;
  --pe-blue-dark: #002277;
  --pe-blue-light: #3F66BF;
  --pe-blue-bg: #E2EBFF;
  --pe-blue-glow: rgba(0, 51, 167, 0.20);
  --pe-green: #1CBB71;
  --pe-green-dark: #15A060;
  --pe-orange: #FF9A05;
  --pe-yellow: #FFDD2D;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--pe-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--pe-blue-light); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pe-blue);
  background: var(--pe-blue-bg);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 640px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-900);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--slate-900); }

.nav-cta {
  background: var(--slate-900);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  gap: 5px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--pe-blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 51, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pe-blue-bg);
  border: 1px solid rgba(0, 51, 167, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pe-blue);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--pe-blue), var(--pe-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-900);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--pe-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--pe-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--pe-blue-glow);
}

.btn-secondary {
  background: #fff;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}
.btn-secondary:hover {
  border-color: var(--slate-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-green {
  background: var(--pe-blue);
  color: #fff;
}
.btn-green:hover {
  background: var(--pe-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--pe-blue-glow);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 280px;
  height: 280px;
  border-radius: 48px;
  background: linear-gradient(135deg, var(--pe-blue), var(--pe-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px var(--pe-blue-glow);
  position: relative;
}

.hero-logo img {
  width: 180px;
  height: 180px;
  border-radius: 36px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  margin-left: 15px;
  margin-bottom: 5px;
}

.hero-logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 56px;
  border: 2px solid rgba(0, 51, 167, 0.15);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.5; }
}

.hero-stat {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.hero-stat .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pe-green);
}

.hero-stat-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}
.hero-stat-2 {
  bottom: 15%;
  left: -10%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--pe-blue);
  box-shadow: 0 8px 32px rgba(0, 51, 167, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pe-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--pe-blue);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ===== Steps / How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--pe-blue-bg);
  border: 1px solid rgba(0, 51, 167, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 51, 167, 0.10);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pe-blue);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.step-arrow {
  color: var(--pe-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Screenshots ===== */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.screenshot-card {
  display: flex;
  padding: 20px;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.screenshot-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--slate-100);
  border-radius: 8px;
}

.screenshot-card .caption {
  padding: 20px 0px 0px;
}

.screenshot-card .caption h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.screenshot-card .caption p {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ===== Privacy ===== */
.privacy-box {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.privacy-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--pe-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pe-blue);
}

.privacy-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.privacy-box p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--slate-900);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(28, 187, 113, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  color: #fff;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== Footer ===== */
footer {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 48px 0 24px;
}

footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

footer p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.6;
}

footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

footer a {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 8px;
  transition: color 0.2s;
}
footer a:hover { color: var(--pe-blue); }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.8rem;
  color: var(--slate-400);
  text-align: center;
}

/* ===== Go to Top ===== */
.go-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  color: var(--slate-600);
  z-index: 90;
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.go-to-top:hover {
  background: var(--slate-900);
  color: #fff;
  border-color: var(--slate-900);
  transform: translateY(-2px);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 900px) {
  nav .container {
    height: 56px;
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
    border-radius: 36px;
  }

  .hero-logo img {
    width: 130px;
    height: 130px;
    border-radius: 26px;
  }

  .hero-stat {
    display: none;
  }

  .hero-stats {
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .privacy-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px;
  }

  .privacy-icon {
    margin: 0 auto;
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
