/* ==========================================================================
   Ceen theme — shared styles for links.ceenacademy.com
   1. Tokens   2. Base & living background   3. Shared components
   4. Links page (profile card, socials, FAQ)  5. Status / redirect pages
   6. Inner pages (topbar, embed)   7. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --font-sans: 'Inter', 'Cairo', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cairo', ui-monospace, monospace;

  --teal: #009899;
  --teal-600: #00868a;
  --teal-300: #5fd0cf;
  --pink: #c73571;
  --pink-600: #ad2b61;
  --pink-300: #f08cb5;
  --brand-gradient: linear-gradient(120deg, #00a5a6 0%, #00868a 45%, #c73571 100%);

  --radius-xl: 22px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-sm: 8px;

  --background: #f4f6f8;
  --foreground: #0f172a;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --primary: #009899;
  --primary-hover: #00868a;
  --primary-foreground: #ffffff;
  --muted: #eef1f4;
  --muted-foreground: #64748b;
  --accent: #e6f4f4;
  --accent-foreground: #00868a;
  --pink-soft: #fbe9f1;
  --pink-foreground: #ad2b61;
  --border: #e5e7eb;
  --line-2: #eef0f3;
  --ring: rgba(0, 152, 153, 0.45);
  --dot: rgba(15, 23, 42, 0.07);
  --glow-teal: rgba(0, 152, 153, 0.22);
  --glow-pink: rgba(199, 53, 113, 0.16);
  --ink-btn: #0f172a;
  --ink-btn-hover: #1e293b;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.05);

  color-scheme: light;
}

/* Dark: only when the visitor picks it with the toggle (light is always the default) */
:root[data-theme='dark'] {
  --background: #070f1c;
  --foreground: #e2e8f0;
  --card: #0f172a;
  --glass: rgba(15, 23, 42, 0.7);
  --primary: #00b3b5;
  --primary-hover: #00c7c9;
  --primary-foreground: #04191a;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: rgba(0, 179, 181, 0.14);
  --accent-foreground: #7ee7e3;
  --pink-soft: rgba(232, 90, 146, 0.16);
  --pink-foreground: #f3a6c6;
  --border: #1e293b;
  --line-2: #172033;
  --ring: rgba(0, 179, 181, 0.5);
  --dot: rgba(148, 163, 184, 0.08);
  --glow-teal: rgba(0, 179, 181, 0.2);
  --glow-pink: rgba(232, 90, 146, 0.14);
  --ink-btn: #1e293b;
  --ink-btn-hover: #273449;
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* 2. Base & living background --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Slowly drifting teal/pink light */
body::before {
  content: '';
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(32vmax 32vmax at 78% 18%, var(--glow-teal), transparent 70%),
    radial-gradient(28vmax 28vmax at 18% 42%, var(--glow-pink), transparent 70%),
    radial-gradient(36vmax 36vmax at 62% 92%, var(--glow-teal), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
/* Dot grid that fades out down the page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[href], button:not([disabled]), summary { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 50;
  padding: 8px 12px; border-radius: var(--radius-btn);
  background: var(--primary); color: var(--primary-foreground); font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 3. Shared components ----------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
/* Frosted card with a teal→pink hairline border */
.glass {
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(140deg, rgba(0, 152, 153, 0.45), rgba(226, 232, 240, 0.4) 45%, rgba(199, 53, 113, 0.4)) border-box;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-lg);
}
:root[data-theme='dark'] .glass {
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(140deg, rgba(0, 179, 181, 0.45), rgba(30, 41, 59, 0.6) 45%, rgba(232, 90, 146, 0.4)) border-box;
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 16px;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--accent); border-color: var(--primary); color: var(--accent-foreground); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-icon { width: 40px; padding: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
.badge-teal { background: var(--accent); color: var(--accent-foreground); }
.badge-pink { background: var(--pink-soft); color: var(--pink-foreground); }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }

/* Floating theme toggle */
.theme-fab {
  position: fixed; top: 14px; inset-inline-end: 14px; z-index: 30;
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--foreground);
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.theme-fab:hover { transform: rotate(-20deg) scale(1.05); }
.theme-fab svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root[data-theme='dark'] .icon-sun { display: block; }
:root[data-theme='dark'] .icon-moon { display: none; }

/* 4. Links page ------------------------------------------------------------ */
.page {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding: 16px 14px 28px;
  display: grid; gap: 18px;
}
@media (min-width: 640px) { .page { padding: 28px 24px 40px; } }
@media (min-width: 980px) {
  .page { grid-template-columns: 410px minmax(0, 1fr); gap: 28px; padding-top: 48px; align-items: start; }
  .profile { position: sticky; top: 28px; }
}

/* Profile card */
.profile { overflow: hidden; }
.cover {
  position: relative; height: 128px; overflow: hidden;
  background: var(--brand-gradient);
}
.cover::after { /* soft light sweep */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, 0.35), transparent 55%);
}
.cover-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
/* The logo's rising bars, as a living equalizer */
.bars {
  position: absolute; bottom: 0; right: 22px;
  direction: ltr; /* short → tall, like the logo */
  display: flex; align-items: flex-end; gap: 9px; height: 100%;
}
.bars span {
  width: 18px; border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: bottom;
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) both, breathe 3.6s ease-in-out infinite;
}
.bars span:nth-child(1) { height: 34%; animation-delay: .1s, 1s; }
.bars span:nth-child(2) { height: 58%; animation-delay: .2s, 1.6s; background: rgba(255, 255, 255, 0.4); }
.bars span:nth-child(3) { height: 74%; animation-delay: .3s, 1.2s; }
.bars span:nth-child(4) { height: 90%; animation-delay: .4s, 1.9s; background: rgba(255, 255, 255, 0.36); }

