:root {
  --primary: #1e4d6b;
  --primary-light: #2b6f8f;
  --accent: #e07b2d;
  --accent-soft: #f4a261;
  --dark: #1a2f3d;
  --text: #3d4543;
  --muted: #6b7280;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #dde4ec;
  --sidebar: #eef3f8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(30, 77, 107, 0.12);
  --shadow-lg: 0 24px 60px rgba(26, 47, 61, 0.18);
  --radius: 14px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Libre Franklin", var(--font-sans);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(221, 228, 236, 0.8);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img.logo { height: 48px; width: auto; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 6px;
}

.header-link:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--sidebar); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 123, 45, 0.28);
}

.btn-primary:hover { background: #c86b22; }

.btn-dark {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 77, 107, 0.24);
}

.btn-dark:hover { background: #173d55; }

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(244, 162, 97, 0.18), transparent 60%),
    linear-gradient(180deg, #f5f7fa 0%, #e8eef4 55%, #ffffff 100%);
  padding: 64px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  color: var(--dark);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 28px;
}

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

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.device-frame {
  background: #0f2430;
  border-radius: 18px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.device-dots {
  display: flex;
  gap: 6px;
  padding: 4px 8px 10px;
}

.device-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d5a68;
}

.device-frame img {
  border-radius: 10px;
  width: 100%;
  cursor: zoom-in;
  background: #fff;
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--dark);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

/* Dashboard cards */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card .shot {
  background: #dce5ed;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.feature-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-card .body { padding: 22px 22px 24px; }
.feature-card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--dark);
}
.feature-card p { margin: 0 0 12px; color: var(--muted); }
.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.feature-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--dark);
}
.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Phones */
.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.phone-col { text-align: center; }

.phone {
  width: min(280px, 100%);
  margin: 0 auto 18px;
  background: #11181f;
  border-radius: 36px;
  padding: 12px 10px 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone::before {
  content: "";
  display: block;
  width: 92px;
  height: 18px;
  background: #11181f;
  border-radius: 0 0 14px 14px;
  margin: -12px auto 8px;
}

.phone img {
  border-radius: 22px;
  width: 100%;
  cursor: zoom-in;
}

.phone-col h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  color: var(--dark);
}

.phone-col p {
  margin: 0 auto;
  max-width: 280px;
  color: var(--muted);
  font-size: 0.96rem;
}

.coming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.coming-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
}

.coming-card h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.coming-card p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Sales blocks */
.sales-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.sales-block:last-child { margin-bottom: 0; }

.sales-block.reverse { grid-template-columns: 0.85fr 1.15fr; }
.sales-block.reverse .copy { order: 1; }
.sales-block.reverse .visual { order: 2; }

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 10px;
}

.sales-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--dark);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.sales-block .copy p { color: var(--muted); margin: 0 0 16px; }

.sales-block .visual {
  background: #0f2430;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.sales-block .visual img {
  border-radius: 10px;
  cursor: zoom-in;
}

/* Stats */
.stats {
  background: var(--dark);
  color: #fff;
  padding: 42px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: #b7c5cf;
  font-size: 0.92rem;
}

.stats .edit-hint {
  text-align: center;
  margin: 18px 0 0;
  color: #8ea0ac;
  font-size: 0.8rem;
}

/* CTA */
.final-cta {
  padding: 96px 0;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(224, 123, 45, 0.16), transparent 55%),
    linear-gradient(180deg, #16394f, #1e4d6b 70%);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.final-cta p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: #d5e2ea;
  font-size: 1.1rem;
}

.final-cta .btn { min-width: 220px; }
.final-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  margin-left: 10px;
}
.final-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Footer */
.site-footer {
  background: #122632;
  color: #9eb0bb;
  padding: 36px 0 28px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.footer-brand img { height: 28px; width: 28px; border-radius: 7px; }

.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1400px, 96vw);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 28, 36, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-card h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  color: var(--dark);
}

.modal-card p { margin: 0 0 18px; color: var(--muted); }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.field input,
.field select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-actions .btn { flex: 1; }

.form-ok {
  display: none;
  background: #eef8f1;
  border: 1px solid #c6e6d0;
  color: #1b7f4a;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .dash-grid,
  .coming-grid,
  .phones,
  .sales-block,
  .sales-block.reverse,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .sales-block.reverse .copy,
  .sales-block.reverse .visual { order: unset; }
  .hero { padding-top: 36px; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .header-cta .btn-ghost,
  .header-link { display: none; }
  .final-cta .btn-ghost { margin: 10px 0 0; }
  .hero h1 { font-size: 2rem; }
  .btn-lg { width: 100%; }
}
