/* ==========================================================================
   AppFocus — components.css   [ AURORA ]
   ========================================================================== */

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-size: .93rem; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease, background .26s ease, border-color .26s ease, color .26s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.976); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  color: #fff;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--accent) 72%, transparent); }

.btn-ghost { background: var(--glass); border: 1px solid var(--line-2); color: var(--tx); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: .86rem; }
.arr { transition: transform .24s ease; }
a:hover > .arr, .btn:hover .arr, .go:hover .arr { transform: translateX(4px); }

/* ------------------------------ Nav ------------------------------------ */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding-inline: 18px; }
.nav {
  max-width: var(--container); margin-inline: auto;
  height: var(--nav-h); padding: 0 10px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.nav.scrolled { box-shadow: var(--sh); border-color: var(--line-2); }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.06rem; letter-spacing: -.035em; }
.brand img { width: 29px; height: 29px; }
.brand .fx { color: var(--tx-faint); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-full);
  font-size: .9rem; font-weight: 500; color: var(--tx-dim);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--tx); background: var(--solid); }
.nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 37px; height: 37px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--tx-dim);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--solid); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }

.burger { display: none; }
@media (max-width: 940px) { .nav-links { display: none; } .burger { display: flex; } .nav-cta { display: none; } }

.sheet {
  display: none; position: fixed; top: calc(var(--nav-h) + 28px); left: 18px; right: 18px; z-index: 99;
  flex-direction: column; padding: 10px;
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-2) 96%, transparent);
  backdrop-filter: blur(20px); box-shadow: var(--sh-lg);
}
.sheet.open { display: flex; }
.sheet a { padding: 13px 16px; border-radius: var(--r-md); font-size: .95rem; color: var(--tx-dim); font-weight: 500; }
.sheet a:hover { background: var(--solid); color: var(--tx); }
.sheet .btn { margin-top: 8px; }

/* ------------------------------ Hero ----------------------------------- */
.hero { padding-top: calc(var(--nav-h) + 104px); padding-bottom: 30px; text-align: center; }
.hero.compact { padding-top: calc(var(--nav-h) + 84px); padding-bottom: 10px; text-align: left; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 7px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: .82rem; color: var(--tx-dim); box-shadow: var(--sh-sm);
}
.pill .chip {
  padding: 4px 11px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: .7rem; font-weight: 700;
  font-family: var(--f-mono); letter-spacing: .04em;
}
.pill b { color: var(--tx); font-weight: 600; }

.hero h1 { margin-top: 26px; max-width: 18ch; margin-inline: auto; }
.hero.compact h1 { max-width: none; margin-inline: 0; }
.hero-sub { margin: 24px auto 0; max-width: 680px; font-size: 1.14rem; }
.hero.compact .hero-sub { margin-inline: 0; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero.compact .hero-cta { justify-content: flex-start; }

/* Stat bar — glass */
.statbar {
  display: flex; flex-wrap: wrap; margin-top: 62px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--glass); backdrop-filter: blur(14px);
  box-shadow: var(--sh); overflow: hidden;
}
.statbar .cell { flex: 1 1 180px; padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.statbar .cell:last-child { border-right: none; }
.statbar .n { font-family: var(--f-display); font-size: 2rem; font-weight: 800; letter-spacing: -.045em; }
.statbar .t { font-size: .81rem; color: var(--tx-faint); margin-top: 3px; }
@media (max-width: 640px) { .statbar .cell { border-right: none; border-bottom: 1px solid var(--line); } .statbar .cell:last-child { border-bottom: none; } }

/* ------------------------------ Marquee -------------------------------- */
.marquee {
  overflow: hidden; padding-block: 24px;
  border-block: 1px solid var(--line);
  background: var(--glass-2);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mq-track { display: flex; gap: 50px; width: max-content; animation: mq 36s linear infinite; }
.mq-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--tx-faint); }
.mq-item svg { width: 17px; height: 17px; color: var(--accent); opacity: .7; }

/* ------------------------- Glass card + spotlight ---------------------- */
.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  --c: var(--accent);
}
.glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 13%, transparent), transparent 68%);
  opacity: 0; transition: opacity .35s ease;
}
.glass:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--c) 40%, var(--line-2)); }
.glass:hover::before { opacity: 1; }

