/* Acastus AI site: premium dark tokens shared with the apps (deep black, ice-blue to violet accent). */
:root {
  --bg: #070708;
  --bg-2: #0b0b0d;
  --surface-1: #111114;
  --surface-2: #16161a;
  --surface-3: #1c1c21;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --border: rgba(255, 255, 255, .07);
  --border-hover: rgba(255, 255, 255, .14);
  --ice: #86c9e8;
  --blue: #4f8cff;
  --violet: #8b5cf6;
  --success: #8ccba6;
  --grad: linear-gradient(110deg, #86c9e8 0%, #4f8cff 45%, #8b5cf6 100%);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 140ms; --normal: 220ms; --slow: 420ms;
  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --display: Inter, "SF Pro Display", -apple-system, "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow-wrap { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); margin-bottom: 14px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.lead { color: var(--text-2); font-size: 18px; max-width: 560px; }
.lead.narrow { margin: 14px auto 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--fast) var(--ease), background var(--normal) var(--ease), box-shadow var(--normal) var(--ease), border-color var(--normal) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: #050506; box-shadow: 0 8px 28px rgba(79, 140, 255, .18); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(79, 140, 255, .32); }
.btn-ghost { border-color: var(--border-hover); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.wide { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 8, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; }
.brand i { font-style: normal; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.links a { transition: color var(--fast) var(--ease); }
.links a:hover { color: var(--text); }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--normal) var(--ease), top var(--normal) var(--ease); }
.menu span:first-child { top: 17px; } .menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* Hero */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; }
.glow { position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background: radial-gradient(40% 50% at 70% 40%, rgba(79, 140, 255, .16), transparent 70%), radial-gradient(35% 45% at 90% 20%, rgba(139, 92, 246, .14), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--text-2); font-size: 14px; }
.ticks li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 8px; vertical-align: 2px; }
.hero-shots { position: relative; min-height: 420px; }
.shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-hover); background: var(--surface-1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .3); }
.shot.desktop { width: 100%; }
.shot.phone { position: absolute; width: 34%; right: -4%; bottom: -10%; border-radius: 26px; border-width: 6px; border-color: #1a1a1f; }
.shot.phone.big { position: relative; width: min(330px, 80%); right: auto; bottom: auto; margin-inline: auto; }

/* Strip */
.strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 26px 0; }
.strip b { display: block; font: 700 30px/1.1 var(--display); letter-spacing: -.02em; }
.strip span { color: var(--muted); font-size: 13.5px; }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.head { max-width: 720px; margin-bottom: 44px; }
.head.center { margin-inline: auto; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 14px; }
.head p { color: var(--text-2); font-size: 17px; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border);
  transition: transform var(--normal) var(--ease), border-color var(--normal) var(--ease), background var(--normal) var(--ease); }