.profile-body { position: relative; padding: 0 20px 22px; text-align: center; }
@media (min-width: 640px) { .profile-body { padding: 0 26px 26px; } }
/* Logo stays still and sharp; a teal→pink ring slowly turns around it */
@property --ring-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.avatar, .status-card .hero-logo {
  --ring-angle: 0deg;
  display: grid; place-items: center;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--ring-angle), #009899, #5fd0cf, #c73571, #f08cb5, #009899) border-box;
  animation: ring-spin 8s linear infinite;
}
.avatar {
  position: relative;
  width: 110px; height: 110px; margin: -56px auto 12px;
  border-radius: 30px;
  box-shadow: 0 0 0 5px var(--card), 0 14px 30px -8px rgba(0, 134, 138, 0.45);
}
.avatar img { width: 68px; height: 68px; object-fit: contain; }

.profile h1 { font-family: 'Cairo', var(--font-sans); font-size: 27px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.profile .en {
  display: block; margin-top: 2px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted-foreground);
}
.slogan { margin-top: 12px; font-size: 17px; font-weight: 700; }
.slogan mark {
  color: inherit; padding: 0 4px;
  background: linear-gradient(to top, rgba(199, 53, 113, 0.28) 42%, transparent 42%);
  border-radius: 2px;
}
:root[data-theme='dark'] .slogan mark { background: linear-gradient(to top, rgba(232, 90, 146, 0.38) 42%, transparent 42%); }
.profile .about { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }
.profile .badge { margin-top: 12px; }

.actions { display: grid; gap: 10px; margin-top: 20px; }

/* Main call to action */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  color: #fff; text-align: start;
  background: var(--brand-gradient);
  background-size: 160% 100%;
  box-shadow: 0 12px 28px -10px rgba(0, 134, 138, 0.65);
  transition: transform .25s, box-shadow .25s, background-position .6s;
}
.cta:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 34px -10px rgba(199, 53, 113, 0.55); }
.cta::after { /* shimmer */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(120%);
  animation: shimmer 4.5s ease-in-out 1.5s infinite;
}
.cta-icon {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: #fff;
}
.cta-icon img { width: 28px; height: 28px; }
.cta-icon::before { /* pulse ring */
  content: ''; position: absolute; inset: -4px; border-radius: 17px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cta-title { font-size: 16px; font-weight: 700; }
.cta-sub { font-size: 12.5px; opacity: .9; }
.cta-arrow { width: 20px; height: 20px; flex: none; transition: transform .25s; }
.cta:hover .cta-arrow { transform: translateX(-4px); }

/* App store buttons */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 14px;
  background: var(--ink-btn); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform .2s, background-color .2s;
}
.store:hover { transform: translateY(-2px); background: var(--ink-btn-hover); }
.store img { width: 24px; height: 24px; flex: none; }
.store .invert { filter: invert(1); }
.store span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; text-align: start; }
.store small { font-size: 10.5px; opacity: .7; }
.store strong { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; white-space: nowrap; }

.site-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 14px;
  border: 1px dashed var(--border);
  font-size: 14px; font-weight: 600; color: var(--muted-foreground);
  transition: color .2s, border-color .2s, background-color .2s;
}
.site-link svg { width: 16px; height: 16px; }
.site-link:hover { color: var(--accent-foreground); border-color: var(--primary); border-style: solid; background: var(--accent); }

/* Right column */
.stack { display: grid; gap: 18px; min-width: 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-inline: 4px; }
.head h2 { font-family: 'Cairo', var(--font-sans); font-size: 21px; font-weight: 800; line-height: 1.3; }
.head h2 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.head p { font-size: 13px; color: var(--muted-foreground); }

/* Social bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.platform {
  --brand: var(--teal);
  position: relative; overflow: hidden;
  grid-column: span 6;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
@media (min-width: 640px) { .platform.third { grid-column: span 2; } }
.platform::before { /* brand glow in the corner */
  content: ''; position: absolute; width: 180px; height: 180px; top: -90px; inset-inline-end: -60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent);
  opacity: .55; transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.platform:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.platform:hover::before { opacity: 1; transform: scale(1.15); }
