/* ===== OneOfBest studio: dark, futuristic, 3D scroll ===== */
:root {
  --bg: #06080d;
  --bg2: #0b0f18;
  --surface: #0f1522;
  --surface2: #151d31;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9edf7;
  --muted: #8f99b0;
  --cyan: #4cc9ff;
  --violet: #8b7bff;
  --green: #5dffb0;
  --blue: #3a7bd5;
  --radius: 16px;
  --wrap: 1120px;
  --head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* ambient grid + glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(76, 201, 255, 0.13), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(139, 123, 255, 0.12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
}
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(6, 8, 13, 0.62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand b { color: var(--cyan); font-weight: 700; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav { gap: 14px; } .nav a { font-size: 0.85rem; } .nav .hide-sm { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: none;
  color: #04121c;
  background: linear-gradient(100deg, var(--cyan), #7ab8ff 55%, var(--violet));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 40px -8px rgba(76, 201, 255, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 50px -8px rgba(76, 201, 255, 0.75); }
.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== App window mockup (the 3D star) ===== */
.win {
  width: 100%;
  background: linear-gradient(180deg, #131b2e, #0c1220);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8), 0 0 80px -10px rgba(76, 201, 255, 0.28);
  font-family: var(--mono); font-size: 0.8rem;
}
.win-bar { background: var(--blue); color: #fff; padding: 9px 14px; display: flex; align-items: center; gap: 12px; font-family: var(--body); font-weight: 600; font-size: 0.82rem; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); display: block; }
.win-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 4px; }
.win-tools span { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 2px 10px; color: #b9c6e0; font-size: 0.7rem; }
.win-head { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 6px; padding: 12px 14px 6px; color: #9fb0d0; font-size: 0.72rem; font-weight: 500; }
.rows { list-style: none; margin: 0; padding: 0 8px 8px; }
.row { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 6px; padding: 8px 6px; border-radius: 8px; align-items: center; }
.row:nth-child(odd) { background: rgba(255, 255, 255, 0.035); }
.row .old { color: #c5d0e6; transition: opacity 0.4s, color 0.4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .arrow { color: var(--blue); text-align: center; }
.row .new { color: var(--green); opacity: 0; transform: translateX(-10px); transition: opacity 0.4s, transform 0.4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 14px rgba(93, 255, 176, 0.5); }
.row.done .old { opacity: 0.32; }
.row.done .new { opacity: 1; transform: none; }
.win-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.status { color: #9fb0d0; font-size: 0.72rem; }
.apply {
  background: var(--blue); color: #fff; border-radius: 6px; padding: 7px 14px;
  font-family: var(--body); font-weight: 600; font-size: 0.78rem;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
.apply.active { background: #4a90ee; box-shadow: 0 0 0 4px rgba(74, 144, 238, 0.28), 0 0 24px rgba(74, 144, 238, 0.7); transform: scale(1.05); }

/* ===== Home hero ===== */
.home-hero { padding: 120px 0 70px; }
.home-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.home-hero h1 { margin: 16px 0 20px; }
.home-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.float-scene { perspective: 1300px; }
.float-card { transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite; transition: transform 0.12s ease-out; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 860px) { .home-hero .wrap { grid-template-columns: 1fr; } .home-hero { padding-top: 100px; } }

/* ===== Sections ===== */
.section { padding: 84px 0; scroll-margin-top: 56px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin: 12px 0 14px; }
.section-head p { color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; perspective: 1400px; }
.product-card {
  display: block; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color 0.2s, transform 0.15s ease-out;
  transform-style: preserve-3d;
}
.product-card:hover { border-color: rgba(76, 201, 255, 0.5); }
.product-card .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.product-card h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.product-card p { color: var(--muted); font-size: 0.97rem; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-family: var(--mono); font-size: 0.85rem; }
.product-card .price { color: var(--green); font-weight: 500; }
.product-card.soon { opacity: 0.55; border-style: dashed; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.principle { border-top: 1px solid var(--line); padding-top: 20px; }
.principle .n { font-family: var(--mono); color: var(--cyan); font-size: 0.8rem; }
.principle h3 { margin: 8px 0 8px; font-size: 1.3rem; }
.principle p { color: var(--muted); font-size: 0.97rem; }

/* ===== Product page: sticky 3D scroll stage ===== */
.stage { height: 300vh; position: relative; }
.stage-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  max-width: var(--wrap); margin: 0 auto; padding: 84px 20px 24px;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 36px; align-items: center;
}
.stage-copy h1 { margin: 16px 0 18px; }
.stage-copy .lead { color: var(--muted); font-size: 1.1rem; max-width: 44ch; margin-bottom: 26px; }
.hint { margin-top: 28px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; transition: opacity 0.3s; display: flex; align-items: center; gap: 10px; }
.hint::before { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--cyan), transparent); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.scene { perspective: 1500px; perspective-origin: 50% 35%; display: grid; place-items: center; --a: 0; }
.scene-3d { position: relative; width: min(100%, 560px); transform-style: preserve-3d; will-change: transform; }
.chip {
  position: absolute; z-index: 2;
  --fx: 0; --fy: 0; --z: 60px;
  transform: translate3d(calc(var(--fx) * (1 - var(--a)) * 1px), calc(var(--fy) * (1 - var(--a)) * 1px), var(--z));
  opacity: var(--a);
  background: rgba(15, 21, 34, 0.9); border: 1px solid rgba(76, 201, 255, 0.45);
  color: var(--text); font-family: var(--mono); font-size: 0.72rem; padding: 8px 12px; border-radius: 999px;
  box-shadow: 0 10px 40px -8px rgba(76, 201, 255, 0.4); white-space: nowrap;
}
.chip.c1 { top: -20px; right: 28px; --fx: 200; --fy: -120; --z: 110px; }
.chip.c2 { bottom: -22px; left: 26px; --fx: -240; --fy: 90; --z: 90px; }
.chip.c3 { bottom: -22px; right: 40px; --fx: 160; --fy: 160; --z: 130px; }

@media (max-width: 860px) {
  .stage-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding-top: 76px; align-items: start; }
  .stage-copy h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin: 8px 0 10px; }
  .stage-copy .lead { font-size: 0.98rem; margin-bottom: 14px; }
  .stage-copy .btn-row .btn-ghost, .hint { display: none; }
  .scene { align-self: start; padding-top: 6px; }
  .scene-3d { width: min(100%, 440px); }
  .chip { font-size: 0.64rem; padding: 6px 10px; }
  .chip.c1 { right: 14px; } .chip.c2 { left: 12px; } .chip.c3 { right: 24px; }
}
@media (max-width: 860px) and (max-height: 700px) { .stage-copy .lead { display: none; } }

/* ===== Feature wall ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; perspective: 1400px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transform-style: preserve-3d;
}
.card .ico { font-family: var(--mono); color: var(--cyan); font-size: 0.8rem; margin-bottom: 14px; display: inline-block; padding: 4px 9px; border: 1px solid rgba(76, 201, 255, 0.35); border-radius: 8px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* scroll reveal with depth */
.reveal { opacity: 0; transform: perspective(1000px) translate3d(0, 46px, -90px) rotateX(24deg); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
[data-tilt].in { transition: opacity 0.7s ease, transform 0.15s ease-out; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; perspective: 1400px; }
.step { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; background: var(--surface); overflow: hidden; }
.step .big { font-family: var(--head); font-weight: 700; font-size: 5.2rem; line-height: 0.9; position: absolute; top: 8px; right: 16px; color: transparent; -webkit-text-stroke: 1px rgba(76, 201, 255, 0.35); }
.step h3 { margin: 42px 0 8px; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ===== Buy card ===== */
.buy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.buy-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.buy-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.buy-list li::before { content: "+"; font-family: var(--mono); color: var(--green); }
.price-card {
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(76, 201, 255, 0.16), rgba(139, 123, 255, 0.14) 60%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(76, 201, 255, 0.4);
  box-shadow: 0 30px 80px -30px rgba(76, 201, 255, 0.5);
}
.price-card .amount { font-family: var(--head); font-weight: 700; font-size: 4.6rem; line-height: 1; margin: 12px 0 6px; }
.price-card .amount small { font-size: 1.1rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.price-card .sub { color: var(--muted); margin-bottom: 24px; }
.price-card .btn { width: 100%; }
.price-card .alt { margin-top: 16px; font-size: 0.92rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-family: var(--mono); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ===== Prose (about, 404) ===== */
.page-hero { padding: 130px 0 30px; }
.page-hero h1 { margin: 14px 0 16px; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.page-hero p { color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
.prose { max-width: 700px; padding-bottom: 60px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose p { color: #c4cce0; margin-bottom: 14px; }

/* ===== Sticky mobile buy bar ===== */
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 16px;
  background: rgba(12, 17, 28, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(76, 201, 255, 0.35); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(140%); transition: transform 0.35s ease;
}
.buybar.show { transform: none; }
.buybar b { font-family: var(--head); font-size: 1.05rem; }
.buybar span { color: var(--muted); font-size: 0.8rem; display: block; line-height: 1.2; }
.buybar .btn { padding: 11px 20px; font-size: 0.95rem; }
@media (max-width: 860px) { .buybar { display: flex; } body.has-buybar { padding-bottom: 84px; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 34px; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer .brand { display: block; margin-bottom: 6px; }
.site-footer nav a { display: block; color: var(--muted); text-decoration: none; margin: 4px 0; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; }

/* ===== Accessibility ===== */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card, .hint::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .row .new, .row .old { transition: none; }
}
