/* ==========================================================================
   胖虎AI中转站 - 统一设计系统与样式文件 (home.css)
   ---------------------------------------------------------------------
   Design tokens (see :root below for exact values):
     --card-edge-rgb   shared RGB base for all card borders / backplates /
                       glow rings — only alpha may vary, never a second RGB.
     --card / --hair   card fill and 1px hairline border base colors.
     --blue/--violet/--cyan   core accent hues (cool-only: no warm, no green).
     --sh-sm/md/lg     elevation shadow ladder (small -> large lift).
     --r-xs..--r-full  corner-radius ladder (8px -> pill).
     --t-fast/normal/slow   transition duration ladder.
     --ease            standard easing curve.
     --*-c / --*-t     tint pairs (background / text) for status chips.
   ========================================================================== */

/*
著作権について: 本ページのデザイン・レイアウト・ソースコード（HTML/CSS/JavaScript）は
PanghuAI（胖虎AI）の独自著作物であり、著作権法により保護されています。事前の書面による
許可なく、複製・模倣・スクレイピング、またはAIの学習・再構築のために本コードを使用する
ことを禁じます。
*/

/* Self-hosted Material Symbols Rounded icon font — mirrors the web/classic
   console fix (see src/styles/gemini-theme.css): fonts.googleapis.com /
   fonts.gstatic.com is unreliable on the mainland China network path, so
   the icon font (originally loaded with display=block, which blocks
   render until the font is ready) is now served locally instead. Weight
   is locked to 300 because only the wght:300 static instance is
   embedded — any other inherited font-weight breaks the icon ligatures
   and renders literal English words instead of glyphs. */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url('/fonts/material-symbols-rounded.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: rgb(0, 0, 0);
  --bg-dark: rgb(0, 0, 0);
  
  /* Gemini Premium Card Material Tokens */
  --card: rgba(255, 255, 255, 0.03);          /* 卡面：克制干净的深灰磨砂玻璃 */
  --hair: rgba(138, 180, 248, 0.30);       /* 1px 冷色微光细描边 */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.13);   /* 顶部受光微光线 */
  --edge-hover: inset 0 1px 0 rgba(255, 255, 255, 0.18); /* 顶部受光亮线 */
  --sh-md: 0 8px 24px rgba(0, 0, 0, 0.45);           /* 柔和抬升阴影 */
  --sh-lg: 0 20px 50px rgba(0, 0, 0, 0.55);

  --bg2: rgba(0, 0, 0, 0.15);
  --surface-2: rgba(255, 255, 255, 0.02);
  --surface-3: rgba(138, 180, 248, 0.04);
  --text-title: #FFFFFF;
  --text: #F8FAFF;
  --muted: #E5E9F2;
  --subtle: #B0B7C3;
  --outline: rgba(255, 255, 255, 0.08);
  --outline-subtle: rgba(255, 255, 255, 0.04);

  --blue: #8AB4F8;
  --violet: #8C82DC;
  --cyan: #72E4FF;

  --card-edge-rgb: 114, 228, 255; /* 全站卡片边框线/背板填充/glow-ring 必须共用这一个 RGB 基色，只允许 alpha 不同，不允许再出现第二个独立调的蓝 */

  /* Shared idle card backplate — used identically by both the outline-ring
     cards and the border-ring mini tiles below; keep the two rules in sync
     through these tokens instead of two copies of the same literal. */
  --card-aurora-bg: rgba(8, 10, 18, 0.30);
  --card-aurora-mesh:
    radial-gradient(ellipse 65% 50% at 18% 12%, rgba(138, 180, 248, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(114, 228, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 30% 90%, rgba(140, 130, 220, 0.15), transparent 65%),
    radial-gradient(ellipse 55% 50% at 90% 85%, rgba(114, 228, 255, 0.10), transparent 60%);

  --on-spark: #FFFFFF;
  
  /* Gradients */
  --g-spark: linear-gradient(100deg, #4285F4 0%, #8C82DC 45%, #72E4FF 100%);
  --g-name: linear-gradient(96deg, #8AB4F8, #8C82DC 45%, #72E4FF);
  --g-bloom: radial-gradient(ellipse 62% 46% at 50% 0%, rgba(66, 133, 244, 0.34), transparent 70%);
  --g-panel-ripple: radial-gradient(circle, rgba(138, 180, 248, 0.12) 0%, transparent 70%);
  --g-ambient: radial-gradient(circle at 80% 20%, rgba(114, 228, 255, 0.04) 0%, transparent 40%),
               radial-gradient(circle at 20% 80%, rgba(140, 130, 220, 0.03) 0%, transparent 35%),
               radial-gradient(circle at 50% 50%, rgba(138, 180, 248, 0.02) 0%, transparent 50%);
  --g-progress: linear-gradient(90deg, rgb(138, 180, 248) 0%, rgb(114, 228, 255) 50%, rgb(140, 130, 220) 100%);
  --g-screen-wash: radial-gradient(ellipse 160% 110% at 50% 0%, rgba(114, 228, 255, 0.220), rgba(138, 180, 248, 0.120) 48%, rgba(114, 228, 255, 0.055) 76%, transparent 100%), linear-gradient(180deg, rgba(138, 180, 248, 0.085), rgba(114, 228, 255, 0.050) 55%, rgba(138, 180, 248, 0.075));
 
  /* Scifi Scanlines, Hologram Borders and Sheen Gradients */
  --g-scanlines: repeating-linear-gradient(rgba(138, 180, 248, 0.048) 0px, rgba(138, 180, 248, 0.048) 1px, transparent 1px, transparent 4px);
  --g-scanlines-hover: repeating-linear-gradient(rgba(138, 180, 248, 0.062) 0px, rgba(138, 180, 248, 0.062) 1px, transparent 1px, transparent 4px);

  /* Multi-color tinted values (solid RGBA, not gradient) */
  --blue-c: rgba(138, 180, 248, 0.10); --blue-t: #AECBFB;
  --grn-c: rgba(147, 211, 166, 0.09); --grn-t: #93D3A6;
  --pur-c: rgba(140, 130, 220, 0.11); --pur-t: #CDB6F2;
  --cor-c: rgba(255, 122, 200, 0.10); --cor-t: #FFB5DD;

  --r-full: 999px;
  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 8px;

  --t-fast: 150ms;
  --t-normal: 250ms;
  --t-slow: 450ms;

  --ease: cubic-bezier(0.2, 0, 0, 1);

  --sh-sm: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-dark: #000000;
  --bg2: rgba(0, 0, 0, 0.15);
  --surface-2: rgba(255, 255, 255, 0.02);
  --surface-3: rgba(138, 180, 248, 0.04);
  --text-title: #FFFFFF;
  --text: #F8FAFF;
  --muted: #E5E9F2;
  --subtle: #B0B7C3;
  --outline: rgba(255, 255, 255, 0.08);
  --outline-subtle: rgba(255, 255, 255, 0.04);

  --blue: #8AB4F8;
  --violet: #8C82DC;
  --cyan: #72E4FF;

  --on-spark: #FFFFFF;
}

/* ==========================================================================
   CSS Reset & Base Settings
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-dark);
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, 'Noto Sans SC', system-ui, sans-serif;
  background-color: transparent;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--text-title);
  font-weight: 600;
}

/* ==========================================================================
   Design Standard: Background Layer Stack
   ========================================================================== */
.gemini-ambient {
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background: var(--g-ambient);
  filter: blur(54px) saturate(1.1);
  opacity: .35;
  animation: geminiAmbientDrift 20s ease-in-out infinite alternate;
}

@keyframes geminiAmbientDrift {
  0% { transform: translate3d(-6%, -4%, 0) scale(1); opacity: .66; }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); opacity: .88; }
  100% { transform: translate3d(8%, -6%, 0) scale(1.04); opacity: .74; }
}

@media (prefers-reduced-motion: reduce) {
  .gemini-ambient {
    animation: none;
    opacity: .58;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
}


.space-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg);
}

