/* ===== PesZone Website — Design System ===== */

/* Kallisto Font Family */
@font-face {
  font-family: 'Kallisto';
  src: url('assets/Kallisto-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kallisto';
  src: url('assets/Kallisto-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kallisto';
  src: url('assets/Kallisto-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kallisto';
  src: url('assets/Kallisto-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1E4FD8;
  --brand-light: #3B6EFF;
  --brand-dark: #1639A0;
  --brand-glow: rgba(30, 79, 216, 0.3);
  --brand-tint: #E1E8F5;
  --accent-yellow: #F5D800;
  --accent-yellow-glow: rgba(245, 216, 0, 0.3);
  --bg-primary: #0A0E1A;
  --bg-secondary: #111827;
  --bg-card: #1C1F2E;
  --bg-card-hover: #252838;
  --text-primary: #F0F0F5;
  --text-secondary: #8891A8;
  --text-muted: #666677;
  --border-color: rgba(255,255,255,0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;
  --shadow-glow: 0 0 40px var(--brand-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Kallisto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
  background: rgba(30,79,216,0.08); padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(30,79,216,0.15);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-yellow), var(--brand-light), var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border-color); padding: 12px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo .logo-img {
  width: auto; height: 44px; max-width: 160px;
  object-fit: contain; display: block;
}
.footer-logo { display: inline-flex; margin-bottom: 4px; }
.logo-img-footer { height: 56px; max-width: 200px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--brand); transition: var(--transition); border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--brand) !important; color: white !important; padding: 10px 24px;
  border-radius: var(--radius-pill); font-weight: 600 !important; font-size: 0.85rem !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--brand-light) !important; transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.nav-cta::after { display: none !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(30,79,216,0.08), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(30,79,216,0.04), transparent);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(30,79,216,0.1); border: 1px solid rgba(30,79,216,0.2);
  border-radius: var(--radius-pill); font-size: 0.75rem; color: var(--brand-light);
  font-weight: 600; margin-bottom: 28px; letter-spacing: 0.5px;
}
.hero-badge .pulse { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.08;
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--brand); }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: var(--brand); color: white;
  border: none; border-radius: var(--radius-pill); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary:hover { background: var(--brand-light); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-color); border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 500; cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: rgba(30,79,216,0.05); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.hero-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--brand-light); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-phone-img {
  width: 100%; max-width: 500px; border-radius: var(--radius-lg);
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(30,79,216,0.15));
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-glow {
  position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  border-radius: 50%; filter: blur(60px); z-index: -1;
}

/* ===== How It Works ===== */
.how-it-works { background: var(--bg-secondary); }
.how-it-works .container > .section-title,
.how-it-works .container > .section-label,
.how-it-works .container > .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px 24px;
  text-align: center; position: relative; transition: var(--transition);
}
.step-card:hover { border-color: rgba(30,79,216,0.3); transform: translateY(-4px); background: var(--bg-card-hover); }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: white; margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; margin-top: 4px; }
.step-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
.step-connector {
  position: absolute; top: 48px; right: -12px; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--brand-glow), transparent);
}
.step-card:last-child .step-connector { display: none; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px; transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light)); opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(30,79,216,0.25); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(30,79,216,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--brand-light);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Payments ===== */
.payments { background: var(--bg-secondary); }
.payments .container > .section-title,
.payments .container > .section-label,
.payments .container > .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.payments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.payment-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px; transition: var(--transition);
}
.payment-card:hover { border-color: rgba(30,79,216,0.25); transform: translateY(-4px); }
.payment-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--brand-light); }
.payment-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.payments-note {
  margin-top: 28px; text-align: center; font-size: 0.85rem; color: var(--text-muted);
}

/* ===== App Showcase ===== */
.app-showcase { background: var(--bg-primary); overflow: hidden; }
.app-showcase .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list {
  margin-top: 32px; display: flex; flex-direction: column; gap: 16px; list-style: none;
}
.check-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-secondary); font-size: 0.95rem;
}
.check-list li svg { color: var(--brand-light); flex-shrink: 0; }
.showcase-img {
  width: 100%; max-width: 540px; border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
}

/* ===== Pricing ===== */
.pricing-highlight {
  max-width: 700px; margin: 50px auto 0; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 48px;
}
.pricing-value { font-size: 4rem; font-weight: 900; color: var(--brand-light); }
.pricing-label { font-size: 1.1rem; color: var(--text-secondary); margin-top: 8px; }
.pricing-details {
  margin-top: 28px; display: flex; flex-direction: column; gap: 12px;
}
.pricing-details li {
  list-style: none; display: flex; align-items: center; gap: 10px; justify-content: center;
  font-size: 0.95rem; color: var(--text-secondary);
}
.pricing-details li svg { color: var(--brand); flex-shrink: 0; }
.pricing .container > .section-title,
.pricing .container > .section-label,
.pricing .container > .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== About ===== */
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 50px;
}
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; font-size: 1rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.value-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-color);
}
.value-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(30,79,216,0.1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand-light);
}
.value-icon svg { width: 18px; height: 18px; }
.value-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: 0.8rem; color: var(--text-muted); }
.about-image-side { display: flex; justify-content: center; }
.about-image-side img { width: 100%; max-width: 460px; border-radius: var(--radius-lg); }

/* ===== FAQ ===== */
.faq { background: var(--bg-secondary); }
.faq .container > .section-title,
.faq .container > .section-label,
.faq .container > .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.faq-grid { max-width: 760px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: rgba(30,79,216,0.25); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; gap: 16px;
  font-weight: 600; font-size: 0.95rem; background: none; border: none;
  color: var(--text-primary); width: 100%; text-align: left;
}
.faq-question:hover { color: var(--brand-light); }
.faq-chevron { transition: var(--transition); flex-shrink: 0; color: var(--text-muted); }
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }

/* ===== Contact / CTA ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.cta-box {
  background: linear-gradient(135deg, rgba(30,79,216,0.12), rgba(30,79,216,0.03));
  border: 1px solid rgba(30,79,216,0.2); border-radius: var(--radius-xl);
  padding: 64px 48px; max-width: 700px; margin: 0 auto;
}
.cta-box .section-title { margin-bottom: 16px; }
.cta-box .section-subtitle { margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact { background: var(--bg-secondary); }
.contact .container > .section-title,
.contact .container > .section-label,
.contact .container > .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 36px; text-align: center; transition: var(--transition);
}
.contact-card:hover { border-color: rgba(30,79,216,0.25); transform: translateY(-4px); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(30,79,216,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--brand-light);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.contact-card a { color: var(--brand); text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 30px; border-top: 1px solid var(--border-color); background: var(--bg-primary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text-secondary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; transition: var(--transition);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
}
.footer-socials a:hover { border-color: var(--brand); color: var(--brand); background: rgba(30,79,216,0.05); }

/* ===== Animations ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1.3rem; font-weight: 600; color: var(--text-primary);
  text-decoration: none; transition: var(--transition);
}
.mobile-nav a:hover { color: var(--brand); }
.mobile-nav .close-btn {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: var(--text-primary); font-size: 2rem; cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-phone-img { max-width: 360px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .payments-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .app-showcase .container { grid-template-columns: 1fr; text-align: center; }
  .app-showcase .section-subtitle { margin-left: auto; margin-right: auto; }
  .showcase-img { margin: 0 auto; }
  .about-content { grid-template-columns: 1fr; }
  .about-image-side { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .payments-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-socials { justify-content: center; }
  .cta-box { padding: 40px 24px; }
  .pricing-highlight { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
