/* ============ Tokens ============ */
:root {
  --bg: #09090b;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --ember: #ff7a3d;
  --rose: #ff3d71;
  --gold: #ffc35a;
  --grad: linear-gradient(135deg, var(--ember), var(--rose));
  --ok: #4ade80;
  --err: #f87171;
  --radius: 20px;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --text-2: #d4d4d8;
  --nav-bg: rgba(9, 9, 11, .72);
  --menu-bg: rgba(18, 18, 20, .96);
  --pop: #18181b;
  --glass: rgba(24, 24, 27, .78);
  --device: #111113;
  --dot: #3f3f46;
  --input-bg: rgba(0, 0, 0, .35);
  --placeholder: #52525b;
  --glow: rgba(255, 255, 255, .5);
  --shadow: 0 20px 50px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  --code-k: #c084fc; --code-s: #ffc35a; --code-f: #60a5fa;
  --aurora: .55;
  color-scheme: dark;
}

/* Light theme (daytime) */
:root[data-theme="light"] {
  --bg: #fafaf9;
  --surface: rgba(24, 24, 27, .03);
  --surface-2: rgba(24, 24, 27, .05);
  --line: rgba(24, 24, 27, .09);
  --line-2: rgba(24, 24, 27, .15);
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #52525b;
  --dim: #71717a;
  --gold: #b45309;
  --ok: #15803d;
  --err: #dc2626;
  --nav-bg: rgba(250, 250, 249, .8);
  --menu-bg: rgba(255, 255, 255, .97);
  --pop: #ffffff;
  --glass: rgba(255, 255, 255, .85);
  --device: #ffffff;
  --dot: #e4e4e7;
  --input-bg: #ffffff;
  --placeholder: #a1a1aa;
  --glow: rgba(24, 24, 27, .25);
  --shadow: 0 20px 50px -18px rgba(24, 24, 27, .25);
  --shadow-lg: 0 40px 80px -36px rgba(24, 24, 27, .35);
  --code-k: #9333ea; --code-s: #b45309; --code-f: #2563eb;
  --aurora: .28;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); transition: background-color .4s, color .4s; font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}