.space-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: paint;
  overflow: hidden;
  opacity: 0.10;
}

.space-grid::before {
  content: "";
  position: absolute;
  inset: -24% -12%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cline x1='0' y1='0' x2='80' y2='0' stroke='rgba(138,180,248,0.05)' stroke-width='1'/%3E%3Cline x1='0' y1='0' x2='0' y2='80' stroke='rgba(138,180,248,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='transparent'/%3E%3Cstop offset='15%25' stop-color='black'/%3E%3Cstop offset='85%25' stop-color='black'/%3E%3Cstop offset='100%25' stop-color='transparent'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1' height='100' fill='url(%23g)'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  transform: perspective(900px) rotateX(60deg) translateY(12vh) scale(1.25);
  transform-origin: center bottom;
}

/* ==========================================================================
   Global Interactive Styles & Buttons (Ladder: 999px)
   ========================================================================== */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.ghost-button {
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.ghost-button:active {
  transform: scale(0.97);
}

.primary-button {
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: var(--g-spark);
  color: var(--on-spark);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              filter var(--t-fast) var(--ease);
  box-shadow: 0 8px 18px rgba(66, 133, 244, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(138, 92, 255, 0.35), 0 0 24px rgba(114, 228, 255, 0.2);
  filter: brightness(1.08) saturate(1.08);
}

.primary-button:active {
  transform: scale(0.97);
}

.tonal-button {
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.tonal-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.tonal-button:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Header Pill Navigation (Ladder: 28px)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(1200px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 32px;
  border: 1px solid rgba(var(--card-edge-rgb), 0.35);
  border-radius: var(--r-lg);
  background: 
    radial-gradient(circle at 20% 50%, rgba(138, 180, 248, 0.06), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(114, 228, 255, 0.04), transparent 50%),
    rgba(8, 10, 16, 0.35);
  box-shadow: var(--sh-md), var(--edge), 0 0 16px rgba(var(--card-edge-rgb), 0.08);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: top var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease),
              border-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease);
}

.site-header.scrolled {
  background: 
    radial-gradient(circle at 20% 50%, rgba(138, 180, 248, 0.08), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(114, 228, 255, 0.06), transparent 50%),
    rgba(8, 10, 16, 0.55);
  border-color: rgba(var(--card-edge-rgb), 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), var(--edge), 0 0 20px rgba(var(--card-edge-rgb), 0.12);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.site-header .ghost-button {
  padding: 6px 18px;
  font-size: 13px;
  min-height: 36px;
}

.site-header .ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(138, 180, 248, 0.35);
  box-shadow: 0 0 12px rgba(138, 180, 248, 0.08);
}

.site-header .primary-button {
  padding: 6px 20px;
  font-size: 13px;
  min-height: 36px;
}

.site-header .primary-button:hover {
  filter: brightness(1.12) saturate(1.08);
  box-shadow: 0 12px 32px rgba(140, 130, 220, 0.4), 0 0 24px rgba(114, 228, 255, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.brand span:last-child {
  background: linear-gradient(135deg, var(--on-spark) 60%, var(--blue-t));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-mark {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(8, 18, 36, 0.9);
  border: 1.5px solid rgba(138, 180, 248, 0.3);
  box-shadow: 0 0 12px rgba(138, 180, 248, 0.25);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.brand:hover .brand-mark {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(114, 228, 255, 0.4);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-full);
  padding: 4px;
  width: fit-content;
  margin: 0 auto;
}

.top-nav a {
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  border: 1px solid transparent;
  position: relative;
}

.top-nav a:hover {
  color: var(--blue);
  background: rgba(138, 180, 248, 0.06);
  border-color: rgba(138, 180, 248, 0.1);
}

.top-nav a.active {
  color: var(--on-spark);
  background: rgba(138, 180, 248, 0.15);
  border-color: rgba(138, 180, 248, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 12px rgba(138, 180, 248, 0.12);
}

.top-nav a.nav-dev-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-nav a.nav-dev-link small {
  padding: 2px 6px;
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 600;
  background: rgba(114, 228, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(114, 228, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Main Grid Container
   ========================================================================== */
.holo-home {
  position: relative;
  z-index: 5;
  width: min(1200px, calc(100vw - 48px));
  margin: 120px auto 0;
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 0 12px;
}

/* ==========================================================================
   Section Base & Typo
   ========================================================================== */
.deck-section {
  position: relative;
  padding: 40px 0;
}

/* Ensure fixed header doesn't cover section headers when scrolled to anchor */
.deck-section[id] {
  scroll-margin-top: 108px;
}

.section-head {
  margin-bottom: 40px;
  max-width: 700px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
}

.section-head p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  color: rgba(138, 180, 248, 0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ==========================================================================
   Panels Style System (Ladder: 28px/16px/12px)
   ========================================================================== */
.holo-panel {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hair);
  box-shadow: var(--sh-md), var(--edge);
  transition: border-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease);
  overflow: hidden;
}

.holo-panel:hover {
  background: var(--card);
  border-color: rgba(138, 180, 248, 0.35);
  box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.35), 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 46px rgba(138, 180, 248, 0.28);
  --tilt-translate-y: -3px;
}

/* Gemini Style Additions */
.gemini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm); /* 12px */
  background: var(--g-spark);
  color: var(--on-spark);
  box-shadow: 0 6px 16px rgba(120, 90, 220, 0.30);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.gemini-badge span.ms {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  color: var(--on-spark);
}

.section-bloom {
  position: absolute;
  inset: -120px 0 auto 0;
  height: 380px;
  z-index: 0;
  pointer-events: none;
  background: var(--g-bloom);
  filter: blur(26px);
  opacity: 0.85;
}

/* Multi-color Tinted Utility Styles (Avoiding !important) */
.hero-proof span.tint-blue, .model-radar span.tint-blue, .signal-row span.tint-blue, .enterprise-mini-status span.tint-blue, .prompt-meta span.tint-blue, .endpoint-status span.tint-blue { background-color: var(--blue-c); color: var(--blue-t); border-color: rgba(138, 180, 248, 0.2); }
.hero-proof span.tint-green, .model-radar span.tint-green, .signal-row span.tint-green, .enterprise-mini-status span.tint-green, .prompt-meta span.tint-green, .endpoint-status span.tint-green { background-color: var(--grn-c); color: var(--grn-t); border-color: rgba(147, 211, 166, 0.2); }
.hero-proof span.tint-purple, .model-radar span.tint-purple, .signal-row span.tint-purple, .enterprise-mini-status span.tint-purple, .prompt-meta span.tint-purple, .endpoint-status span.tint-purple { background-color: var(--pur-c); color: var(--pur-t); border-color: rgba(183, 156, 255, 0.2); }
.hero-proof span.tint-coral, .model-radar span.tint-coral, .signal-row span.tint-coral, .enterprise-mini-status span.tint-coral, .prompt-meta span.tint-coral, .endpoint-status span.tint-coral { background-color: var(--cor-c); color: var(--cor-t); border-color: rgba(255, 122, 200, 0.2); }

.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--subtle);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(114, 228, 255, 0.30);
}

.panel-topline i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  position: relative;
  animation: panelDotBreathe 3.5s ease-in-out infinite;
}

.panel-topline i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 228, 255, 0.28));
  pointer-events: none;
}