.platform-head { position: relative; display: flex; align-items: center; gap: 10px; }
.platform-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.platform-icon img { width: 24px; height: 24px; object-fit: contain; }
.platform-name { flex: 1; min-width: 0; font-family: 'Inter', 'Cairo', sans-serif; font-size: 15px; font-weight: 700; }

.handles { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.handle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 12px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  direction: ltr;
  transition: color .2s, border-color .2s, background-color .2s, transform .2s;
}
.handle svg { width: 13px; height: 13px; opacity: .45; transition: opacity .2s, transform .2s; }
.handle:hover {
  color: color-mix(in srgb, var(--brand) 85%, var(--foreground));
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  transform: translateY(-1px);
}
.handle:hover svg { opacity: 1; transform: translate(2px, -2px); }
@media (min-width: 640px) { .platform.third .handle { width: 100%; justify-content: space-between; } }

/* Compact tiles (one account each) */
.mini {
  --brand: var(--teal);
  grid-column: span 2;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mini:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); box-shadow: var(--shadow-lg); }
.mini .platform-icon { width: 44px; height: 44px; }
.mini .platform-name { font-size: 13.5px; }
.mini .mono { font-size: 11.5px; color: var(--muted-foreground); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ig { --brand: #e1306c; }
.yt { --brand: #ff0000; }
.fb { --brand: #1877f2; }
.tt { --brand: #25f4ee; }
.xx { --brand: #64748b; }
.tg { --brand: #229ed9; }
.li { --brand: #0a66c2; }
.pin { --brand: #e60023; }
.sc { --brand: #fffc00; }
.mini.wide { grid-column: span 3; }
.ig .platform-icon { background: linear-gradient(135deg, rgba(254, 218, 117, .35), rgba(214, 41, 118, .18), rgba(79, 91, 213, .2)); }
:root[data-theme='dark'] .invert-dark { filter: invert(1); }

/* FAQ */
.faq { overflow: hidden; }
.faq-title { padding: 16px 18px 6px; font-size: 15px; font-weight: 700; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; font-size: 14px; font-weight: 600;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .plus {
  flex: none; position: relative; width: 22px; height: 22px; border-radius: 7px;
  background: var(--muted); transition: background-color .2s, transform .3s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ''; position: absolute; inset: 50% auto auto 50%;
  width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: currentColor;
  transition: transform .3s;
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { background: var(--accent); color: var(--primary); transform: rotate(180deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 18px 15px; font-size: 14px; color: var(--muted-foreground); }

.foot { padding: 4px; font-size: 12px; color: var(--muted-foreground); text-align: center; }
@media (min-width: 980px) { .foot { text-align: start; } }

/* 5. Status / redirect pages ---------------------------------------------- */
.center-page { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.status-card {
  width: 100%; max-width: 400px; padding: 30px 24px; text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(140deg, rgba(0, 152, 153, 0.45), rgba(226, 232, 240, 0.4) 45%, rgba(199, 53, 113, 0.4)) border-box;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.status-card .hero-logo {
  width: 92px; height: 92px; margin: 0 auto 16px;
  border-radius: 26px;
}
.status-card .hero-logo img { width: 56px; height: 56px; object-fit: contain; }
.status-card h1 { font-family: 'Cairo', var(--font-sans); font-size: 19px; font-weight: 800; }
.status-card p { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); }
.status-card .btn { margin-top: 18px; width: 100%; height: 44px; background: var(--brand-gradient); color: #fff; }
.status-code {
  font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 8px;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.progress { position: relative; height: 4px; margin-top: 18px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.progress::before {
  content: ''; position: absolute; inset-block: 0; width: 40%;
  border-radius: inherit; background: var(--brand-gradient);
  animation: slide 1.1s ease-in-out infinite;
}
.status-foot { margin-top: 14px; font-size: 11px; color: var(--muted-foreground); }

/* 6. Inner pages (topbar, embeds) ----------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 62px;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.container { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-chip { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.brand-chip img { width: 26px; height: 26px; object-fit: contain; }
.brand-name { font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--muted-foreground); line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
main { flex: 1; }
.container > .embed-card { margin-block: 20px 32px; }
.embed-card { overflow: hidden; }
.embed-card .embed { min-height: 640px; padding: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.section-title { font-size: 15px; font-weight: 700; }
.section-desc { font-size: 12px; color: var(--muted-foreground); }
.site-footer { border-top: 1px solid var(--border); padding-block: 18px; font-size: 12px; color: var(--muted-foreground); }

/* 7. Motion ---------------------------------------------------------------- */
.reveal { animation: rise .7s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate3d(4vmax, -3vmax, 0) rotate(10deg) scale(1.06); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1 .82; } }
@keyframes ring-spin { to { --ring-angle: 360deg; } }
@keyframes ping { 0% { transform: scale(.9); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes shimmer { 0% { transform: translateX(120%); } 35%, 100% { transform: translateX(-120%); } }
@keyframes slide { from { inset-inline-start: -40%; } to { inset-inline-start: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
