/* ============================================================
   Beatly — Modern landing (dark + light themes)
   ============================================================ */

/* ---------- theme tokens ---------- */
:root,
[data-theme="dark"] {
  --bg: #0b0d14;
  --bg-alt: #10131c;
  --surface: #161a26;
  --surface-2: #1e2333;
  --border: #262c3f;
  --text: #f2f4f8;
  --muted: #9aa3b8;
  --accent: #ff8f80;
  --accent-2: #ffb4a9;
  --gold: #f0c14b;
  --gold-2: #d9a227;
  --green: #5fd79a;
  --on-accent: #20120f;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .75);
  --blob-opacity: .5;
}

[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-alt: #ecedf3;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --border: #dfe2ec;
  --text: #171a23;
  --muted: #5c647a;
  --accent: #e8564a;
  --accent-2: #ff8f80;
  --gold: #c9931a;
  --gold-2: #b8860b;
  --green: #1fa866;
  --on-accent: #ffffff;
  --shadow: 0 24px 60px -30px rgba(23, 26, 35, .28);
  --blob-opacity: .35;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 780px; }
.hidden { display: none !important; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #ff6b5e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-gold {
  background: linear-gradient(100deg, var(--gold) 0%, #ffe08a 50%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 14px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  font-family: inherit; text-align: center;
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(255, 143, 128, .6);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--on-accent); box-shadow: 0 16px 36px -12px rgba(255, 143, 128, .7); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold), #ffe08a 55%, var(--gold-2));
  color: #241a05;
  box-shadow: 0 10px 30px -12px rgba(240, 193, 75, .55);
}
.btn-gold:hover { transform: translateY(-2px); color: #241a05; box-shadow: 0 16px 40px -12px rgba(240, 193, 75, .7); }

/* ---------- cards base ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: background .3s ease, border-color .3s ease;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.nav-brand:hover { color: var(--text); }
.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 10px 22px; font-size: 14px; border-radius: 12px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(15deg); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 150px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  position: relative; z-index: 2;
}

/* animated color blobs (peerduck-style moving colors) */
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: var(--blob-opacity); pointer-events: none; z-index: 0;
  will-change: transform;
}
.blob-1 {
  width: 560px; height: 560px; top: -180px; left: -140px;
  background: radial-gradient(circle, #ff8f80, transparent 65%);
  animation: blobMove1 16s ease-in-out infinite alternate;
}
.blob-2 {
  width: 480px; height: 480px; top: 40px; right: -160px;
  background: radial-gradient(circle, #f0c14b, transparent 65%);
  animation: blobMove2 18s ease-in-out infinite alternate;
}
.blob-3 {
  width: 420px; height: 420px; bottom: -200px; left: 35%;
  background: radial-gradient(circle, #8b7cf6, transparent 65%);
  animation: blobMove3 20s ease-in-out infinite alternate;
}
@keyframes blobMove1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, 60px) scale(1.15); }
  100% { transform: translate(30px, 110px) scale(.95); }
}
@keyframes blobMove2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 70px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(.9); }
}
@keyframes blobMove3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -60px) scale(1.2); }
  100% { transform: translate(-60px, -20px) scale(1); }
}

.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .4px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.06; font-weight: 800; letter-spacing: -2px; }
.hero-sub { color: var(--muted); font-size: 17.5px; margin-top: 20px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-note strong { color: var(--text); }

/* animated isologo */
.hero-visual { display: flex; align-items: center; justify-content: center; min-height: 420px; position: relative; }
.iso-wrap { position: relative; width: 340px; height: 340px; display: flex; align-items: center; justify-content: center; }
.iso-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 62%, var(--accent) 75%, var(--gold) 88%, transparent 100%);
  animation: spin 7s linear infinite;
  opacity: .9;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --spin: 360deg; } }