@keyframes panelDotBreathe {
  0%, 100% {
    opacity: 0.65;
    box-shadow: 0 0 5px var(--cyan);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px var(--cyan);
  }
}

/* ==========================================================================
   Hero Layout
   ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  min-height: calc(80vh - 110px);
}

.hero-title-row h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.hero-title-main {
  display: block;
  color: var(--text-title);
  font-weight: 500;
}

.hero-title-sub {
  display: block;
  background: var(--g-name);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-top: 4px;
}

.ai-built-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--outline);
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 16px;
}

.deck-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 500px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof span {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--outline);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-panel {
  grid-column: span 2;
  box-shadow: var(--edge), var(--sh-md);
}

.hero-panel h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 0 0 10px;
}

.hero-panel p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}

.signal-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.signal-row span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(114, 228, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(114, 228, 255, 0.15);
}

.status-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--bg2);
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(138, 180, 248, 0.06);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), var(--sh-sm);
}

.status-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 180, 248, 0.15), transparent);
  pointer-events: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.status-board div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-2);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(138, 180, 248, 0.08);
  border-left: 2px solid var(--blue);
  border-left-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.status-board div:hover {
  background: var(--surface-3);
  border-color: rgba(138, 180, 248, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.status-board b {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-t);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-board span {
  font-size: 12.5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.status-board div:nth-child(1) {
  border-left-color: var(--blue);
}
.status-board div:nth-child(2) {
  border-left-color: var(--violet);
}

.route-orbit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.route-orbit a {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--outline-subtle);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

/* Primary/Tonal accent action hierarchy: 账号登录 */
.route-orbit a[href="/login"] {
  background: rgba(138, 180, 248, 0.08);
  border: 1px solid rgba(138, 180, 248, 0.2);
  color: var(--blue-t);
  font-weight: 600;
  box-shadow: var(--edge), 0 2px 8px rgba(138, 180, 248, 0.05);
}

.route-orbit a[href="/login"]:hover {
  background: rgba(138, 180, 248, 0.14);
  border-color: var(--blue);
  color: var(--text);
  box-shadow: var(--edge), 0 4px 16px rgba(138, 180, 248, 0.15);
  transform: translateY(-1px);
}

/* Ghost action hierarchy: 企业工作台 */
.route-orbit a[href="#enterprise"] {
  background: transparent;
  border: 1px solid var(--outline-subtle);
  color: var(--muted);
  font-weight: 500;
}

.route-orbit a[href="#enterprise"]:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Model Panel */
.model-panel {
  grid-column: span 2;
}

.model-radar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .model-radar {
    grid-template-columns: 1fr 1fr;
  }
}

.model-radar span {
  padding: 8px 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--outline-subtle);
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.model-radar span:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(138, 92, 255, 0.05);
  transform: translateY(-1px);
}

.radar-caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--subtle);
}

/* ==========================================================================
   Enterprise Layout (Ladder: 16px cards)
   ========================================================================== */
.enterprise-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.enterprise-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enterprise-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--outline-subtle);
  margin-bottom: 8px;
}

.enterprise-stack-header strong {
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  color: var(--text-title);
}

.enterprise-stack-header span {
  font-size: 12.5px;
  color: var(--muted);
}

.enterprise-stack-header small {
  padding: 4px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(110, 168, 254, 0.12);
  color: var(--blue-t);
  border: 1px solid rgba(110, 168, 254, 0.2);
  white-space: nowrap;
}

.enterprise-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enterprise-cards-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enterprise-card {
  background: var(--card);
  border-radius: var(--r-md);
  border: 1px solid var(--hair);
  box-shadow: var(--sh-md), var(--edge);
  padding: 24px;
  transition: border-color var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease);
  position: relative;
}

.enterprise-card.card-primary {
  --card-bg: rgba(25, 27, 36, 0.03);
  border-color: transparent; /* left to the shared outline ring below — a separate border-color here would stack into a visible double edge */
}

.enterprise-card:hover {
  border-color: rgba(138, 180, 248, 0.35);
  box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.35), 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 46px rgba(138, 180, 248, 0.28);
  --tilt-translate-y: -3px;
}

