:root {
  --bg: #050505;
  --bg-soft: #0d0f14;
  --surface: rgba(13, 15, 20, 0.78);
  --surface-strong: rgba(8, 9, 12, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ed;
  --muted: #aaa5a0;
  --accent: #ff5c2b;
  --accent-soft: #ff875f;
  --accent-2: #d7c0a3;
  --success: #97efcb;
  --danger: #ff9a86;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  --radius: 28px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Manrope", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top, rgba(255, 92, 43, 0.16), transparent 28%),
    radial-gradient(circle at 75% 18%, rgba(215, 192, 163, 0.12), transparent 18%),
    linear-gradient(180deg, #040404 0%, #09090c 42%, #07070a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
}

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 110px;
}

.cinematic-topbar,
.panel,
.portal-shell,
.stat-card,
.notice,
.auth-bridge-card {
  backdrop-filter: blur(20px);
}

.cinematic-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(12, 12, 16, 0.6);
}

.brand-lockup,
.topbar-nav,
.topbar-actions,
.hero-actions,
.toolbar,
.action-stack,
.inline-form,
.key-actions,
.billing-option-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-lockup {
  gap: 14px;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fff0e8, var(--accent));
  box-shadow: 0 0 24px rgba(255, 92, 43, 0.32);
}

.brand-name,
.topbar-nav a,
.eyebrow,
.detail-kicker,
.stat-card span,
.pill,
.bento-num {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.topbar-nav {
  justify-content: center;
}

.topbar-nav a {
  color: var(--muted);
  font-size: 12px;
}

.topbar-nav a:hover {
  color: var(--text);
}

.google-slot-top,
.google-slot {
  min-height: 44px;
}

.hero {
  position: relative;
}

.cinematic-hero {
  display: grid;
  gap: 42px;
  padding: 64px 12px 8px;
}

.hero-ambient-light {
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(960px, 88vw);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 92, 43, 0.18) 0%, transparent 66%);
  filter: blur(70px);
  pointer-events: none;
}

.hero-copy,
.grid-intro,
.portal-header h2,
.panel h3 {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow,
.detail-kicker {
  display: inline-flex;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}

.cinematic-title,
.section-title,
.portal-header h2,
.panel h3 {
  margin: 0;
}

.cinematic-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  padding: 0 8px;
  color: var(--accent-2);
}

.hero-text,
.grid-intro p,
.panel-copy,
.stat-card p,
.panel p,
.pricing-row span,
.ledger-item p,
.key-item p,
.key-item small,
.auth-bridge-copy p {
  color: var(--muted);
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 30px;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.glass-btn.primary {
  color: #120a07;
  font-weight: 800;
  background: linear-gradient(135deg, #fff1e8, var(--accent));
  box-shadow: 0 18px 36px rgba(255, 92, 43, 0.18);
}

.glass-btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.glass-btn.ghost {
  color: var(--accent-2);
  background: rgba(215, 192, 163, 0.08);
  border-color: rgba(215, 192, 163, 0.14);
}

.glass-btn.compact {
  min-height: 40px;
  padding: 0 16px;
}

.glass-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.hero-visual {
  perspective: 1800px;
}

.cinematic-mockup-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px 28px 0 0;
  background: #0c0c10;
  transform: rotateX(12deg) translateY(18px);
  box-shadow: var(--shadow);
  transition: transform 420ms ease;
}

.cinematic-mockup-wrapper:hover {
  transform: rotateX(6deg) translateY(0);
}

.mockup-img {
  width: 100%;
  opacity: 0.92;
}

.mockup-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.95) 100%);
}

.agent-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.78);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.agent-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 43, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 92, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 43, 0); }
}

.studio-grid,
.portal-section {
  margin-top: 42px;
}

.user-center-page {
  width: min(1220px, calc(100vw - 28px));
}

.user-center-topbar {
  margin-bottom: 22px;
}

.user-center-shell {
  display: grid;
  gap: 20px;
}

.user-center-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.92), rgba(7, 8, 11, 0.98));
  box-shadow: var(--shadow);
}

.user-center-hero h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.real-tag-list,
.capability-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.real-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(215, 192, 163, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.user-center-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
}

.emphasis-panel,
.login-panel {
  min-height: 100%;
}

.capability-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  gap: 12px;
}

.capability-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.grid-intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 20px;
}

