:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --ink: #0b1020;
  --ink-2: #3b4459;
  --muted: #6b7489;
  --line: #e4e8f0;
  --primary: #e5322d;
  --primary-2: #ff6a3d;
  --primary-ink: #ffffff;
  --accent: #2563eb;
  --dark: #0b1020;
  --dark-2: #141b31;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11,16,32,.04), 0 8px 24px rgba(11,16,32,.06);
  --shadow-lg: 0 24px 60px rgba(11,16,32,.14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #0f152a;
    --surface: #141b31;
    --ink: #eef1f8;
    --ink-2: #c3c9d8;
    --muted: #8b93a8;
    --line: #232c47;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: .85em 1.3em; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.btn--sm { padding: .6em 1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-ink); box-shadow: 0 8px 22px rgba(229,50,45,.28); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(229,50,45,.38); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: #fff; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(229,50,45,.3);
}
.brand__text span { color: var(--primary); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 14px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255,106,61,.22), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  opacity: .6;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.grad { background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .92rem; }
.hero__trust strong { color: var(--ink); }

.hero__visual { position: relative; }
.term { background: var(--dark); color: #d6dcf0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #222b48; transform: rotate(-1.5deg); }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--dark-2); border-bottom: 1px solid #222b48; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; font-size: .8rem; color: #7d87a6; }
.term__body { margin: 0; padding: 22px 22px 26px; font: 500 .92rem/1.9 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; white-space: pre; overflow: hidden; }
.term .c { color: var(--primary-2); } .term .m { color: #8b95b5; } .term .ok { color: #4ade80; }
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .92rem; } .float-card small { color: var(--muted); font-size: .8rem; }
.float-card .ico { font-size: 1.3rem; }
.float-card--a { left: -28px; bottom: -26px; }
.float-card--b { right: -16px; top: -26px; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.eyebrow--light { color: #ffb199; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary);
}
.card__icon svg { width: 24px; height: 24px; }
.card p { font-size: .97rem; }
.card--accent { background: linear-gradient(160deg, var(--dark), #1b2340); color: #fff; border-color: transparent; }
.card--accent p { color: #c3c9d8; }
.card--accent .card__icon { background: rgba(255,106,61,.18); color: var(--primary-2); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.link { color: var(--primary-2); font-weight: 600; text-decoration: none; }

/* Bonus */
.bonus {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: 48px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #ff6a3d 0%, #e5322d 40%, #8f1420 100%);
}
.bonus::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.bonus h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.bonus p { color: rgba(255,255,255,.88); margin: 0; }
.bonus__cta { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line); position: relative; }
.steps__n { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--primary); margin-bottom: 10px; line-height: 1; }

/* Split / Smart home */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, #22c55e 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.home { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; border-radius: 28px; background: linear-gradient(160deg, var(--dark), #1b2340); box-shadow: var(--shadow-lg); }
.home__tile { position: relative; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.home__tile span { font-size: 1.6rem; display: block; margin-bottom: 18px; }
.home__tile b { display: block; font-family: var(--font-display); }
.home__tile small { color: #9aa3bd; }
.home__tile i { position: absolute; top: 20px; right: 20px; width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.15); }
.home__tile i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.home__tile i.on { background: #22c55e; } .home__tile i.on::after { left: 19px; }

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about__photo { position: relative; }
.about__photo img, .about__fallback { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about__fallback { display: grid; place-items: center; font: 700 5rem var(--font-display); color: #fff; background: linear-gradient(135deg, var(--primary), var(--dark)); }
.about__badge {
  position: absolute; right: -20px; bottom: 32px; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.about__badge strong { font: 700 2rem/1 var(--font-display); color: var(--primary); }
.about__badge span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.sub { margin-top: 28px; font-size: 1rem; }
.certs { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.certs li { padding: 8px 14px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.about__contact a { font-weight: 600; color: var(--primary); text-decoration: none; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.partners a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 96px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.partners a:hover { border-color: var(--primary); transform: translateY(-2px); }
.partners b { font-family: var(--font-display); font-size: 1.12rem; }
.partners small { color: var(--muted); font-size: .8rem; }

/* Remote */
.remote {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.remote__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #60a5fa); color: #fff; }
.remote__icon svg { width: 30px; height: 30px; }
.remote h2 { font-size: 1.5rem; margin-bottom: .3em; }
.remote p { margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--line); font-size: 1.15rem; flex: none; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; }
.contact__list a { font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--primary); }
.hours { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.hours h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hours dl { margin: 0 0 12px; }
.hours dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-2); } .hours dd { margin: 0; font-weight: 600; }
.hours p { margin: 0; }
.status { font: 600 .75rem var(--font); padding: 4px 10px; border-radius: 999px; }
.status.open { background: rgba(34,197,94,.15); color: #16a34a; }
.status.closed { background: rgba(229,50,45,.12); color: var(--primary); }

.form { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form h3 { font-size: 1.4rem; margin: 0 0 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.form .check a { color: var(--primary); }
.form .invalid { border-color: var(--primary) !important; }
.form__note { margin: 0; font-size: .9rem; min-height: 1.2em; }

/* Footer */
.footer { background: var(--dark); color: #c3c9d8; padding: 56px 0 28px; }
.footer .brand { color: #fff; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__inner p { margin-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__links a { text-decoration: none; color: #c3c9d8; }
.footer__links a:hover { color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #222b48; font-size: .85rem; color: #7d87a6; }

/* Floating call button (mobile) */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(229,50,45,.45);
}
.fab svg { width: 24px; height: 24px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .cursor { animation: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__actions .btn--ghost { display: none; }
  .hero__inner, .split, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .about__photo { max-width: 420px; }
  .bonus { grid-template-columns: 1fr; padding: 36px; }
  .bonus__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav__actions .btn--primary { display: none; }
  .hero { padding: 40px 0 72px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .float-card--a { left: 0; } .float-card--b { right: 0; }
  .term__body { font-size: .78rem; padding: 18px; }
  .remote { grid-template-columns: 1fr; padding: 28px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .bonus { padding: 28px; }
  .bonus__cta .btn { width: 100%; }
  .about__badge { right: 12px; }
  .fab { display: grid; }
  .hero__cta .btn { width: 100%; }
}