.enterprise-timeline {
  margin-top: 24px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--r-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.timeline-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-t);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 12px;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--outline-subtle);
}

.timeline-step {
  display: flex;
  gap: 12px;
  position: relative;
  align-items: flex-start;
}

.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--subtle);
  margin-top: 6px;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--bg);
}

.timeline-step.active .step-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 0 3px var(--bg);
}

.step-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-phase {
  font-size: 10px;
  font-family: 'Roboto Mono', monospace;
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 4px;
  border-radius: var(--r-xs);
}

.timeline-step.active .step-phase {
  color: var(--cyan);
  background: rgba(114, 228, 255, 0.08);
}

.step-name {
  font-size: 13px;
  color: var(--muted);
}

.timeline-step.active .step-name {
  color: var(--text);
  font-weight: 500;
}

.step-status {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.03);
  color: var(--subtle);
}

.timeline-step.active .step-status {
  background: rgba(114, 228, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(114, 228, 255, 0.2);
}

.window-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.window-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.enterprise-card h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 0 0 8px;
}

.enterprise-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}

.enterprise-mini-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.enterprise-mini-status span {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--outline-subtle);
  font-variant-numeric: tabular-nums;
}


.enterprise-preview-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--sh-md), inset 0 0 12px rgba(255, 255, 255, 0.02);
  border-color: rgba(114, 228, 255, 0.15);
  background: rgba(0, 0, 0, 0.03);
}

.enterprise-preview-panel:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(114, 228, 255, 0.1);
  border-color: rgba(114, 228, 255, 0.3);
}

.enterprise-preview-chrome {
  margin-bottom: 12px;
}

.enterprise-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.enterprise-preview-grid > div {
  padding: 16px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface-2);
  border: 1px solid rgba(138, 180, 248, 0.08);
  border-left: 2px solid var(--blue);
  border-left-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease),
              transform var(--t-normal) var(--ease);
}

.enterprise-preview-grid > div:hover {
  background: var(--surface-3);
  border-color: rgba(138, 180, 248, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.enterprise-preview-grid span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-t);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.enterprise-preview-grid strong {
  font-size: 25px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-title);
  margin-top: 4px;
  display: block;
}

.enterprise-preview-grid small {
  font-size: 11px;
  color: var(--subtle);
  margin-top: 8px;
  line-height: 1.4;
}

.enterprise-preview-grid > div.enterprise-balance-card,
.enterprise-preview-grid > div.enterprise-token-card {
  border-left-color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(138, 180, 248, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.enterprise-preview-grid > div.enterprise-balance-card:hover,
.enterprise-preview-grid > div.enterprise-token-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(138, 180, 248, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.enterprise-preview-grid > div.enterprise-team-card {
  border-left-color: var(--violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(140, 130, 220, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.enterprise-preview-grid > div.enterprise-team-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(140, 130, 220, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.enterprise-preview-grid > div.enterprise-queue-card {
  border-left-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(114, 228, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.enterprise-preview-grid > div.enterprise-queue-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(114, 228, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.enterprise-preview-grid i {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--r-full);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.enterprise-preview-grid i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p, 50%);
  background: var(--g-progress);
  background-size: 200% auto;
  animation: progressBarFlow 8s linear infinite;
  border-radius: var(--r-full);
  box-shadow: 0 0 10px rgba(114, 228, 255, 0.35);
}

.enterprise-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.enterprise-actions a {
  flex: 1;
  text-align: center;
}

.enterprise-dev-note {
  font-size: 12px;
  color: var(--subtle);
  text-align: center;
  margin: 12px 0 0;
}

/* ==========================================================================
   Invite & Rebate Layout
   ========================================================================== */
.rebate-stage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.rebate-flow-panel {
  box-shadow: var(--edge), var(--sh-md);
}

.rebate-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.rebate-flow::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: var(--g-rebate-flow-line);
  opacity: 0.25;
  z-index: 1;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md), var(--edge);
  position: relative;
  z-index: 2;
  transition: border-color var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease);
}

.flow-step:hover {
  background: var(--card);
  border-color: rgba(138, 180, 248, 0.35);
  --tilt-translate-y: -3px;
  box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.35), 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 46px rgba(138, 180, 248, 0.28);
}

.flow-step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(138, 180, 248, 0.1);
  border: 1px solid rgba(138, 180, 248, 0.2);
  color: var(--blue);
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 8px rgba(138, 180, 248, 0.05);
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.flow-step:hover .step-num {
  background: var(--blue);
  color: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.flow-step .step-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-step strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-title);
}

.flow-step span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}


.rebate-card-panel {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: var(--sh-md), inset 0 0 12px rgba(255, 255, 255, 0.02);
}

.rebate-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  box-shadow: var(--sh-md), inset 0 0 12px rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-normal) var(--ease),
              transform var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease);
}

.rebate-meter:hover {
  border-color: rgba(138, 180, 248, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(138, 180, 248, 0.08);
  background: rgba(255, 255, 255, 0.02);
  --tilt-translate-y: -3px;
}

.rebate-meter span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.rebate-meter strong {
  font-size: 28px;
  font-weight: 400;
  margin: 6px 0;
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  color: var(--text-title);
}

.rebate-meter small {
  font-size: 11px;
  color: var(--subtle);
}

.rebate-meter i {
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-full);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.rebate-meter i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p, 72%);
  background: var(--g-progress);
  background-size: 200% auto;
  animation: progressBarFlow 8s linear infinite;
  border-radius: var(--r-full);
  box-shadow: 0 0 10px rgba(114, 228, 255, 0.35);
}

.rebate-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.rebate-mini-grid > div {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid rgba(138, 180, 248, 0.08);
  border-left: 2px solid var(--blue);
  border-left-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease),
              transform var(--t-normal) var(--ease);
}

