:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4fa;
  --text: #17324d;
  --muted: #60758c;
  --line: #dbe6f2;
  --primary: #2a6df4;
  --primary-dark: #1d57ca;
  --accent: #11b88e;
  --shadow: 0 20px 45px rgba(19, 50, 77, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg,#ffffff,var(--bg));
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ================= NAVBAR ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 30px rgba(19, 50, 77, 0.10);
  border-bottom: 1px solid rgba(219,230,242,0.8);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #ffffff;
  transition: color 0.25s ease;
}

.site-header.scrolled .brand {
  color: var(--text);
}

.brand img,
.footer-brand img {
  width: 90px;
  height: 70px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.site-header.scrolled .nav-links {
  color: var(--muted);
}

.site-header.scrolled .nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ================= HERO ================= */

.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url("../img/header.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0a1a33;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-overlay-content {
  padding-top: 140px;
  padding-bottom: 70px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin: 18px 0 16px;
  color: #ffffff;
}

.hero-copy p {
  color: rgba(255,255,255,0.92);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 700px;
}

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

.stats-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px;
}

.hero-stat-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-stat-card strong {
  display: block;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-stat-card span {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}

.hero-visual {
  display: none;
}

/* ================= FLASH ================= */

.flash-wrap { padding-top: 18px; }
.flash {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}
.flash-success { background: #e8f8f3; color: #0e8c6a; }
.flash-error { background: #fff2f0; color: #cf4a3d; }

/* ================= SECTIONS ================= */

.section { padding: 92px 0; }
.section-soft { background: var(--surface-soft); }

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.kicker, .plan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42,109,244,0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.card-grid.three, .timeline-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card, .stack-card, .timeline-card, .plan-card, .contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.info-card { padding: 26px; }
.info-card h3 { margin: 16px 0 10px; font-size: 1.2rem; }
.info-card p { color: var(--muted); line-height: 1.7; margin: 0; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(42,109,244,0.1);
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.stack-card { padding: 22px; }
.stack-card h3 { margin: 0 0 8px; }
.stack-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.split-visual {
  position: relative;
  min-height: 460px;
}

.screen-mock, .phone-frame, .device-placeholder, .gallery-item {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #edf4fb, #ffffff);
  border: 1px dashed #b8cae0;
  color: #7f93aa;
  display: grid;
  place-items: center;
  text-align: center;
}

.screen-mock.large-mock {
  position: absolute;
  inset: 0 40px 70px 0;
  padding: 30px;
}
.screen-mock.small-mock {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  min-height: 220px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(17,184,142,0.10), rgba(42,109,244,0.10));
}

.timeline-grid { grid-template-columns: repeat(4, 1fr); }
.timeline-card { padding: 24px; }
.timeline-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-grid, .kit-grid, .contact-grid, .footer-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.app-grid, .kit-grid, .contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.phone-frame {
  min-height: 600px;
  padding: 30px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(42,109,244,0.10), rgba(255,255,255,0.95));
}

.app-copy h2, .kit-copy h2, .contact-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 14px;
}

.app-copy p, .kit-copy p, .contact-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 0.8rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(42,109,244,0.08), rgba(17,184,142,0.08));
  border-color: rgba(42,109,244,0.25);
}

.plan-card h3 { font-size: 1.4rem; margin: 16px 0 12px; }

.price-line {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.plan-card ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.plan-note {
  margin: 12px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.device-placeholder {
  min-height: 430px;
  padding: 28px;
  font-weight: 700;
}

.gallery-grid { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  min-height: 250px;
  padding: 26px;
  font-weight: 700;
}

.contact-card { padding: 30px; }
.contact-card h3 { margin-top: 0; }

.form-grid {
  display: grid;
  gap: 14px;
}

input, textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfdff;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  margin: 14px 0 0;
}

.site-footer {
  padding: 36px 0 50px;
  background: #10253a;
  color: rgba(255,255,255,0.82);
}

.footer-grid {
  grid-template-columns: 1.1fr .8fr .9fr;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.site-footer h4 {
  margin-top: 0;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .nav-links { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
  }

  .site-header.scrolled .menu-toggle {
    background: rgba(42,109,244,0.08);
    color: var(--text);
    border-color: var(--line);
  }

  .nav-shell.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(10, 24, 40, 0.92);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .app-grid,
  .kit-grid,
  .contact-grid,
  .footer-grid,
  .card-grid.three,
  .timeline-grid,
  .gallery-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .hero-overlay-content {
    padding-top: 150px;
  }

  .split-visual,
  .hero-visual {
    min-height: 320px;
  }

  .phone-frame {
    min-height: 420px;
  }
}