/* fallback for browsers w/o @property */
@keyframes spinFallback { to { transform: rotate(360deg); } }
.iso-logo {
  width: 210px; height: 210px; object-fit: contain; position: relative; z-index: 2;
  animation: floaty 5.5s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(255, 143, 128, .35));
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.orbit-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  top: 50%; left: 50%; margin: -7px; z-index: 3;
}
.dot-1 { background: var(--accent); animation: orbit1 9s linear infinite; }
.dot-2 { background: var(--gold); width: 11px; height: 11px; margin: -5.5px; animation: orbit2 13s linear infinite; }
.dot-3 { background: #8b7cf6; width: 9px; height: 9px; margin: -4.5px; animation: orbit3 17s linear infinite; }
@keyframes orbit1 { from { transform: rotate(0) translateX(170px) rotate(0); } to { transform: rotate(360deg) translateX(170px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: rotate(120deg) translateX(145px) rotate(-120deg); } to { transform: rotate(480deg) translateX(145px) rotate(-480deg); } }
@keyframes orbit3 { from { transform: rotate(240deg) translateX(195px) rotate(-240deg); } to { transform: rotate(600deg) translateX(195px) rotate(-600deg); } }

/* ---------- sections ---------- */
.section { padding: 90px 0; position: relative; }
.section.alt { background: var(--bg-alt); transition: background .3s ease; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 800;
  font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow.gold { color: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.14; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ---------- stats ---------- */
.stats { padding: 60px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.stat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.stat-bg {
  position: absolute; right: -14px; bottom: -18px; width: 96px; height: 96px;
  color: var(--accent); opacity: .1; transform: rotate(-12deg); pointer-events: none;
}
.stat-bg svg { width: 100%; height: 100%; }
.stat-num { display: block; font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -1.4px; position: relative; }
.stat-label { color: var(--muted); font-size: 13.5px; font-weight: 600; position: relative; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { padding: 28px; transition: transform .22s ease, border-color .22s ease; }
.bento-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.bento-card.wide { grid-column: span 2; }
.bento-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 23px; margin-bottom: 18px;
  transition: background .3s ease;
}
.bento-card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.bento-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tab {
  padding: 11px 28px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  cursor: pointer; transition: .18s; font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- gallery ---------- */
.gallery-track { display: flex; gap: 18px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; }
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.g-item {
  flex: 0 0 auto; width: 220px; scroll-snap-align: center;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: .22s; background: var(--surface);
}
.g-item:hover { transform: translateY(-7px) scale(1.02); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.g-item img { width: 100%; aspect-ratio: 9/19; object-fit: cover; }
.g-item.wide { width: 500px; border-radius: 16px; }
.g-item.wide img { aspect-ratio: 16/10; object-fit: cover; }

/* ---------- downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.dl-card { padding: 34px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .22s ease, border-color .22s ease; }
.dl-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.dl-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.dl-icon.android { background: linear-gradient(135deg, #3ddc84, #1fa866); color: #06281a; }
.dl-icon.windows { background: linear-gradient(135deg, #4da3ff, #2f6fd6); color: #041c3a; }
.dl-card h3 { font-size: 19px; font-weight: 800; }
.dl-version { color: var(--accent); font-weight: 800; font-size: 15px; }
.dl-size { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.dl-card .btn { margin-top: auto; }

.notice {
  margin-top: 44px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 14px;
  color: var(--muted); font-size: 14.5px; max-width: 860px; margin-left: auto; margin-right: auto;
}
.notice svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.notice strong { color: var(--text); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.price-card { padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.price-card.free { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.price-card.pro {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--gold), #ffe08a 45%, var(--gold-2)) border-box;
  box-shadow: 0 30px 70px -34px rgba(240, 193, 75, .45);
}
.plan-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.plan-badge {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.free-badge { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.gold-badge { background: linear-gradient(120deg, var(--gold), #ffe08a); color: #241a05; }
.plan-head h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }

/* plan toggle */
.plan-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 5px; margin-bottom: 20px;
}
.toggle-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: linear-gradient(120deg, var(--gold), #ffe08a);
  border-radius: 10px; transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.plan-toggle.yearly .toggle-thumb { transform: translateX(100%); }
.t-btn {
  position: relative; z-index: 1; padding: 10px 0; border: 0; background: none;
  font-family: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer;
  color: var(--muted); transition: color .25s;
}
.t-btn.active { color: #241a05; }

.plan-price { font-size: 52px; font-weight: 800; letter-spacing: -2.5px; line-height: 1; }
.plan-price .cur { font-size: 26px; vertical-align: super; color: var(--muted); font-weight: 700; }
.plan-price .per { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan-price.gold {
  background: linear-gradient(120deg, var(--gold), #ffe08a 60%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-period { color: var(--muted); font-size: 13.5px; margin: 10px 0 6px; }
.save-pill {
  align-self: flex-start; background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold); font-size: 12.5px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 8px;
}
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 16px 0 26px; flex: 1; }
.plan-list li { font-size: 14.5px; font-weight: 600; }
.plan-list li.off { color: color-mix(in srgb, var(--muted) 60%, transparent); text-decoration: line-through; font-weight: 500; }
.plan-fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.plan-fine a { text-decoration: underline; }

/* price swap animation */
.swapping { animation: swapIn .3s ease; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- changelog ---------- */
.changelog { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.cl-loading { text-align: center; color: var(--muted); padding: 40px; }
.cl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; transition: background .3s ease, border-color .3s ease; }
.cl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cl-version { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; padding: 4px 14px; border-radius: 999px; }
.cl-latest { background: var(--green); color: #06281a; font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.cl-date { color: var(--muted); font-size: 13.5px; }
.cl-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-body li { font-size: 14.5px; color: var(--muted); padding-left: 18px; position: relative; }
.cl-body li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.cl-body strong, .cl-body b { color: var(--text); }
.cl-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; }

/* ---------- faq ---------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 0 24px; margin-bottom: 12px;
  transition: border-color .2s, background .3s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 19px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; transition: .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 14.5px; padding-bottom: 20px; }

/* ---------- final cta ---------- */
.cta-final { padding-bottom: 100px; }
.cta-box {
  text-align: center; padding: 66px 30px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 30px;
  transition: background .3s ease, border-color .3s ease;
}
.cta-blobs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); pointer-events: none;
}
.cta-blobs span:nth-child(1) { width: 340px; height: 340px; top: -140px; left: -80px; background: radial-gradient(circle, #ff8f80, transparent 65%); animation: blobMove1 14s ease-in-out infinite alternate; }
.cta-blobs span:nth-child(2) { width: 300px; height: 300px; bottom: -140px; right: -60px; background: radial-gradient(circle, #f0c14b, transparent 65%); animation: blobMove2 16s ease-in-out infinite alternate; }
.cta-logo { width: 78px; margin: 0 auto 18px; position: relative; animation: floaty 5s ease-in-out infinite; }
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -1.2px; position: relative; }
.cta-box > p { color: var(--muted); margin: 12px 0 30px; position: relative; }
.dl-inline { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 38px 0; background: var(--bg-alt); transition: background .3s ease, border-color .3s ease; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.footer-brand:hover { color: var(--text); }
.footer-brand img { width: 30px; }
.footer-credit { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.phixi-logo { height: 26px; width: auto; }
[data-theme="light"] .phixi-logo { filter: none; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

/* ---------- terms page ---------- */
.terms-content { max-width: 820px; margin: 0 auto; }
.terms-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -1.2px; margin-bottom: 8px; }
.terms-content .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.terms-content h2 { font-size: 20px; font-weight: 800; margin: 34px 0 12px; color: var(--accent); }
.terms-content p, .terms-content li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.terms-content ul { padding-left: 22px; }
.terms-content strong { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .iso-logo, .cta-logo, .blob, .cta-blobs span, .orbit-dot, .iso-ring { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .iso-wrap { width: 290px; height: 290px; }
  .iso-logo { width: 180px; height: 180px; }
  @keyframes orbit1 { from { transform: rotate(0) translateX(145px) rotate(0); } to { transform: rotate(360deg) translateX(145px) rotate(-360deg); } }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.wide { grid-column: span 2; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; }
  .dl-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column;
    background: var(--bg); padding: 22px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .3s ease;
    margin-left: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-top: 116px; }
  .hero h1 { letter-spacing: -1.2px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 27px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .g-item { width: 190px; }
  .g-item.wide { width: 300px; }
  .plan-price { font-size: 44px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { align-items: center; }
  .footer-links { justify-content: center; }
  .section { padding: 64px 0; }
}

/* ============================================================
   ROUND 2 — features v2, particle canvas, typewriter,
   theme logos, status page
   ============================================================ */

/* stats: clean gradient numbers */
.stat-num {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat { padding: 34px 20px; }
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* typewriter badge */
.hero-badge { min-height: 20px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; }
.type-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  background: var(--accent); vertical-align: text-bottom;
  animation: caretBlink .85s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* particle logo canvas */
.iso-canvas {
  position: relative; z-index: 2; width: 340px; height: 340px; max-width: 100%;
  filter: drop-shadow(0 18px 42px rgba(255, 143, 128, .3));
}
.iso-logo-fallback {
  width: 210px; height: 210px; object-fit: contain; position: relative; z-index: 2;
  animation: floaty 5.5s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(255, 143, 128, .35));
}

/* feature cards v2 */
.bento-card.feat {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  overflow: hidden; position: relative;
}
.bento-card.feat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), var(--glow, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.bento-card.feat:hover::after { opacity: .55; }
.bento-card.feat:hover { transform: translateY(-6px); }

.feat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.feat-icon {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 12px 26px -12px var(--shadow-color, rgba(0,0,0,.5));
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-card.feat:hover .feat-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }

.feat-watermark {
  font-size: 74px; line-height: 1; font-weight: 800; pointer-events: none;
  color: var(--wm, var(--text)); opacity: .05; transform: rotate(8deg);
  user-select: none;
}

.bento-card.feat h3 { font-size: 17.5px; font-weight: 800; }
.bento-card.feat p { color: var(--muted); font-size: 14.5px; flex: 1; }

.feat-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.feat-tags span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--tag, var(--accent)) 14%, transparent);
  color: var(--tag, var(--accent));
}

/* per-feature palettes */
.feat-coral   { --glow: rgba(255,143,128,.16); --tag: #ff8f80; --wm: #ff8f80; }
.feat-coral .feat-icon   { background: linear-gradient(135deg, #ff8f80, #ff5e50); --shadow-color: rgba(255,94,80,.55); }
.feat-violet  { --glow: rgba(139,124,246,.16); --tag: #8b7cf6; --wm: #8b7cf6; }
.feat-violet .feat-icon  { background: linear-gradient(135deg, #a594ff, #7c5cf0); --shadow-color: rgba(124,92,240,.55); }
.feat-gold    { --glow: rgba(240,193,75,.16); --tag: var(--gold); --wm: var(--gold); }
.feat-gold .feat-icon    { background: linear-gradient(135deg, #ffd76a, #e0a820); --shadow-color: rgba(224,168,32,.55); color: #241a05; }
.feat-green   { --glow: rgba(95,215,154,.16); --tag: var(--green); --wm: var(--green); }
.feat-green .feat-icon   { background: linear-gradient(135deg, #6fe7ad, #22a86a); --shadow-color: rgba(34,168,106,.55); color: #052b19; }
.feat-blue    { --glow: rgba(77,163,255,.16); --tag: #4da3ff; --wm: #4da3ff; }
.feat-blue .feat-icon    { background: linear-gradient(135deg, #6db6ff, #2f6fd6); --shadow-color: rgba(47,111,214,.55); }
.feat-sky     { --glow: rgba(88,199,250,.16); --tag: #58c7fa; --wm: #58c7fa; }
.feat-sky .feat-icon     { background: linear-gradient(135deg, #7fd4ff, #2ba3e0); --shadow-color: rgba(43,163,224,.55); }
.feat-rose    { --glow: rgba(255,113,168,.16); --tag: #ff71a8; --wm: #ff71a8; }
.feat-rose .feat-icon    { background: linear-gradient(135deg, #ff92c0, #ef4d93); --shadow-color: rgba(239,77,147,.55); }
.feat-amber   { --glow: rgba(255,159,67,.16); --tag: #ff9f43; --wm: #ff9f43; }
.feat-amber .feat-icon   { background: linear-gradient(135deg, #ffb76b, #f07c1f); --shadow-color: rgba(240,124,31,.55); }
.feat-mint    { --glow: rgba(0,207,189,.16); --tag: #00cfbd; --wm: #00cfbd; }
.feat-mint .feat-icon    { background: linear-gradient(135deg, #3be0d1, #00a99a); --shadow-color: rgba(0,169,154,.55); color: #042b28; }

/* phixi official logos (theme aware) */
.phixi-link { display: inline-flex; align-items: center; }
.phixi-logo { height: 30px; width: auto; display: block; }
[data-theme="dark"] .phixi-logo.on-light { display: none; }
[data-theme="light"] .phixi-logo.on-dark { display: none; }

/* status page */
.status-wrap { max-width: 980px; }
.status-head { text-align: center; margin-bottom: 40px; }
.status-head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -1.4px; }
.status-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

.status-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; margin-bottom: 26px;
  border-left: 4px solid var(--border);
  transition: border-color .3s, background .3s;
}
.status-banner.st-up { border-left-color: var(--green); }
.status-banner.st-slow { border-left-color: var(--gold); }
.status-banner.st-down { border-left-color: #ff5e50; }
.status-banner strong { font-size: 17px; font-weight: 800; display: block; }
.status-banner p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.status-meta { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.status-meta span { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

.status-pulse {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--muted); color: var(--muted); position: relative;
}
.status-pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid currentColor; opacity: .4;
  animation: pulseRing 1.6s ease-out infinite;
}
.status-banner.st-up .status-pulse { background: var(--green); color: var(--green); }
.status-banner.st-slow .status-pulse { background: var(--gold); color: var(--gold); }
.status-banner.st-down .status-pulse { background: #ff5e50; color: #ff5e50; }
@keyframes pulseRing { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }

.refresh-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 11px; font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  transition: .18s; white-space: nowrap;
}
.refresh-btn:hover { border-color: var(--accent); color: var(--accent); }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.status-card { padding: 20px; position: relative; overflow: hidden; }
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sc-icon { font-size: 24px; }
.sc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); color: var(--muted); position: relative; }
.sc-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: .35; animation: pulseRing 1.8s ease-out infinite; }
.st-up .sc-dot { background: var(--green); color: var(--green); }
.st-slow .sc-dot { background: var(--gold); color: var(--gold); }
.st-down .sc-dot { background: #ff5e50; color: #ff5e50; }
.status-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.sc-desc { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; min-height: 34px; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--border); padding-top: 11px; }
.sc-status { font-size: 13px; font-weight: 800; }
.st-up .sc-status { color: var(--green); }
.st-slow .sc-status { color: var(--gold); }
.st-down .sc-status { color: #ff5e50; }
.st-checking .sc-status { color: var(--muted); }
.sc-latency { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.status-details { padding: 26px 28px; margin-bottom: 26px; }
.status-details h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.detail-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 28px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.detail-row span { color: var(--muted); font-weight: 600; }
.detail-row strong { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.status-foot { text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  .status-banner { flex-wrap: wrap; }
  .status-meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .status-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .iso-canvas { width: 290px; height: 290px; }
}

/* ============================================================
   ROUND 3 — hero logo redo (no ring, no orbit dots)
   ============================================================ */

/* dotted grid behind the hero visual (keycode reference style) */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -46px;
  background-image: radial-gradient(var(--border) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(circle at center, #000 34%, transparent 74%);
  mask: radial-gradient(circle at center, #000 34%, transparent 74%);
  opacity: .7;
  pointer-events: none;
}
[data-theme="light"] .hero-visual::before { opacity: .55; }

.iso-wrap {
  position: relative;
  width: 440px;
  height: 440px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iso-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 22px 50px rgba(255, 143, 128, .22));
}

/* kill round-1 decorations (elements removed from HTML, styles neutered) */
.iso-ring, .orbit-dot, .iso-logo-fallback { display: none !important; }

@media (max-width: 980px) {
  .iso-wrap { width: 370px; height: 370px; }
}
@media (max-width: 720px) {
  .iso-wrap { width: 300px; height: 300px; }
  .hero-visual::before { inset: -24px; background-size: 22px 22px; }
}

/* ============================================================
   ROUND 4 — music preloader, hero logo + ambient particle halo
   ============================================================ */

/* ---------- music preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.pre-lock { overflow: hidden; }

.pre-inner {
  position: relative;
  text-align: center;
  padding: 0 24px;
}
.pre-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin: 0 auto 26px;
  animation: preFloat 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 0 rgba(255, 143, 128, 0));
}
@keyframes preFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 6px 18px rgba(255,143,128,.35)); }
  50% { transform: translateY(-12px); filter: drop-shadow(0 18px 34px rgba(255,143,128,.65)); }
}

/* equalizer bars */
.pre-eq {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: flex-end;
  height: 46px;
}
.pre-eq span {
  width: 8px;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transform-origin: bottom;
  animation: eqBounce .95s ease-in-out infinite;
}
.pre-eq span:nth-child(1) { animation-delay: 0s; }
.pre-eq span:nth-child(2) { animation-delay: .14s; }
.pre-eq span:nth-child(3) { animation-delay: .28s; }
.pre-eq span:nth-child(4) { animation-delay: .09s; }
.pre-eq span:nth-child(5) { animation-delay: .23s; }
.pre-eq span:nth-child(6) { animation-delay: .37s; }
.pre-eq span:nth-child(7) { animation-delay: .18s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(.22); }
  50% { transform: scaleY(1); }
}

.pre-text {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  animation: prePulse 1.6s ease-in-out infinite;
}
@keyframes prePulse { 50% { opacity: .45; letter-spacing: 7px; } }

/* floating music notes */
.pre-note {
  position: absolute;
  font-size: 22px;
  color: var(--accent);
  opacity: 0;
  animation: noteFloat 3.2s ease-in-out infinite;
  pointer-events: none;
}
.note-1 { left: -46px; top: 6px; animation-delay: .2s; }
.note-2 { right: -50px; top: 30px; color: var(--gold); animation-delay: 1.3s; font-size: 26px; }
.note-3 { left: -18px; bottom: 40px; animation-delay: 2.2s; font-size: 18px; }
@keyframes noteFloat {
  0% { transform: translateY(14px) rotate(-8deg); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-42px) rotate(10deg); opacity: 0; }
}

/* ---------- hero: real logo + glow + halo particles ---------- */
.iso-wrap {
  position: relative;
  width: 440px;
  height: 440px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iso-logo-main {
  position: relative;
  z-index: 3;
  width: 218px;
  height: 218px;
  object-fit: contain;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 44px rgba(255, 143, 128, .4));
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.035); }
}

/* soft breathing glow behind the logo (no hard edges) */
.iso-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 128, .3), rgba(240, 193, 75, .12) 45%, transparent 70%);
  animation: glowBreath 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowBreath {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.22); opacity: 1; }
}

.iso-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 980px) {
  .iso-wrap { width: 370px; height: 370px; }
  .iso-logo-main { width: 190px; height: 190px; }
}
@media (max-width: 720px) {
  .iso-wrap { width: 300px; height: 300px; }
  .iso-logo-main { width: 160px; height: 160px; }
  .pre-logo { width: 84px; height: 84px; }
}

/* respect reduced motion for decorative loops (particles keep their own path) */
@media (prefers-reduced-motion: reduce) {
  .pre-eq span, .pre-logo, .pre-note, .pre-text, .iso-logo-main, .iso-wrap::after {
    animation: none !important;
  }
}

/* ============================================================
   ROUND 5 — celeste soft glow, longer preloader,
   spring physics + mouse repulsion on halo particles
   ============================================================ */

/* softer celeste glow behind the logo (was too orange) */
.iso-wrap::after {
  background: radial-gradient(circle, rgba(135, 205, 255, .15), rgba(160, 225, 255, .07) 45%, transparent 70%);
  animation: glowBreath 4.5s ease-in-out infinite;
}
.iso-logo-main {
  filter: drop-shadow(0 20px 44px rgba(130, 195, 255, .24));
}
@keyframes glowBreath {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.2); opacity: .95; }
}