.tier:hover { transform: translateY(-3px); border-color: var(--border-hover); background: var(--surface-2); }
.tier h3 { font-size: 24px; margin: 14px 0 2px; }
.tier .role { color: var(--ice); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.tier p:last-child { color: var(--text-2); font-size: 15px; }
.badge { display: inline-block; font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; vertical-align: 3px; }
.badge.free { color: var(--success); background: rgba(140, 203, 166, .12); }
.badge.pro { color: #c4b5fd; background: rgba(139, 92, 246, .16); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 26px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border); transition: border-color var(--normal) var(--ease), transform var(--normal) var(--ease); }
.feature:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature h3 { font-size: 18px; margin: 16px 0 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(134, 201, 232, .14), rgba(139, 92, 246, .14)); border: 1px solid var(--border); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-md); border: 1px solid var(--border-hover); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.gallery figcaption { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

/* Phone */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.modes { display: grid; gap: 12px; margin-top: 24px; }
.mode { padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border); }
.mode h3 { font-size: 17px; margin-bottom: 6px; }
.mode p { color: var(--text-2); font-size: 15px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.privacy h3 { font-size: 17px; margin-bottom: 8px; }
.privacy p { color: var(--text-2); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin-inline: auto; }
.plan { position: relative; padding: 32px; border-radius: var(--r-xl); background: var(--surface-1); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan.pro { background: linear-gradient(var(--surface-1), var(--surface-1)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 0 60px rgba(79, 140, 255, .12); }
.plan h3 { font-size: 20px; }
.price { margin: 14px 0 22px; display: flex; align-items: baseline; gap: 10px; }
.price b { font: 700 48px/1 var(--display); letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.plan li b { color: var(--text); }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.ribbon { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(139, 92, 246, .18); color: #c4b5fd; }

/* Download */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.platform { padding: 18px 24px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border); min-width: 220px; }
.platform b { display: block; }
.platform span { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--surface-1); border: 1px solid var(--border); transition: border-color var(--normal) var(--ease); }
.faq details[open] { border-color: var(--border-hover); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--normal) var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* Footer */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--border); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 13.5px; }
.brand.small { font-size: 13px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 56px; }
  .hero-shots { min-height: 0; margin-right: 12%; }
  .tiers, .features { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .links, .nav-cta { display: none; }
  .menu { display: block; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; transition: max-height var(--normal) var(--ease); border-top: 1px solid transparent; }
  .mobile-nav.open { max-height: 320px; border-top-color: var(--border); }
  .mobile-nav a { padding: 14px 16px; color: var(--text-2); border-bottom: 1px solid var(--border); }
  .tiers, .features, .gallery, .plans { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .section { padding: 72px 0; }
  .lead { font-size: 16.5px; }
  .shot.phone { width: 40%; right: -10%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tier, .feature { transition: none; }
}

/* Download cards */
.platform.dl { display: grid; gap: 4px; text-align: left; transition: border-color var(--normal) var(--ease), transform var(--normal) var(--ease), background var(--normal) var(--ease); }
.platform.dl:hover { border-color: var(--border-hover); background: var(--surface-2); transform: translateY(-2px); }
.platform.dl em { font-style: normal; font-weight: 600; color: var(--ice); margin-top: 8px; }
.link { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

/* Hero: give the screenshot more room */
@media (min-width: 961px) { .hero-grid { grid-template-columns: .92fr 1.08fr; gap: 48px; } }
.shot.desktop img { filter: saturate(1.05); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: auto 1fr 1.3fr; gap: 24px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border); }
.step .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--display); color: #050506; background: var(--grad); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15px; }
.step img { border-radius: var(--r-md); border: 1px solid var(--border-hover); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.step img.phone-crop { max-height: 260px; width: auto; justify-self: center; border-radius: 18px; }
.note { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(134, 201, 232, .07); border: 1px solid rgba(134, 201, 232, .18); color: var(--text-2); font-size: 14.5px; }
@media (max-width: 860px) { .step { grid-template-columns: auto 1fr; } .step img { grid-column: 1 / -1; } }
.step-img img { width: 100%; }
@media (max-width: 860px) {
  .step-img { grid-column: 1 / -1; overflow-x: auto; border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
  .step-img img { width: auto; min-width: 640px; max-width: none; }
}

/* A button for something not available yet: looks like the primary action, does nothing. */
.btn.is-soon{opacity:.6;cursor:default;pointer-events:none;box-shadow:none}
.platform:not(.dl){opacity:.75}

/* three plans (Free, Plus, Pro) */
.plans.three { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
@media (max-width: 900px) { .plans.three { grid-template-columns: 1fr; } }

/* Android beta badge */
.platform .beta-tag, .beta-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 700 11px/1.6 var(--font, inherit); letter-spacing: .04em; text-transform: uppercase; color: #FFC53D; background: rgba(255,197,61,.12); border: 1px solid rgba(255,197,61,.35); vertical-align: 2px; }

/* Acastus on the web: is the server (the owner's PC) online right now? */
.server-status { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.server-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #71717a; flex: none; }
.server-status.online { color: #a7f3d0; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.server-status.online .dot { background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: server-pulse 2s ease-out infinite; }
.server-status.offline { color: #fecaca; border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.08); }
.server-status.offline .dot { background: #FB7185; }
.server-status.flash { animation: server-flash .5s ease 2; }
a.is-offline { opacity: .6; }
@keyframes server-pulse { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes server-flash { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .server-status .dot, .server-status.flash { animation: none !important; } }
