/* ==========================================================
   Meteorito — modern landing
   ========================================================== */

:root {
  --ink: #0a0d14;
  --ink-2: #121722;
  --ink-3: #1b2130;
  --text: #1a1d24;
  --muted: #5d6472;
  --muted-dark: #9aa3b5;
  --line: #e7e5e1;
  --line-dark: rgba(255, 255, 255, .09);
  --paper: #fbfaf8;
  --tint: #f4f2ee;
  --white: #fff;

  --brand: #fd5d20;
  --brand-600: #e44a10;
  --brand-soft: #fff0e9;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 13, 20, .06);
  --shadow: 0 1px 2px rgba(10, 13, 20, .05), 0 12px 32px -12px rgba(10, 13, 20, .18);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .6);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(253, 93, 32, .7); }
.btn--primary:hover { background: var(--brand-600); }
.btn--light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .16); }
.btn--light:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .16); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--dark {
  color: #ffd6c5;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(253, 93, 32, .1); border: 1px solid rgba(253, 93, 32, .25);
  letter-spacing: .04em; text-transform: none; font-weight: 500;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(253, 93, 32, .2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 13, 20, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line-dark);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 28px; height: auto; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted-dark); font-size: 14px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 150px 0 110px;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(253, 93, 32, .28), rgba(253, 93, 32, .06) 55%, transparent 75%);
  filter: blur(10px);
}
.hero__glow--low { inset: auto auto -50% -15%; opacity: .7; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
}
.hero h1 em { color: #ffb08f; font-size: 1.06em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted-dark); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero__tags li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-dark); }
.hero__tags li::before { content: ""; width: 14px; height: 1px; background: var(--brand); }

.hero__visual { position: relative; }

/* ---------- Window frame ---------- */
.window {
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-lg);
}
.hero .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.window__bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  background: #f3f2ef; border-bottom: 1px solid var(--line);
}
.window__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #dcd9d3; }
.window__bar p {
  margin-left: 12px; flex: 1; max-width: 260px;
  font-size: 12px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 10px; text-align: center;
}
/* The screenshots have a white margin baked in; crop it a touch */
.window img { width: 100%; aspect-ratio: 650 / 400; object-fit: cover; object-position: center 45%; }
.window--light { box-shadow: 0 0 0 1px var(--line), var(--shadow); }

/* ---------- Floating cards ---------- */
.float-card {
  position: absolute;
  background: rgba(18, 23, 34, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
}
.float-card__label { display: block; font-size: 12px; color: var(--muted-dark); }
.float-card strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.float-card--a { left: -36px; bottom: -28px; width: 200px; }
.float-card--b { right: -18px; top: -26px; display: flex; align-items: center; gap: 12px; }
.bar { display: block; height: 5px; margin-top: 10px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c08a, #4ee0a8); }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #22c08a; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c08a;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* ---------- Clients ---------- */
.clients { padding: 56px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.clients__title { text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 28px; }
.clients__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 56px;
}
.clients__row img {
  height: 44px; width: auto; max-width: 140px; object-fit: contain;
  filter: grayscale(1); opacity: .55; mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s;
}
.clients__row img:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; overflow: hidden; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }

.section__head { max-width: 780px; margin-bottom: 64px; }
.section__head p:not(.eyebrow) { max-width: 620px; }
h1, h2 { text-wrap: balance; }
.section__head h2 { margin: 16px 0 18px; font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -.03em; }
.section__head h2 em { color: var(--brand); }
.section__head p:not(.eyebrow) { font-size: 17px; color: var(--muted); }
.section__head--dark h2 em { color: #ffb08f; }
.section__head--dark p:not(.eyebrow) { color: var(--muted-dark); }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.solution__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--brand); }
.solution h3 { margin: 28px 0 10px; font-size: 22px; }
.solution p { color: var(--muted); font-size: 15px; }
.solution ul { margin: 24px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.solution li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.solution li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fd5d20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2 2 5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.feature { padding: 30px 26px; background: var(--paper); transition: background-color .3s; }
.feature:hover { background: var(--white); }
.feature__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: background-color .3s, color .3s, border-color .3s;
}
.feature:hover .feature__icon { background: var(--brand); color: #fff; border-color: var(--brand); }
.feature__icon svg, .contact__line svg, .footer__social svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin: 22px 0 8px; font-size: 17px; letter-spacing: -.01em; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.showcase__tabs { display: grid; gap: 6px; }
.showcase__tabs button {
  display: grid; gap: 2px; text-align: left;
  padding: 18px 20px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  font: inherit; color: var(--muted); cursor: pointer;
  position: relative;
  transition: background-color .25s, border-color .25s, color .25s;
}
.showcase__tabs button strong { color: var(--text); font-weight: 600; font-size: 16px; }
.showcase__tabs button span { font-size: 14px; }
.showcase__tabs button:hover { background: var(--tint); }
.showcase__tabs button[aria-selected="true"] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.showcase__tabs button[aria-selected="true"]::before {
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--brand);
}
#showcase-img { transition: opacity .25s, transform .4s var(--ease); }
#showcase-img.is-swapping { opacity: 0; transform: scale(.99); }