/* ============ Nav ============ */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 16px; }
.nav-pill {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border: 1px solid transparent; border-radius: 999px; transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled .nav-pill, .nav.open .nav-pill { background: var(--nav-bg); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.02em; font-size: 1.05rem; }
.links { display: flex; gap: 4px; }
.links a { text-decoration: none; color: var(--muted); font-size: .92rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.nav.open .menu span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.open .menu span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Theme toggle */
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s; }
.theme-btn:hover { background: var(--surface-2); }

/* Auth */
.auth-slot { min-width: 40px; min-height: 40px; display: flex; align-items: center; }
.btn-google {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); border: 0; font-weight: 500; font-size: .9rem; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -8px var(--glow); }
.user-menu { position: relative; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--grad); cursor: pointer; overflow: hidden; display: grid; place-items: center; font-weight: 600; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 6px; border-radius: 16px;
  background: var(--pop); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid;
}
.dropdown[hidden] { display: none; }
.who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.who strong { font-weight: 600; font-size: .95rem; }
.who span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.dropdown a, .dropdown button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; font-size: .9rem; text-decoration: none; cursor: pointer; color: var(--text); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--rose), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn-primary span { transition: transform .2s; }
.btn-primary:hover span { transform: translateX(3px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(80px); opacity: var(--aurora); }
.aurora span { position: absolute; border-radius: 50%; }
.aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--ember); top: -180px; left: 8%; animation: float 14s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 460px; height: 460px; background: var(--rose); top: -120px; right: 5%; opacity: .7; animation: float 18s ease-in-out infinite reverse; }
.aurora span:nth-child(3) { width: 380px; height: 380px; background: #7c3aed; top: 160px; left: 45%; opacity: .35; animation: float 22s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(40px, 50px) scale(1.08); } }

.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .85rem; color: var(--muted); margin-bottom: 28px; backdrop-filter: blur(8px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin-bottom: 24px; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: linear-gradient(120deg, var(--gold), var(--ember) 45%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.window { border-radius: 18px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(20px); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .6s ease; }
.hero-visual:hover .window { transform: perspective(1200px) rotateY(0) rotateX(0); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font: .78rem var(--mono); color: var(--dim); }
.window pre { padding: 24px; white-space: pre; font: .92rem/1.75 var(--mono); color: var(--text-2); overflow-x: auto; }
.k { color: var(--code-k); } .s { color: var(--code-s); } .f { color: var(--code-f); } .b { color: var(--ember); }
.chip { position: absolute; padding: 10px 16px; border-radius: 14px; font-size: .85rem; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: var(--shadow); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.chip-a { bottom: -22px; left: -24px; }
.chip-b { top: -18px; right: -10px; animation-delay: -3s; }
.ok { color: var(--ok); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ============ Marquee ============ */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.track span { font-size: 1.05rem; color: var(--dim); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(calc(-50% - 28px)); } }

/* ============ Sections ============ */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.eyebrow { font: 500 .78rem var(--mono); color: var(--ember); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
p { color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile { position: relative; grid-column: span 2; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s, background .3s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 61, .12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile-web { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
.tile-mobile { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.tile-ai { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: center; }
.tile-ai h3, .tile-ai p { grid-column: 1; }
.tile-ai .chat { grid-column: 2; grid-row: 1 / span 2; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); margin-bottom: 40px; font-size: 1.2rem; color: var(--ember); }

.mini-browser { border-radius: 12px; border: 1px solid var(--line-2); background: var(--device); overflow: hidden; }
.mb-bar { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.mb-body { padding: 14px; display: grid; gap: 8px; }
.mb-body b, .phone b { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.mb-body b:first-child { width: 40%; background: var(--grad); }
.w60 { width: 60%; }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.mb-cards span { height: 46px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }

.phone { width: 130px; height: 230px; margin: 0 auto 28px; border-radius: 26px; border: 1px solid var(--line-2); background: var(--device); padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 9px; position: relative; box-shadow: 0 30px 60px -30px var(--rose); }
.notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 44px; height: 10px; border-radius: 10px; background: var(--dot); }
.phone b:first-child { width: 70%; background: var(--grad); height: 10px; }
.pbtn { margin-top: auto; height: 28px; border-radius: 10px; background: var(--grad); opacity: .85; }

.chat { display: grid; gap: 10px; align-content: center; }
.chat span { padding: 10px 14px; border-radius: 14px; font-size: .88rem; max-width: 90%; }
.chat .q { justify-self: end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.chat .a { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), transparent); }
.step-n { display: inline-block; font: 500 .8rem var(--mono); color: var(--ember); padding: 4px 10px; border: 1px solid rgba(255, 122, 61, .3); border-radius: 999px; margin-bottom: 44px; }

/* About */
.about-card { padding: clamp(32px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(600px circle at 100% 0%, rgba(255, 61, 113, .12), transparent 60%), radial-gradient(600px circle at 0% 100%, rgba(255, 122, 61, .1), transparent 60%), var(--surface); }
.about-card blockquote { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; max-width: 900px; margin-bottom: 24px; }
.about-card blockquote em { font-family: var(--serif); font-weight: 400; color: var(--gold); }
.about-card > p:last-child { max-width: 640px; font-size: 1.08rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; padding-bottom: clamp(80px, 11vw, 140px); }
.contact-copy h2 { margin-bottom: 20px; }
.mail-link { display: inline-flex; gap: 6px; font-size: 1.15rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s, color .2s; }
.mail-link:hover { color: var(--gold); border-color: var(--gold); }
.form { display: grid; gap: 16px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--text-2); }
.opt { color: var(--dim); font-weight: 400; font-size: .8rem; }
input, textarea, select { width: 100%; background: var(--input-bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font: 400 .98rem var(--sans); transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23a1a1aa' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select option { background: var(--pop); }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 122, 61, .15); }
.invalid { border-color: var(--err) !important; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.4em; font-size: .92rem; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--dim); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; padding: 12px 18px; border-radius: 12px; background: var(--pop); border: 1px solid var(--line-2); font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast[data-kind="err"] { border-color: rgba(248, 113, 113, .4); }
.toast[data-kind="ok"] { border-color: rgba(74, 222, 128, .4); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-visual { max-width: 520px; }
  .window { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-web, .tile-ai { grid-column: span 2; }
  .tile-mobile { grid-column: span 1; grid-row: span 2; }
  .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 1; }
  .tile:nth-child(6) { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .menu { display: flex; }
  .links { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--menu-bg); border: 1px solid var(--line-2); backdrop-filter: blur(16px); display: none; box-shadow: var(--shadow); }
  .nav.open .links { display: flex; }
  .links a { padding: 12px 14px; }
  .btn-google span { display: none; }
  .btn-google { width: 40px; padding: 0; justify-content: center; }
  .hero { padding: 120px 0 72px; }
  .window pre { font-size: .8rem; padding: 18px; }
  .cta .btn { flex: 1 1 auto; }
  .chip-a { left: 8px; } .chip-b { right: 8px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-web, .tile-ai, .tile-mobile, .tile:nth-child(4), .tile:nth-child(5), .tile:nth-child(6) { grid-column: span 1; grid-row: auto; }
  .tile-web, .tile-ai { grid-template-columns: 1fr; }
  .tile-ai .chat { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .icon { margin-bottom: 24px; }
  .steps, .row { grid-template-columns: 1fr; }
  .step-n { margin-bottom: 24px; }
  .form { padding: 20px; }
}

/* ============ Products / portfolio ============ */
.products-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; max-width: none; }
.products-head > div:first-child { max-width: 640px; }
.products-head h2 { margin-bottom: 16px; }
.products-head .lead { margin-bottom: 0; }
.products-head .lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.p-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; }
.p-stats div { display: grid; }
.p-stats strong { font-size: 2rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.p-stats span { color: var(--dim); font-size: .82rem; }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.feat { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(500px circle at 100% 0%, color-mix(in srgb, var(--a) 18%, transparent), transparent 60%), var(--surface); display: grid; gap: 16px; align-content: start; }
.feat-top { display: flex; gap: 16px; align-items: center; }
.feat-top .eyebrow { margin-bottom: 4px; }
.feat h3 { font-size: 1.6rem; letter-spacing: -.03em; margin: 0; }
.feat-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feat-actions .btn { height: 46px; padding: 0 20px; font-size: .95rem; }
.feat-os { color: var(--dim); font-size: .82rem; }

.p-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.p-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.p-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: .88rem; cursor: pointer; transition: all .2s; }
.p-chips button span { font-size: .75rem; color: var(--dim); }
.p-chips button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.p-chips button[aria-selected="true"] span { color: inherit; opacity: .7; }
.p-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.p-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.p-seg button { padding: 6px 12px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-size: .84rem; cursor: pointer; }
.p-seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.p-search { position: relative; display: flex; align-items: center; }
.p-search svg { position: absolute; left: 12px; color: var(--dim); pointer-events: none; }
.p-search input { height: 38px; width: 220px; padding: 0 12px 0 34px; border-radius: 999px; font-size: .9rem; }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.p-loading { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; text-align: center; }
.p-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.p-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--a); opacity: 0; transition: opacity .25s; }
.p-card:hover, .p-card:focus-visible { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); outline: none; }
.p-card:hover::after, .p-card:focus-visible::after { opacity: 1; }
.p-cover { margin: -18px -18px 4px; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--a) 15%, var(--bg)); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .p-cover img { transform: scale(1.04); }
.p-top { display: flex; gap: 12px; align-items: center; }
.p-icon { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 18%, var(--bg)); border: 1px solid var(--line); }
.p-icon img { width: 100%; height: 100%; object-fit: cover; }
.p-icon.mono { color: #fff; background: var(--a); font-weight: 700; font-size: 1.05rem; }
.p-icon.lg { width: 68px; height: 68px; border-radius: 18px; font-size: 1.3rem; }
.p-title { min-width: 0; }
.p-title h3 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { color: var(--dim); font-size: .8rem; }
.p-meta .new { color: var(--ember); font-weight: 600; }
.p-tag { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-plat { color: var(--dim); font-size: .78rem; font-family: var(--mono); margin-top: auto; }
.p-actions { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.p-actions > * { flex-shrink: 0; }
.p-btn svg { display: block; }
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: .85rem; font-weight: 500; text-decoration: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.p-btn:hover { background: var(--surface-2); border-color: var(--muted); }
.p-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.p-btn.primary:hover { transform: translateY(-1px); background: var(--text); }
.p-btn.p-ico { width: 36px; padding: 0; }
.p-btn.ghost { margin-left: auto; background: none; border-color: transparent; color: var(--muted); }
.p-btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.p-by { display: flex; gap: 6px; flex-wrap: wrap; }
.maker { font-size: .7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.maker.arju { color: var(--code-k); border-color: color-mix(in srgb, var(--code-k) 35%, transparent); }
.maker.akshay { color: var(--ember); border-color: color-mix(in srgb, var(--ember) 35%, transparent); }
.p-more { display: flex; justify-content: center; margin-top: 24px; }

/* Product modal */
.p-modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--pop); color: var(--text); box-shadow: var(--shadow-lg); overflow-y: auto; }
.p-modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.p-modal[open] { animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.pm { position: relative; display: grid; gap: 16px; padding: 24px; }
.pm-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--pop); color: var(--text); cursor: pointer; }
.pm-cover { margin: -24px -24px 0; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); }
.pm-cover img { width: 100%; height: 100%; object-fit: cover; }
.pm-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.pm-head h3 { font-size: 1.5rem; letter-spacing: -.03em; margin: 0; }
.pm-tag { color: var(--muted); font-size: 1rem; }
.pm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pm-facts dt { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.pm-facts dd { font-size: .9rem; }
.pm-facts a { color: var(--text); }
.pm-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tech span { font: .78rem var(--mono); padding: 3px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.pm-group { display: grid; gap: 8px; }
.pm-gt { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.pm-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-links .p-btn { margin: 0; height: 40px; }
.pm-links .p-btn.ghost { border-color: var(--line-2); color: var(--text); }

@media (max-width: 1000px) {
  .p-stats { grid-template-columns: repeat(4, 1fr); width: 100%; }
}
@media (max-width: 760px) {
  .feat-grid { grid-template-columns: 1fr; }
  .p-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .p-stats strong { font-size: 1.6rem; }
  .p-toolbar { flex-direction: column; align-items: stretch; }
  .p-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .p-chips button { flex-shrink: 0; }
  .p-tools { justify-content: space-between; }
  .p-search { flex: 1; }
  .p-search input { width: 100%; }
  .p-grid { grid-template-columns: 1fr; }
  .pm-facts { grid-template-columns: 1fr; }
  .feat { padding: 22px; }
  .feat-actions .btn { flex: 1 1 100%; }
}
