/* ==============================
   CSS Variables & Reset
   ============================== */
:root {
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --purple: #7C3AED;
  --purple-light: #8B5CF6;
  --teal: #0EA5E9;
  --orange: #F97316;
  --gradient: linear-gradient(135deg, #3B82F6, #7C3AED);
  --gradient-soft: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  --bg: #F0F6FF;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-medium: #475569;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(59,130,246,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(59,130,246,0.20), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(59,130,246,0.25), 0 8px 24px rgba(0,0,0,0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ==============================
   Utility
   ============================== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 17px;
  color: var(--text-medium);
  max-width: 500px;
  margin: 0 auto;
}

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 24px rgba(59,130,246,0.38);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.48);
}

.btn-outline {
  background: rgba(255,255,255,0.85);
  color: var(--blue-dark);
  border: 1.5px solid rgba(59,130,246,0.35);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: white;
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-large { padding: 16px 40px; font-size: 16px; margin-top: 28px; }

/* ==============================
   Navbar
   ============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(240, 246, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.logo-svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-dark);
  background: white;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==============================
   Hero
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 28px 80px;
  overflow: hidden;
}

/* Background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 70%);
  bottom: 0px; right: 200px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(14,165,233,0.10) 0%, transparent 70%);
  top: 50%; left: -80px;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid rgba(59,130,246,0.2);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--gradient);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-text h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 420px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  width: fit-content;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-num {
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-star { font-size: 16px; }
.stat-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Meta info */
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}
.meta-item svg { opacity: 0.7; flex-shrink: 0; }
.meta-email:hover { color: var(--blue-dark); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Phones stack ===== */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phones-stack {
  position: relative;
  width: 340px;
  height: 560px;
}

/* Front phone */
.phone-card {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease;
}

.phone-front {
  width: 240px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 32px 80px rgba(59,130,246,0.30), 0 8px 24px rgba(0,0,0,0.12);
}
.phone-front img { width: 100%; }

/* Back phone */
.phone-back {
  width: 200px;
  top: 0;
  right: 0;
  z-index: 1;
  transform: rotate(6deg);
  box-shadow: 0 20px 60px rgba(124,58,237,0.25), 0 4px 16px rgba(0,0,0,0.10);
}
.phone-back img { width: 100%; }

.phones-stack:hover .phone-front { transform: translateX(-50%) translateY(-8px); }
.phones-stack:hover .phone-back  { transform: rotate(8deg) translateY(-6px); }

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 0 8px 32px rgba(59,130,246,0.18), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 3;
  white-space: nowrap;
  border: 1.5px solid rgba(59,130,246,0.12);
  animation: badgeFloat 4s ease-in-out infinite;
}
.float-badge-top {
  top: 40px;
  left: -10px;
  animation-delay: 0s;
}
.float-badge-bottom {
  bottom: 50px;
  right: -20px;
  animation-delay: -2s;
}
.fbadge-icon { font-size: 16px; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ==============================
   Features
   ============================== */
.features {
  padding: 110px 28px;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: white;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature-icon svg { width: 26px; height: 26px; }

.icon-blue   { background: #EFF6FF; color: var(--blue); }
.icon-purple { background: #F5F3FF; color: var(--purple); }
.icon-teal   { background: #F0F9FF; color: var(--teal); }
.icon-orange { background: #FFF7ED; color: var(--orange); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: 13px;
  color: var(--text-medium);
  font-weight: 600;
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--gradient);
  border-radius: 50%;
}

/* ==============================
   Gallery
   ============================== */
.gallery {
  padding: 110px 28px;
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, transparent 100%);
  padding: 24px 16px 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay span {
  display: block;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ==============================
   Contact
   ============================== */
.contact {
  padding: 110px 28px;
  background: var(--bg-white);
}

.contact-card {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, #F0F6FF, #F5F0FF);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 28px;
  padding: 60px 52px;
  box-shadow: var(--shadow-lg);
}
.contact-card .section-tag { margin-bottom: 16px; }
.contact-card h2 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.contact-card > p {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--bg); }

.contact-icon-wrap {
  width: 42px; height: 42px;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-dark);
  border: 1px solid rgba(59,130,246,0.12);
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.contact-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.contact-link:hover { color: var(--blue-dark); text-decoration: underline; }

/* ==============================
   Footer
   ============================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.5);
  padding: 52px 28px;
  text-align: center;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-domain { font-size: 14px; margin-bottom: 6px; opacity: 0.4; }
.footer-copy { font-size: 13px; }

/* ==============================
   Responsive — Tablet (≤960px)
   ============================== */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }
  .hero-sub { max-width: 100%; }
  .hero-meta { align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto 28px; }

  .hero-image { order: -1; }

  .phones-stack { width: 300px; height: 480px; }
  .phone-front  { width: 210px; }
  .phone-back   { width: 175px; }

  .features-grid { grid-template-columns: 1fr; gap: 20px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ==============================
   Responsive — Mobile (≤600px)
   ============================== */
@media (max-width: 600px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open  { display: flex; }
  .nav-links a { padding: 11px 16px; border-radius: var(--radius-sm); font-size: 15px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 60px; }
  .hero-text h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }

  .phones-stack { width: 260px; height: 420px; }
  .phone-front  { width: 180px; }
  .phone-back   { width: 150px; right: -10px; }

  .float-badge { padding: 8px 14px; font-size: 12px; }
  .float-badge-top  { left: -5px; }
  .float-badge-bottom { right: -10px; }

  .hero-stats { padding: 14px 16px; }
  .stat-item { padding: 0 12px; }
  .stat-num { font-size: 18px; }

  .features, .gallery, .contact { padding: 72px 20px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .contact-card { padding: 36px 24px; }
  .contact-card h2 { font-size: 28px; }
  .btn-large { width: 100%; justify-content: center; }
}
