/* Besilon — parent company site. Bold, dark, product-led. */
:root {
  --bg: #06080f;
  --bg-2: #0b0f1a;
  --surface: #111827;
  --surface-2: #161f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --text-muted: #a4adc2;
  --text-faint: #6b7489;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #3b82f6 0%, #14b8a6 55%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.18), rgba(20,184,166,.12) 55%, rgba(139,92,246,.16));
  --radius: 18px;
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* height:auto matters: images carry width/height attributes (to reserve space
   and avoid layout shift), and without it the attribute height (960px) stayed
   fixed while CSS shrank the width, stretching the phone screenshots. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 15, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; border: 0; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(59,130,246,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(20,184,166,.6); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; background: #1d4ed8; top: -220px; left: -160px; }
.hero::after { width: 480px; height: 480px; background: #0f766e; bottom: -240px; right: -120px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 700; margin: 22px 0 22px; max-width: 900px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--text-muted); max-width: 640px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .kicker { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 12px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 18px; margin: 0; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong); margin-bottom: 18px; color: var(--text);
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: 15.5px; }

/* ── Product spotlight ─────────────────────────────────── */
.product {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: 28px; padding: 48px;
  position: relative; overflow: hidden;
}
/* Grid children default to min-width:auto, so the tilted phone mockups forced
   the single mobile column wider than the card and clipped the text. */
.product > * { min-width: 0; }
.product-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.product-badge img { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #0d54ba, #013287); padding: 7px; }
.product-badge span { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; }
.product h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 14px; }
.product p { color: var(--text-muted); font-size: 17.5px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15.5px; }
.checks li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306080f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
/* align-items:center, not the default stretch: stretch made each frame as tall
   as the 480px row, leaving an empty band below the shorter screenshot. */
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; }
.phone {
  width: 230px; border-radius: 30px; border: 6px solid #1f2937; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  align-self: center; background: #1f2937;
}
.phone img { width: 100%; }
.phones .phone:nth-child(1) { transform: rotate(-6deg) translate(40px, 20px); z-index: 1; }
.phones .phone:nth-child(2) { transform: rotate(5deg) translate(-40px, -10px); z-index: 2; }

/* ── Coming soon ───────────────────────────────────────── */
.soon { border-style: dashed; background: transparent; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.35);
  margin-bottom: 14px;
}

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero { padding: 90px 0 50px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px);
  background: #1d4ed8; opacity: .35; top: -300px; left: 50%; transform: translateX(-50%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 18px 0 16px; }

/* ── Features & screens ────────────────────────────────── */
.feature h3 { font-size: 18px; }
.screens { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: 0 0 230px; scroll-snap-align: start; }
.screens img { border-radius: 24px; border: 5px solid #1f2937; }
.screens figcaption { color: var(--text-muted); font-size: 14px; text-align: center; margin-top: 10px; }

/* ── Pricing ───────────────────────────────────────────── */
.price-card { position: relative; }
.price-card.featured { border-color: rgba(20,184,166,.6); box-shadow: 0 30px 60px -30px rgba(20,184,166,.45); }
.price-card .ribbon {
  position: absolute; top: -12px; right: 22px; background: var(--grad); color: #fff; font-size: 12px;
  font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em;
}
.price { font-family: var(--font-display); font-size: 42px; font-weight: 700; margin: 12px 0 2px; letter-spacing: -0.03em; }
.price small { font-size: 16px; color: var(--text-muted); font-weight: 500; font-family: var(--font); }
.price-note { color: var(--text-faint); font-size: 14px; margin-bottom: 20px; }
.price-card .checks { margin-bottom: 0; }
.fine { color: var(--text-faint); font-size: 14px; margin-top: 22px; }

/* ── CTA band ──────────────────────────────────────────── */
.cta {
  text-align: center; border-radius: 28px; padding: 70px 30px; background: var(--grad); position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta .btn-light { background: #fff; color: #0b1220; }
.cta .btn-light:hover { transform: translateY(-2px); }

/* ── About / contact ───────────────────────────────────── */
.values .card h3 { font-size: 19px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-card a.email { font-family: var(--font-display); font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; text-decoration: none; }

/* ── Legal ─────────────────────────────────────────────── */
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--text-muted); }
.legal a { color: var(--teal); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--text-muted); font-size: 15px; max-width: 300px; }
.copyright { color: var(--text-faint); font-size: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ── Motion ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; padding: 34px 26px; }
  .phones { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 22px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 76px 0 64px; }
  .phone { width: 150px; }
  .phones { min-height: 320px; overflow: hidden; }
  .phones .phone:nth-child(1) { transform: rotate(-6deg) translate(26px, 16px); }
  .phones .phone:nth-child(2) { transform: rotate(5deg) translate(-26px, -8px); }
  .footer-grid { grid-template-columns: 1fr; }
}
