/* Shared base for OSquare Studio product concept pages. Each page sets its own theme tokens. */
:root {
  --bg: #0b0d12;
  --bg-2: #12151c;
  --surface: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.1);
  --fg: #eef1f6;
  --muted: #9aa3b2;
  --acc: #5b8cff;
  --acc-2: #9b6bff;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff6b6b;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --arabic: "Noto Kufi Arabic", "Plus Jakarta Sans", sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--fg); background: var(--bg); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(2.5rem, 9.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 6.4vw, 3.3rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.grad { background: linear-gradient(100deg, var(--acc), var(--acc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } }
.sub { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 1.08rem; }
.head { margin-bottom: clamp(28px, 4vw, 48px); }
.head--center { text-align: center; }
.head--center .sub { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s, background-color .25s; }
.btn:active { transform: scale(.97); }
.btn--acc { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--acc) 85%, transparent); }
.btn--acc:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--acc) 95%, transparent); }
.btn--ghost { background: var(--surface); border: 1px solid var(--stroke); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: .9rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad); transition: background-color .3s, box-shadow .3s; }
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--stroke); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; box-shadow: 0 8px 18px -8px var(--acc); }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; font-size: .92rem; color: var(--muted); font-weight: 600; }
.nav__links a:hover { color: var(--fg); }

/* Hero */
.hero { position: relative; padding: 108px 0 64px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .32; pointer-events: none; }
.hero::before { top: -40vmax; left: -25vmax; background: var(--acc); animation: drift 18s ease-in-out infinite alternate; }
.hero::after { top: -20vmax; right: -40vmax; background: var(--acc-2); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .86rem; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 16px; height: 16px; color: var(--ok); }
.js .rise > * { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.js .rise > :nth-child(2) { animation-delay: .08s; }
.js .rise > :nth-child(3) { animation-delay: .16s; }
.js .rise > :nth-child(4) { animation-delay: .24s; }
.js .rise > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Mock window */
.window { position: relative; border-radius: 22px; border: 1px solid var(--stroke); background: color-mix(in srgb, var(--bg-2) 92%, transparent); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset; overflow: hidden; backdrop-filter: blur(12px); }
.window__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.window__bar span { margin-left: 8px; color: var(--muted); font-size: .78rem; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Logos / chips strip */
.strip { padding: 22px 0; border-block: 1px solid var(--stroke); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; padding: 0 26px; color: var(--muted); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.marquee span::after { content: "•"; margin-left: 26px; opacity: .4; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--stroke); }
.card { position: relative; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--surface); padding: clamp(20px, 3vw, 28px); overflow: hidden; }
.card p { color: var(--muted); }
.card h3 + p { margin-top: 8px; }
.bento { display: grid; gap: 14px; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); }
.ico svg { width: 22px; height: 22px; }
.card--glow::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--acc); filter: blur(70px); opacity: .18; }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 20px; border-radius: 18px; border: 1px solid var(--stroke); background: var(--surface); }
.stat b { display: block; font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 70px; border-radius: 18px; border: 1px solid var(--stroke); background: var(--surface); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; font-weight: 800; }
.steps p { margin-top: 6px; color: var(--muted); }

/* Pricing */
.prices { display: grid; gap: 14px; }
.price { display: grid; gap: 12px; align-content: start; }
.price__n { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price__n small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { display: grid; gap: 8px; margin: 6px 0 10px; }
.price li { display: flex; gap: 10px; color: var(--muted); font-size: .93rem; }
.price li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%233ddc97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.price--hot { border-color: color-mix(in srgb, var(--acc) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 12%, transparent), var(--surface)); }
.price__tag { justify-self: start; padding: 4px 10px; border-radius: 99px; background: var(--acc); color: #fff; font-size: .74rem; font-weight: 800; }
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); margin-bottom: 18px; }
.toggle button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 700; color: var(--muted); transition: background-color .25s, color .25s; }
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: 16px; border: 1px solid var(--stroke); background: var(--surface); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Demo form */
.demo__grid { display: grid; gap: 28px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,.04); color: var(--fg); font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.form select option { color: #111; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.form .is-invalid { border-color: var(--bad); }
.form__row { display: grid; gap: 12px; }
.form__status { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, transparent); border-left: 4px solid var(--ok); color: var(--fg); font-size: .92rem; }
.form__status.is-error { background: color-mix(in srgb, var(--bad) 12%, transparent); border-left-color: var(--bad); }

.foot { padding: 34px 0 40px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: .84rem; }
.foot__in { display: grid; gap: 10px; }
.foot a { color: var(--fg); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--fg); color: var(--bg); font-size: .9rem; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); animation: toastIn .4s var(--spring); }
@keyframes toastIn { from { opacity: 0; translate: -50% 20px; } }

@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 70px 22px 22px; }
}
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .hero { padding: 140px 0 90px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento .span-2 { grid-column: span 2; }
  .demo__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .rise > * { opacity: 1; transform: none; }
}