/* ------------------------------ Services ------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc { padding: 28px 24px 26px; }
.svc .ico {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  color: var(--c);
}
.svc .ico svg { width: 21px; height: 21px; }
.svc h4 { margin-bottom: 9px; }
.svc p { font-size: .9rem; }

/* ------------------------------ Bento ---------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { min-width: 0; }
.b-4 { grid-column: span 4; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
@media (max-width: 1000px) { .b-4, .b-3 { grid-column: span 6; } .b-2 { grid-column: span 3; } }
@media (max-width: 640px)  { .b-4, .b-3, .b-2 { grid-column: span 6; } }

.prod { display: flex; flex-direction: column; padding: 28px 26px; }
.prod-top { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.prod-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  color: var(--c);
}
.prod-ico svg { width: 21px; height: 21px; }
.prod-name { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.035em; }
.prod-kind { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--tx-faint); margin-top: 2px; }
.prod p { font-size: .92rem; flex-grow: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.go { display: inline-flex; align-items: center; gap: 7px; font-size: .87rem; font-weight: 600; color: var(--c); }
.go svg { width: 15px; height: 15px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-x {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--solid); color: var(--tx-faint);
}

.prod-visual { margin-top: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); padding: 14px; }

/* --------------------------- UI mockup atoms --------------------------- */
.m-bar { display: flex; gap: 5px; margin-bottom: 12px; }
.m-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.m-line { height: 7px; border-radius: 4px; background: var(--solid); display: block; }
.m-fill { background: color-mix(in srgb, var(--c) 60%, transparent); }
.m-soft { background: color-mix(in srgb, var(--c) 24%, transparent); }
.m-rows { display: flex; flex-direction: column; gap: 7px; }
.m-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; background: var(--solid); }
/* :where() keeps these at zero added specificity so the .m-fill / .m-soft
   modifiers below can still win — a plain `.m-cal i` outranks `.m-fill`. */
.m-row :where(.d) { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.m-cal :where(i) { aspect-ratio: 1; border-radius: 5px; background: var(--solid); display: block; }
.phone { width: 100%; max-width: 168px; border-radius: 26px; border: 6px solid var(--solid); background: var(--bg-2); padding: 8px; box-shadow: var(--sh-lg); }

/* Browser frame for product page hero shots */
.browser { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--sh-lg); overflow: hidden; }
.browser .bbar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--solid); }
.browser .bbody { padding: 22px; }

/* ------------------------------ Steps ---------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px 24px; }
.step .num { display: block; font-family: var(--f-mono); font-size: .73rem; letter-spacing: .1em; color: var(--accent); margin-bottom: 15px; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: .89rem; }

/* --------------------------- Feature rows ------------------------------ */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.frow + .frow { margin-top: clamp(56px, 7vw, 104px); }
.frow.flip > *:first-child { order: 2; }
@media (max-width: 900px) { .frow { grid-template-columns: 1fr; gap: 34px; } .frow.flip > *:first-child { order: 0; } }
.frow h3 { margin-bottom: 14px; }
.frow p { font-size: 1rem; }

.ticks { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.tick { display: flex; align-items: flex-start; gap: 11px; font-size: .93rem; color: var(--tx-dim); }
.tick svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--c, var(--accent)); }

/* --------------------------- Availability ------------------------------ */
.avail { display: flex; gap: 9px; flex-wrap: wrap; }
.av {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--glass);
  font-size: .84rem; font-weight: 500; cursor: default;
}
.av svg { width: 15px; height: 15px; color: var(--accent); }
.av .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: 244px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: .78rem; line-height: 1.5; color: var(--tx-dim);
  opacity: 0; pointer-events: none; z-index: 6; box-shadow: var(--sh-lg);
  transition: opacity .22s ease, transform .22s ease;
}
.av:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------- CTA ----------------------------------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(14px);
  box-shadow: var(--sh);
  padding: clamp(48px, 7vw, 84px) clamp(26px, 5vw, 60px);
}
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -70%;
  width: 760px; height: 520px; transform: translateX(-50%);
  filter: blur(70px); pointer-events: none;
  background:
    radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--accent) 46%, transparent), transparent 58%),
    radial-gradient(circle at 70% 45%, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 58%);
}
.cta > * { position: relative; }
.cta p { margin: 16px auto 0; max-width: 520px; font-size: 1.04rem; }

/* ------------------------------ Footer --------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: 62px 28px; margin-top: 30px; background: var(--glass-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 46px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { margin-top: 15px; font-size: .9rem; max-width: 300px; }
.foot h5 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: 15px; font-weight: 500; }
.foot a.fl { display: block; padding: 6px 0; font-size: .91rem; color: var(--tx-dim); transition: color .2s ease; }
.foot a.fl:hover { color: var(--accent); }
.foot-btm { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--tx-faint); }
.socials { display: flex; gap: 9px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--tx-faint); transition: color .2s ease, border-color .2s ease; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 15px; height: 15px; }

/* --------------------------- Split utility ----------------------------- */
.split { display: grid; grid-template-columns: 1fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr !important; gap: 42px; } }