.rebate-mini-grid > div:hover {
  background: var(--surface-3);
  border-color: rgba(138, 180, 248, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.rebate-mini-grid strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-t);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.rebate-mini-grid span {
  font-size: 12.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rebate-mini-grid > div:nth-child(1),
.rebate-mini-grid > div:nth-child(4) {
  border-left-color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(138, 180, 248, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.rebate-mini-grid > div:nth-child(1):hover,
.rebate-mini-grid > div:nth-child(4):hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(138, 180, 248, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.rebate-mini-grid > div:nth-child(2) {
  border-left-color: var(--violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(140, 130, 220, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.rebate-mini-grid > div:nth-child(2):hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(140, 130, 220, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.rebate-mini-grid > div:nth-child(3) {
  border-left-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(114, 228, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.rebate-mini-grid > div:nth-child(3):hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(114, 228, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.rebate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rebate-actions a {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Prompts Lightbox Cards Layout
   ========================================================================== */
.prompt-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.prompt-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--edge), var(--sh-md);
}


.prompt-visual {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 16px;
}

.prompt-panel.prompt-card-1 .prompt-visual {
  aspect-ratio: 1 / 1;
}

.prompt-panel.prompt-card-2 .prompt-visual,
.prompt-panel.prompt-card-3 .prompt-visual {
  aspect-ratio: 9 / 16;
  max-height: 380px;
}

.prompt-panel.prompt-card-2 {
  --card-bg: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(138, 180, 248, 0.08);
  border-color: transparent; /* left to the shared outline ring — an independent border-color here would stack into a visible double edge */
}

.prompt-panel.prompt-card-2:hover {
  border-color: transparent; /* same as idle state — no independent border-color on hover either, to avoid a double edge */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 48px rgba(138, 180, 248, 0.12);
}

.prompt-visual picture,
.prompt-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}

.prompt-visual:hover img {
  transform: scale(1.04);
}

.zoom-lens {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-normal) var(--ease);
}

.zoom-lens::before {
  content: "\e8ff";
  font-family: 'Material Symbols Rounded';
  font-size: 32px;
  color: var(--text);
}

.prompt-visual:hover .zoom-lens {
  opacity: 1;
}

.prompt-panel p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-panel.prompt-main p {
  -webkit-line-clamp: 6;
}

.prompt-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.prompt-meta span {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--outline-subtle);
  font-weight: 500;
}

.prompt-panel .action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.copy-btn {
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  background: var(--grn-c);
  color: var(--grn-t);
  border-color: var(--grn-t);
}

.prompt-panel .action-row a {
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: rgba(138, 180, 248, 0.08);
  color: var(--blue);
  border: 1px solid rgba(138, 180, 248, 0.15);
  text-align: center;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  font-size: 13px;
  font-weight: 500;
}

.prompt-panel .action-row a:hover {
  background: rgba(138, 180, 248, 0.15);
  border-color: var(--blue);
  color: var(--text);
}

/* ==========================================================================
   Ops Section
   ========================================================================== */
.ops-stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}


.code-panel {
  --card-bg: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 36px rgba(0, 0, 0, 0.55);
  transition: border-color var(--t-normal) var(--wave-x),
              box-shadow var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease);
}

.code-panel:hover {
  --card-bg: rgba(10, 11, 14, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 24px rgba(114, 228, 255, 0.08);
  border-color: rgba(138, 180, 248, 0.35);
  --tilt-translate-y: -3px;
}

.code-panel pre {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--r-sm);
  border: 1px solid var(--outline-subtle);
  overflow-x: auto;
}

.code-panel code {
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  color: var(--cyan);
  line-height: 1.5;
}

.endpoint-status {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.endpoint-status span {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(114, 228, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(114, 228, 255, 0.15);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wallet-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--edge), var(--sh-md);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-grid > div {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface-2);
  border: 1px solid rgba(138, 180, 248, 0.08);
  border-left: 2px solid var(--blue);
  border-left-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color var(--t-normal) var(--ease),
              background-color var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              transform var(--t-normal) var(--ease);
}

.metric-grid > div:hover {
  background: var(--surface-3);
  border-color: rgba(138, 180, 248, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.metric-grid strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
}

.metric-grid span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.metric-grid > div:nth-child(1),
.metric-grid > div:nth-child(4) {
  border-left-color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(138, 180, 248, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.metric-grid > div:nth-child(1):hover,
.metric-grid > div:nth-child(4):hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(138, 180, 248, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.metric-grid > div:nth-child(2) {
  border-left-color: var(--violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(140, 130, 220, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.metric-grid > div:nth-child(2):hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(140, 130, 220, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.metric-grid > div:nth-child(3) {
  border-left-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 3px 0 12px -8px rgba(114, 228, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.metric-grid > div:nth-child(3):hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 12px -8px rgba(114, 228, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.metric-grid > div.is-near-pointer {
  transition: border-color 0.55s ease-out, box-shadow 0.55s ease-out;
}
.metric-grid > div:nth-child(1).is-near-pointer,
.metric-grid > div:nth-child(4).is-near-pointer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 16px -6px rgba(138, 180, 248, 0.65), 0 0 18px rgba(138, 180, 248, 0.22), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.metric-grid > div:nth-child(2).is-near-pointer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 16px -6px rgba(140, 130, 220, 0.65), 0 0 18px rgba(140, 130, 220, 0.22), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.metric-grid > div:nth-child(3).is-near-pointer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 16px -6px rgba(114, 228, 255, 0.7), 0 0 18px rgba(114, 228, 255, 0.24), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.metric-grid > div.is-near-pointer i::after {
  filter: brightness(1.55) drop-shadow(0 0 5px rgba(114, 228, 255, 0.5));
  transition: filter 0.55s ease-out;
}

.metric-grid i {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--r-full);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.metric-grid i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p, 50%);
  background: var(--g-progress);
  background-size: 200% auto;
  animation: progressBarFlow 8s linear infinite;
  border-radius: var(--r-full);
  box-shadow: 0 0 10px rgba(114, 228, 255, 0.35);
}

/* ==========================================================================
   Footer Section (Ladder: 28px/16px)
   ========================================================================== */
.site-footer-section {
  padding-bottom: 40px;
}

.site-footer-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 32px;
  position: relative;
}

.site-footer-copy h2 {
  font-size: 20px;
  font-weight: 550;
  margin: 0 0 12px;
  line-height: 1.3;
}

.site-footer-copy p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.site-footer-note-panel {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--r-md);
  border: 1px solid var(--hair);
  padding: 20px;
  position: relative;
  box-shadow: var(--sh-md), inset 0 0 12px rgba(255, 255, 255, 0.02);
}

.site-footer-note-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  margin-top: 24px;
  position: relative;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
}

.site-footer-brand strong {
  font-size: 15px;
  font-weight: 600;
  display: block;
  color: var(--text-title);
}

.site-footer-brand p {
  font-size: 12px;
  color: var(--subtle);
  margin: 2px 0 0;
}

.site-footer-copyright {
  font-size: 13.5px;
  color: var(--subtle);
}

/* ==========================================================================
   Image Lightbox Overlay
   ========================================================================== */

.image-lightbox-modal,
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(16, 17, 22, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal) var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(66, 133, 244, 0.1);
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--outline);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.lightbox-close::before {
  content: "\e5cd";
  font-family: 'Material Symbols Rounded';
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Interactive card custom ripple light */
.panel-ripple {
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--g-panel-ripple);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--wave-x, -500px);
  top: var(--wave-y, -500px);
  transition: opacity var(--t-normal) var(--ease);
  opacity: 0;
}

.holo-panel.is-waving .panel-ripple,
.enterprise-card.is-waving .panel-ripple,
.flow-step.is-waving .panel-ripple,
.metric-grid > div.is-waving .panel-ripple {
  opacity: 1;
}

/* ==========================================================================
   Responsive & Adaptive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-top: 20px;
  }
  .enterprise-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rebate-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .prompt-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ops-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: auto 1fr;
    border-radius: var(--r-md);
    padding: 10px 16px;
    top: 12px;
    width: calc(100vw - 24px);
  }
  .top-nav {
    display: none;
  }
  .header-actions {
    justify-content: flex-end;
  }
  .hero-title-row h1 {
    font-size: 34px;
  }
  .hero-stage {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    grid-column: span 1;
  }
  .enterprise-preview-grid {
    grid-template-columns: 1fr;
  }
  .holo-home {
    margin-top: 90px;
    gap: 40px;
  }
  .prompt-panel.prompt-main .prompt-visual {
    aspect-ratio: 1;
    max-height: none;
  }
}

/* Accessibility Focus Indicators */
body :focus-visible,
body a:focus-visible,
body button:focus-visible,
body [role="button"]:focus-visible,
body .prompt-visual:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(138, 180, 248, 0.25), 0 0 20px rgba(138, 180, 248, 0.15);
  border-radius: var(--r-xs);
}

body button:focus-visible,
body a:focus-visible,
body .ghost-button:focus-visible,
body .primary-button:focus-visible,
body .tonal-button:focus-visible,
body .copy-btn:focus-visible {
  border-radius: var(--r-full);
}

/* Nav Link Underline Glow on Active */
.top-nav a {
  position: relative;
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: var(--r-full);
  box-shadow: 0 0 10px rgba(114, 228, 255, 0.6);
}

.brand {
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.brand:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

/* ==========================================================================
   Gemini Premium Dynamic Card & Badge Effects
   ========================================================================== */

/* 1. Focus Card Breathing Glow */
.hero-panel.focus-bloom,
.prompt-panel.focus-bloom,
.enterprise-preview-panel.focus-bloom,
.code-panel.focus-bloom,
.rebate-card-panel.focus-bloom {
  animation: breatheCoolGlow 6s ease-in-out infinite alternate;
}
.hero-panel.focus-bloom:hover,
.prompt-panel.focus-bloom:hover,
.enterprise-preview-panel.focus-bloom:hover,
.code-panel.focus-bloom:hover,
.rebate-card-panel.focus-bloom:hover {
  animation: breatheCoolGlowHover 4s ease-in-out infinite alternate;
}

@keyframes breatheCoolGlow {
  0% {
    box-shadow: 0 0 26px rgba(138, 180, 248, 0.09), 0 0 64px rgba(114, 228, 255, 0.05), inset 0 0 42px rgba(114, 228, 255, 0.040), inset 0 0 12px rgba(255, 255, 255, 0.02), 0 0 9px rgba(114, 228, 255, 0.55);
  }
  50% {
    box-shadow: 0 0 32px rgba(114, 228, 255, 0.12), 0 0 72px rgba(138, 180, 248, 0.06), inset 0 0 46px rgba(114, 228, 255, 0.050), inset 0 0 12px rgba(255, 255, 255, 0.03), 0 0 9px rgba(114, 228, 255, 0.55);
  }
  100% {
    box-shadow: 0 0 26px rgba(140, 130, 220, 0.09), 0 0 64px rgba(114, 228, 255, 0.05), inset 0 0 42px rgba(114, 228, 255, 0.040), inset 0 0 12px rgba(255, 255, 255, 0.02), 0 0 9px rgba(114, 228, 255, 0.55);
  }
}
@keyframes breatheCoolGlowHover {
  0% {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(138, 180, 248, 0.14), 0 0 60px rgba(114, 228, 255, 0.08), inset 0 0 42px rgba(114, 228, 255, 0.045), 0 0 11px rgba(114, 228, 255, 0.65);
  }
  50% {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 32px rgba(114, 228, 255, 0.16), 0 0 68px rgba(138, 180, 248, 0.09), inset 0 0 46px rgba(114, 228, 255, 0.055), 0 0 11px rgba(114, 228, 255, 0.65);
  }
  100% {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(140, 130, 220, 0.14), 0 0 60px rgba(114, 228, 255, 0.08), inset 0 0 42px rgba(114, 228, 255, 0.045), 0 0 11px rgba(114, 228, 255, 0.65);
  }
}

/* Idle full-ring edge outline (static color, zero repaint cost) — applies to
   every card container site-wide; selector list mirrors "1. Base hologram"
   below exactly, so nothing is missed. The breathing glow ring right below
   stays scoped to the 5 flagship cards only, for FPS reasons — see the
   comment on .card-glow-ring and in home.js. */
/* metric-grid/enterprise-preview-grid/rebate-mini-grid mini tiles draw this
   ring via border (not outline), right/top/bottom sides only: the left edge
   is deliberately left to the classification color strip below it, so each
   edge only ever paints one line instead of two stacking. */
/* The idle background here is a static aurora gradient mesh (solid
   rgba(8,10,18,0.30) base + 4 soft radial color patches, no motion) instead
   of var(--g-screen-wash)/var(--g-scanlines). Gotcha: the `background:
   rgba(...)` shorthand resets background-image to none, and this
   body-prefixed selector out-specifies the later "Base hologram" rule — so
   declaring the full aurora mesh here (not just background-color) is
   required, not optional. Outline, RGB base, hover state, and
   .card-glow-ring are untouched by this. */
body .holo-panel,
body .enterprise-card,
body .flow-step,
body .prompt-panel,
body .site-footer-card,
body .site-footer-bar {
  border-color: transparent;
  outline: 1px solid rgba(var(--card-edge-rgb), 0.68);
  outline-offset: 0;
  background-color: var(--card-aurora-bg);
  background-image: var(--card-aurora-mesh);
}

body .metric-grid > div,
body .enterprise-preview-grid > div,
body .rebate-mini-grid > div {
  border-top: 1px solid rgba(var(--card-edge-rgb), 0.68);
  border-right: 1px solid rgba(var(--card-edge-rgb), 0.68);
  border-bottom: 1px solid rgba(var(--card-edge-rgb), 0.68);
  background-color: var(--card-aurora-bg);
  background-image: var(--card-aurora-mesh);
}

/* Idle backplate + ring glow overlay (compositor-only opacity breathing,
   injected by home.js as a child span.card-glow-ring). Deliberately no
   second solid ring line here — only soft blurred glow, so the only crisp
   visible edge is the single 1px outline above. No mix-blend-mode: on these
   near-black backgrounds screen-blend and normal alpha look almost
   identical, but screen-blend forces an extra compositor pass on 5 large
   elements every frame; dropping it measurably helps FPS. z-index: -1 keeps
   this layer behind the card's own text content (see stacking notes in
   home.js) so plain alpha compositing doesn't darken/tint the text. */
.card-glow-ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.5;
  will-change: opacity;
  background:
    radial-gradient(ellipse 130% 85% at 50% 12%, rgba(138, 180, 248, 0.14), transparent 58%),
    radial-gradient(ellipse 120% 90% at 50% 102%, rgba(140, 130, 220, 0.24), transparent 62%);
  box-shadow:
    inset 0 0 26px rgba(114, 228, 255, 0.20),
    inset 0 0 48px rgba(140, 130, 220, 0.16);
  animation: cardEdgeGlowBreathe 8s ease-in-out infinite alternate;
}

@keyframes cardEdgeGlowBreathe {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

/* 2. Hero Card Flowing Edge Light (Deactivated per user requirements) */
/* .hero-panel::after is disabled */

/* 3. Badge Micro-Glow */
.gemini-badge {
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease);
  animation: badgeGlowBreathe 4s ease-in-out infinite alternate;
}
.gemini-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(120, 90, 220, 0.5), 0 0 16px rgba(114, 228, 255, 0.3);
}
@keyframes badgeGlowBreathe {
  0% {
    box-shadow: 0 4px 12px rgba(120, 90, 220, 0.25), 0 0 6px rgba(114, 228, 255, 0.18);
  }
  100% {
    box-shadow: 0 8px 20px rgba(120, 90, 220, 0.4), 0 0 14px rgba(114, 228, 255, 0.32);
  }
}

/* 4. Entrance Scroll Reveal Animation */
.holo-panel.scroll-reveal,
.enterprise-card.scroll-reveal,
.flow-step.scroll-reveal,
.prompt-panel.scroll-reveal,
.metric-grid > div.scroll-reveal,
.enterprise-preview-grid > div.scroll-reveal,
.rebate-mini-grid > div.scroll-reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(16px) translateZ(0);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.holo-panel.scroll-reveal.revealed,
.enterprise-card.scroll-reveal.revealed,
.flow-step.scroll-reveal.revealed,
.prompt-panel.scroll-reveal.revealed,
.metric-grid > div.scroll-reveal.revealed,
.enterprise-preview-grid > div.scroll-reveal.revealed,
.rebate-mini-grid > div.scroll-reveal.revealed {
  opacity: 1;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-translate-y)) translateZ(var(--tilt-translate-z, 0px));
}

/* 5. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .focus-bloom,
  .hero-panel.focus-bloom,
  .enterprise-preview-panel.focus-bloom,
  .code-panel.focus-bloom,
  .rebate-card-panel.focus-bloom {
    animation: none;
  }
  .card-glow-ring {
    animation: none;
    opacity: 0.85;
  }
  .focus-bloom:hover,
  .hero-panel.focus-bloom:hover,
  .enterprise-preview-panel.focus-bloom:hover,
  .code-panel.focus-bloom:hover,
  .rebate-card-panel.focus-bloom:hover {
    animation: none;
    transform: none;
    box-shadow: var(--sh-lg), var(--edge-hover);
  }
  .gemini-badge {
    animation: none;
  }
  .gemini-badge:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(120, 90, 220, 0.30);
  }
  .hero-panel::after {
    animation: none;
    background-position: 50% 50%;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Gemini Premium 3D Hologram projection upgrades
   ========================================================================== */

/* 1. Base hologram and scanlines overlay with flowing borders */
.holo-panel,
.enterprise-card,
.flow-step,
.prompt-panel,
.metric-grid > div,
.enterprise-preview-grid > div,
.rebate-mini-grid > div,
.site-footer-card,
.site-footer-bar {
  border: 1px solid var(--hair);
  background: var(--card);
  background-image: var(--g-screen-wash), var(--g-scanlines);
  box-shadow: var(--sh-md), var(--edge), inset 0 0 0 1px rgba(170, 210, 255, 0.16), 0 0 34px rgba(138, 180, 248, 0.24), 0 0 76px rgba(114, 228, 255, 0.16), inset 0 0 56px rgba(114, 228, 255, 0.12);
  
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-translate-y: 0px;
  --tilt-translate-z: 0px;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(calc(var(--reveal-translate-y, 0px) + var(--tilt-translate-y))) translateZ(var(--tilt-translate-z, 0px));
}

.holo-panel.is-tilting,
.enterprise-card.is-tilting,
.flow-step.is-tilting,
.prompt-panel.is-tilting,
.metric-grid > div.is-tilting,
.enterprise-preview-grid > div.is-tilting,
.rebate-mini-grid > div.is-tilting {
  transition-property: border-color, box-shadow, background-color;
}

/* Consolidate hover overrides for the flowing border cards */
.holo-panel:hover,
.enterprise-card:hover,
.flow-step:hover,
.prompt-panel:hover,
.metric-grid > div:hover,
.enterprise-preview-grid > div:hover,
.rebate-mini-grid > div:hover,
.site-footer-card:hover,
.site-footer-bar:hover {
  /* Hover fill uses --card-edge-rgb at 0.34 alpha, brighter than the idle
     fill, so hovering doesn't flash the card back to gray. */
  background: rgba(var(--card-edge-rgb), 0.34);
  background-image: var(--g-screen-wash), var(--g-scanlines-hover);
  /* border-color stays transparent on hover too — a visible border here
     would stack into a double edge with the always-on outline ring above.
     The outline itself already brightens via its own glow. */
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 46px rgba(138, 180, 248, 0.24), 0 0 96px rgba(114, 228, 255, 0.14);
}

/* The hover rule above also makes metric-grid/enterprise-preview-grid/
   rebate-mini-grid (which draw their ring via border, not outline) lose
   their border-color, so the ring would disappear on hover. Restore it here
   for just these three; must stay after the rule above to win under equal
   specificity. */
.metric-grid > div:hover,
.enterprise-preview-grid > div:hover,
.rebate-mini-grid > div:hover {
  border-color: rgba(var(--card-edge-rgb), 0.68);
}

/* 2. Hologram Sheen Overlays — the white mouse-follow ::before highlight is
   removed. content:none suppresses generated-box rendering entirely (no
   box, no paint, no compositor layer) rather than deleting the rule, so a
   future re-enable is a one-line revert. The cyan/blue local light-field on
   ::after below is unchanged — that one is not a "white" highlight. */
.holo-panel::before,
.enterprise-card::before,
.flow-step::before,
.prompt-panel::before,
.metric-grid > div::before,
.enterprise-preview-grid > div::before,
.rebate-mini-grid > div::before,
.site-footer-card::before,
.site-footer-bar::before {
  content: none;
}

.holo-panel::after,
.enterprise-card::after,
.flow-step::after,
.prompt-panel::after,
.metric-grid > div::after,
.enterprise-preview-grid > div::after,
.rebate-mini-grid > div::after,
.site-footer-card::after,
.site-footer-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  opacity: var(--field-opacity, 0);
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle 140px at var(--sheen-x, 50%) var(--sheen-y, 50%),
      rgba(114, 228, 255, 0.30) 0px,
      rgba(114, 228, 255, 0.22) 45px,
      rgba(138, 180, 248, 0.15) 70px,
      rgba(138, 180, 248, 0.05) 98px,
      transparent 140px),
    repeating-linear-gradient(rgba(138, 180, 248, 0.055) 0px, rgba(138, 180, 248, 0.055) 1px, transparent 1px, transparent 4px);
  -webkit-mask-image: radial-gradient(circle 140px at var(--sheen-x, 50%) var(--sheen-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle 140px at var(--sheen-x, 50%) var(--sheen-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* 3. Content Z-axis Parallax Depth */
.gemini-badge {
  transform: translateZ(36px);
  transform-style: preserve-3d;
}
.gemini-badge:hover {
  transform: translateZ(36px) scale(1.08);
}
.holo-panel h2,
.enterprise-card h3,
.prompt-panel h2,
.flow-step strong,
.rebate-meter strong,
.enterprise-preview-grid strong,
.rebate-mini-grid strong,
.site-footer-copy h2,
.site-footer-brand strong {
  transform: translateZ(28px);
}
.holo-panel p,
.enterprise-card p,
.prompt-panel p,
.flow-step span,
.rebate-meter span,
.enterprise-preview-grid span,
.rebate-mini-grid span,
.site-footer-copy p,
.site-footer-note-list li,
.site-footer-brand p,
.site-footer-copyright {
  transform: translateZ(16px);
}
.status-board,
.signal-row,
.route-orbit,
.action-row,
.prompt-meta,
.endpoint-status,
.metric-grid,
.enterprise-timeline,
.rebate-flow,
.prompt-visual,
.site-footer-note-panel {
  transform: translateZ(20px);
}
.step-num {
  transform: translateZ(32px);
}

/* Text Shadows for Card Text Readability */
.holo-panel p,
.enterprise-card p,
.prompt-panel p,
.flow-step span,
.rebate-meter span,
.enterprise-preview-grid span,
.rebate-mini-grid span,
.timeline-step .step-name,
.timeline-title,
.enterprise-dev-note,
.radar-caption,
.enterprise-stack-header span,
.route-orbit a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.holo-panel h2,
.enterprise-card h3,
.prompt-panel h2,
.flow-step strong,
.rebate-meter strong,
.enterprise-preview-grid strong,
.rebate-mini-grid strong,
.enterprise-stack-header strong {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 9px rgba(138, 180, 248, 0.20);
}

/* Hardware Acceleration and Display Blocks for Floating Text Elements */
.deck-copy > .eyebrow,
.hero-title-row h1,
.ai-built-badge,
.deck-copy > p,
.hero-actions-container,
.hero-proof > span,
.section-head > .eyebrow,
.section-head > h2,
.section-head > p {
  display: inline-block;
  will-change: transform;
  transform-style: preserve-3d;
}

.hero-title-row h1,
.deck-copy > p,
.section-head > h2,
.section-head > p {
  display: block;
}

.enterprise-stack-header {
  will-change: transform;
  transform-style: preserve-3d;
}



@keyframes progressBarFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 4. Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .home-page .holo-panel,
  .home-page .enterprise-card,
  .home-page .flow-step,
  .home-page .prompt-panel,
  .home-page .metric-grid > div,
  .home-page .enterprise-preview-grid > div,
  .home-page .rebate-mini-grid > div,
  .home-page .site-footer-card,
  .home-page .site-footer-bar {
    transform: none;
    transform-style: flat;
    --tilt-translate-y: 0px;
    animation: none;
    background-size: 100% 100%;
  }
  .home-page .holo-panel::before,
  .home-page .enterprise-card::before,
  .home-page .flow-step::before,
  .home-page .prompt-panel::before,
  .home-page .metric-grid > div::before,
  .home-page .enterprise-preview-grid > div::before,
  .home-page .rebate-mini-grid > div::before,
  .home-page .site-footer-card::before,
  .home-page .site-footer-bar::before,
  .home-page .holo-panel::after,
  .home-page .enterprise-card::after,
  .home-page .flow-step::after,
  .home-page .prompt-panel::after,
  .home-page .metric-grid > div::after,
  .home-page .enterprise-preview-grid > div::after,
  .home-page .rebate-mini-grid > div::after,
  .home-page .site-footer-card::after,
  .home-page .site-footer-bar::after {
    display: none;
  }
  .deck-copy > .eyebrow,
  .hero-title-row h1,
  .ai-built-badge,
  .deck-copy > p,
  .hero-actions-container,
  .hero-proof > span,
  .section-head > .eyebrow,
  .section-head > h2,
  .section-head > p,
  .enterprise-stack-header {
    transform: none;
    will-change: auto;
  }
}

.holo-panel,
.enterprise-card,
.flow-step,
.prompt-panel,
.metric-grid > div,
.enterprise-preview-grid > div,
.rebate-mini-grid > div,
.site-footer-card,
.site-footer-bar {
  will-change: transform;
}