/* ---------- Band ---------- */
.band { padding: 0 0 120px; }
.band__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px 64px; border-radius: 28px;
  background: linear-gradient(120deg, var(--brand) 0%, #ff7a3d 55%, #ff9a5c 100%);
  color: #fff;
}
.band__inner::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 320px; height: 340px;
  background: url("img/mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1); opacity: .12; pointer-events: none;
}
.band h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; max-width: 620px; }
.band p { margin-top: 12px; max-width: 540px; opacity: .9; }
.band .btn--primary { position: relative; z-index: 1; background: var(--ink); box-shadow: none; }
.band .btn--primary:hover { background: var(--ink-3); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  padding: 40px 34px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.plan h3 { font-size: 24px; }
.plan__desc { margin-top: 10px; color: var(--muted); font-size: 15px; }
.plan ul { margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.plan li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fd5d20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2 2 5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan--featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan--featured .plan__desc { color: var(--muted-dark); }
.plan--featured ul { border-color: var(--line-dark); }
.plan--featured li::before { background-color: rgba(253, 93, 32, .18); }
.plan__badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--brand); color: #fff;
}
.plans__cta { margin-top: 48px; text-align: center; }

/* ---------- Contact ---------- */
.contacts { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact {
  padding: 36px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark);
}
.contact__region { font-family: var(--serif); font-size: 30px; margin-bottom: 20px; }
.contact__line {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line-dark);
  color: #d8dce5; font-size: 16px;
  transition: color .2s;
}
.contact__line svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.contact__line:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; flex-wrap: wrap; }
.footer a:hover { color: #fff; }
.brand--light img { width: 24px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-dark); transition: background-color .2s, color .2s;
}
.footer__social a:hover { background: rgba(255, 255, 255, .08); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero .window { transform: none; }
  .hero__visual { max-width: 640px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .showcase__tabs { grid-template-columns: repeat(2, 1fr); }
  .solutions, .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan--featured { order: -1; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    padding: 12px 20px 24px; background: rgba(10, 13, 20, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav.is-open { background: rgba(10, 13, 20, .96); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__actions .btn--ghost { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .band__inner { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
  .contacts { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 120px 0 90px; }
  .lead { font-size: 17px; }
  .float-card--a { left: 12px; bottom: -32px; }
  .float-card--b { right: 12px; top: -24px; }
  .section { padding: 88px 0; }
  .band { padding-bottom: 88px; }
  .section__head { margin-bottom: 44px; }
  .showcase__tabs { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .clients__row { gap: 24px 36px; }
  .clients__row img { height: 34px; max-width: 110px; }
  .nav__actions .btn--primary { display: none; }
  .contact { padding: 28px 24px; }
  .contact__line { font-size: 15px; word-break: break-word; }
}