.bento-item,
.panel,
.stat-card,
.auth-bridge-card,
.portal-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bento-item {
  position: relative;
  overflow: hidden;
  grid-column: span 6;
  border-radius: 24px;
}

.bento-large {
  grid-column: span 12;
}

.bento-tall {
  grid-row: span 2;
}

.bento-bg,
.bento-overlay {
  position: absolute;
  inset: 0;
}

.bento-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(100%) contrast(1.1);
  transition: 320ms ease;
}

.bento-item:hover .bento-bg {
  transform: scale(1.04);
  opacity: 0.75;
  filter: grayscale(10%) contrast(1.04);
}

.bento-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(4, 4, 4, 0.25) 32%, rgba(4, 4, 4, 0.92) 100%);
}

.bento-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
}

.bento-num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
}

.bento-content h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.portal-shell {
  border-radius: 30px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.9), rgba(7, 8, 11, 0.96));
}

.portal-header,
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.portal-header {
  margin-bottom: 22px;
}

.portal-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.04em;
}

.notice-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.notice {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.notice.success {
  color: var(--success);
  background: rgba(151, 239, 203, 0.1);
}

.notice.error {
  color: var(--danger);
  background: rgba(255, 154, 134, 0.1);
}

.auth-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.auth-bridge-copy,
.auth-bridge-card {
  border-radius: 24px;
}

.auth-bridge-copy {
  padding: 10px 4px 4px;
}

.auth-bridge-copy h3 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.auth-bridge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.overview-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.stat-card {
  border-radius: 24px;
}

.stat-card {
  padding: 24px;
}

.stat-card span,
.pill {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.panel {
  padding: 24px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 28px;
}

.inline-form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.phone-login-form {
  display: grid;
  gap: 12px;
}

.phone-login-form input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.phone-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.secret-box,
.key-item,
.billing-option,
.pricing-row,
.ledger-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.secret-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
}

.secret-box span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.key-list,
.billing-card-grid,
.pricing-list,
.ledger-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.billing-section {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.billing-section h4,
.billing-option h4 {
  margin: 0;
}

.billing-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.billing-option {
  display: grid;
  min-height: 210px;
  gap: 18px;
  align-content: space-between;
  padding: 16px;
}

.billing-option.selected {
  border-color: rgba(105, 214, 178, 0.42);
  background: rgba(105, 214, 178, 0.08);
}

.billing-option p,
.billing-option small {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
}

.billing-option-foot {
  justify-content: space-between;
}

.billing-option-foot strong {
  font-size: 18px;
}

.portal-actions {
  margin-top: 18px;
}

.key-item,
.pricing-row,
.ledger-item {
  padding: 16px;
}

.key-item,
.ledger-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.key-item strong,
.ledger-item strong {
  display: block;
  margin-bottom: 6px;
}

.key-item p,
.key-item small,
.ledger-item p {
  margin: 0;
}

.key-actions {
  justify-content: end;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(215, 192, 163, 0.16);
  background: rgba(215, 192, 163, 0.08);
}

.pill.muted {
  color: var(--muted);
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-row strong {
  font-size: 16px;
}

.ledger-item span {
  color: var(--success);
  font-weight: 800;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .bento-large {
    grid-column: span 8;
  }

  .bento-item:not(.bento-large):not(.bento-tall) {
    grid-column: span 4;
  }
}

@media (max-width: 1024px) {
  .cinematic-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar-nav {
    justify-content: start;
  }

  .overview-grid,
  .content-grid,
  .auth-bridge,
  .user-center-login-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-item,
  .bento-large,
  .bento-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100vw - 20px, 1320px);
    padding-top: 14px;
  }

  .cinematic-hero,
  .portal-shell,
  .panel,
  .stat-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .toolbar,
  .action-stack,
  .inline-form,
  .topbar-actions {
    width: 100%;
  }

  .glass-btn.wide-mobile,
  .glass-btn.primary,
  .glass-btn.secondary,
  .glass-btn.ghost {
    width: 100%;
  }

  .toolbar .glass-btn.compact,
  .topbar-actions .glass-btn.compact {
    width: auto;
  }

  .portal-header,
  .panel-head,
  .key-item,
  .ledger-item,
  .user-center-hero {
    flex-direction: column;
  }

  .key-actions {
    justify-content: start;
  }

  .agent-badge {
    position: static;
    margin: 12px;
    width: fit-content;
  }
}
