:root {
  color-scheme: dark;
  --accent: #fda35c;
  --accent-2: #f59e0b;
  --accent-soft: rgba(253, 163, 92, 0.12);
  --background: #090910;
  --card: #12121d;
  --surface: #171724;
  --elevated: #1b1b29;
  --text: #f6f2ed;
  --text-secondary: #b9b3b0;
  --muted: #817b7a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --success: #62d39b;
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body { min-height: 100vh; margin: 0; background: var(--background); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 75%, white); outline-offset: 3px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; transform: translateY(-150%); border-radius: 10px; background: var(--accent); padding: 10px 14px; color: #221508; font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.live-region { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.brand__logo { display: block; width: min(154px, 42vw); height: auto; max-height: 52px; object-fit: contain; }
.brand__mark { display: block; width: 34px; height: 34px; border-radius: 11px; object-fit: contain; box-shadow: 0 10px 30px -16px rgba(253, 163, 92, 0.8); }
.brand--light { color: #fff8f2; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 20px; font-weight: 750; cursor: pointer; text-decoration: none; }
.button--primary { background: var(--gradient); color: #211306; box-shadow: 0 18px 36px -22px rgba(253, 163, 92, 0.85); }
.button--secondary { border-color: var(--border-strong); background: var(--surface); }
.button[aria-disabled="true"] { filter: saturate(0.25); pointer-events: none; opacity: 0.58; }

.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 0.95fr) minmax(480px, 1.05fr); }
.auth-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 18% 18%, rgba(253, 163, 92, 0.2), transparent 35%), radial-gradient(circle at 82% 72%, rgba(245, 158, 11, 0.13), transparent 36%), #111019; padding: clamp(28px, 5vw, 64px); isolation: isolate; }
.auth-story::before { position: absolute; right: -180px; bottom: -170px; z-index: -1; width: 520px; height: 520px; border: 1px solid rgba(253, 163, 92, 0.14); border-radius: 50%; box-shadow: 0 0 0 80px rgba(253, 163, 92, 0.03), 0 0 0 160px rgba(253, 163, 92, 0.018); content: ""; }
.auth-story__copy { max-width: 570px; margin: auto 0 34px; }
.auth-story h1 { max-width: 10ch; margin: 0; font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: 0.98; letter-spacing: -0.055em; }
.auth-story__copy > p:last-child { max-width: 48ch; margin: 24px 0 0; color: #c8bfba; font-size: 1.02rem; line-height: 1.7; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0; padding: 0; color: #bdb3ae; font-size: 0.76rem; list-style: none; }
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list span { color: var(--accent); }
.auth-panel { display: grid; min-height: 100vh; place-items: center; background: var(--background); padding: 28px; }
.auth-card { width: min(520px, 100%); }
.auth-card__mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 34px; font-family: var(--display); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 36px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: 4px; }
.auth-tabs a { display: grid; min-height: 40px; place-items: center; border-radius: 999px; color: var(--muted); font-size: 0.8rem; font-weight: 750; text-decoration: none; }
.auth-tabs a[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.auth-card h2 { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.35rem); letter-spacing: -0.035em; }
.auth-copy { margin: 10px 0 22px; color: var(--text-secondary); line-height: 1.6; }
.auth-loading { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.auth-frame { display: block; width: 100%; min-height: 360px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); border-radius: 24px; background: linear-gradient(180deg, rgba(253, 163, 92, 0.08), transparent 36%), var(--card); padding: 12px; box-shadow: var(--shadow); }
.auth-frame::before { display: block; margin: 0 0 10px; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; content: attr(data-label); }
.auth-frame #auroiq-auth { min-height: 320px; }
.auth-frame iframe { display: block; width: 100%; min-height: 430px; border: 0; border-radius: 16px; background: #fff; }
.auth-error { border: 1px solid color-mix(in srgb, #ff7d87 36%, transparent); border-radius: 18px; background: color-mix(in srgb, #ff7d87 8%, var(--card)); padding: 20px; }
.auth-error p { margin: 8px 0 16px; color: var(--text-secondary); line-height: 1.55; }
.auth-note { margin: 18px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.55; text-align: center; }

.launcher { min-height: 100vh; background: radial-gradient(circle at 72% 8%, rgba(253, 163, 92, 0.09), transparent 26%), var(--background); }
.launcher-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding: 14px clamp(20px, 5vw, 64px); }
.account-controls { display: flex; align-items: center; gap: 10px; }
.session-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); border-radius: 999px; padding: 7px 10px; color: var(--success); font-size: 0.68rem; font-weight: 750; }
.session-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent); }
.user-chip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: 0.78rem; }
.launcher-main { width: min(1180px, 100%); min-height: calc(100vh - 130px); margin: 0 auto; padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 42px); }
.launcher-main h1 { max-width: 12ch; margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: 0.98; letter-spacing: -0.055em; }
.launcher-copy { max-width: 58ch; margin: 20px 0 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.product-card { display: flex; min-height: 300px; flex-direction: column; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, var(--card), color-mix(in srgb, var(--card) 88%, var(--accent) 12%)); padding: 24px; box-shadow: 0 20px 60px -50px rgba(0, 0, 0, 0.8); }
.product-card h2 { margin: 16px 0 8px; font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.035em; }
.product-card p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.product-card__icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; background: var(--surface); color: var(--accent); font-family: var(--display); font-weight: 900; }
.product-card__status { align-self: flex-start; border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 9px; color: var(--muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.product-card__actions { margin-top: auto; padding-top: 24px; }
.product-card.is-live .product-card__status { border-color: color-mix(in srgb, var(--success) 34%, transparent); color: var(--success); }
.product-card.is-internal { border-color: color-mix(in srgb, #8ab4ff 38%, var(--border)); }
.launcher-footer { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--border); padding: 18px clamp(20px, 5vw, 64px); color: var(--muted); font-size: 0.65rem; }

@media (max-width: 920px) {
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-card__mobile-brand { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .launcher-header { align-items: flex-start; flex-direction: column; }
  .account-controls { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .auth-panel { place-items: start center; padding: 28px 20px; }
  .launcher-main { padding: 38px 16px 58px; }
  .launcher-main h1 { font-size: clamp(2.3rem, 16vw, 4rem); }
  .session-chip span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .spinner { animation: none; }
}
