/* Homepage presentation shared across the five published locales. */

:root {
  /* ========================================================================
     OpenAI Official Design System Tokens (Default: High-Fidelity Dark Mode)
     ======================================================================== */
  --oai-color-scheme: dark;
  --oai-black: #000000;
  --oai-bg-canvas: #000000;
  --oai-surface-1: #0D0D0D;
  --oai-surface-2: #171717;
  --oai-surface-3: #212121;
  --oai-surface-4: #2F2F2F;

  --oai-border-subtle: rgba(255, 255, 255, 0.12);
  --oai-border-medium: rgba(255, 255, 255, 0.20);
  --oai-border-hover: rgba(255, 255, 255, 0.40);

  /* Typography Colors (High Contrast WCAG AAA) */
  --oai-text-primary: #FFFFFF;
  --oai-text-secondary: #B4B4B4;
  --oai-text-muted: #8E8E8E;
  --oai-text-dim: #636363;

  /* OpenAI Accents */
  --oai-green: #10A37F;
  --oai-green-hover: #0E8E6E;
  --oai-green-subtle: rgba(16, 163, 127, 0.15);

  --oai-focus: #FFFFFF;
  --oai-selection-bg: rgba(255, 255, 255, 0.25);
  --oai-selection-text: #FFFFFF;
  --oai-scrollbar: rgba(255, 255, 255, 0.25);

  /* Header & Navigation */
  --oai-header-bg: rgba(0, 0, 0, 0.88);
  --oai-header-scrolled-bg: rgba(0, 0, 0, 0.94);
  --oai-header-scrolled-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  --oai-progress-gradient: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);

  /* Buttons */
  --oai-btn-ghost-hover-bg: rgba(255, 255, 255, 0.08);
  --oai-solid-btn-bg: #FFFFFF;
  --oai-solid-btn-text: #000000;
  --oai-solid-btn-hover-bg: #E6E6E6;

  /* Hero & Console */
  --oai-hero-bg: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  --oai-prompt-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --oai-prompt-shadow-focus: 0 12px 40px rgba(0, 0, 0, 0.8);

  /* Hover & Interaction states */
  --oai-hover-subtle: rgba(255, 255, 255, 0.02);
  --oai-btn-ghost-action-hover: rgba(255, 255, 255, 0.06);

  /* Channel Cards */
  --oai-channel-card-bg: #0C0C0C;
  --oai-channel-card-border: rgba(255, 255, 255, 0.08);
  --oai-channel-card-border-hover: rgba(255, 255, 255, 0.20);
  --oai-channel-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --oai-channel-card-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.65);

  /* Alliance Cards */
  --oai-alliance-card-hover-bg: rgba(255, 255, 255, 0.04);

  /* Footer & Popover */
  --oai-footer-bg: #000000;
  --oai-footer-border-top: none;
  --oai-popover-bg: #171717;
  --oai-popover-border: rgba(255, 255, 255, 0.20);
  --oai-popover-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  --oai-search-bg: #0D0D0D;
  --oai-search-focus-ring: 0 0 0 2px rgba(255, 255, 255, 0.08);
  --oai-hover-option: rgba(255, 255, 255, 0.08);
  --oai-active-option: rgba(255, 255, 255, 0.05);
  --oai-check-badge-bg: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-sans: Inter, Pretendard, sans-serif;
  --font-mono: ui-monospace, monospace;

  /* Spacing Scale */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  --site-max-width: 1440px;

  /* x.ai Dropdown Tokens (Exact x.ai rgb(26, 26, 26) / #1a1a1a Palette) */
  --xai-card-bg: #1a1a1a;
  --xai-card-border: rgba(255, 255, 255, 0.06);
  --xai-card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --xai-hover-bg: rgba(255, 255, 255, 0.05);
  --xai-text-primary: #ffffff;
  --xai-text-muted: rgba(255, 255, 255, 0.4);
  --xai-text-secondary: rgba(255, 255, 255, 0.65);
  --xai-divider: rgba(255, 255, 255, 0.08);
  --xai-footer-bg: rgba(255, 255, 255, 0.02);
  --xai-footer-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   OpenAI Light Mode (System Preference prefers-color-scheme: light)
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --oai-color-scheme: light;
    --oai-black: #FFFFFF;
    --oai-bg-canvas: #FFFFFF;
    --oai-surface-1: #F7F7F8;
    --oai-surface-2: #ECECF1;
    --oai-surface-3: #E3E3E8;
    --oai-surface-4: #D9D9E3;

    --oai-border-subtle: rgba(0, 0, 0, 0.08);
    --oai-border-medium: rgba(0, 0, 0, 0.15);
    --oai-border-hover: rgba(0, 0, 0, 0.35);

    /* Typography Colors (OpenAI High Contrast Ink) */
    --oai-text-primary: #0D0D0D;
    --oai-text-secondary: #424242;
    --oai-text-muted: #737373;
    --oai-text-dim: #8F8F8F;

    --oai-focus: #0D0D0D;
    --oai-selection-bg: rgba(0, 0, 0, 0.12);
    --oai-selection-text: #000000;
    --oai-scrollbar: rgba(0, 0, 0, 0.25);

    /* Header & Navigation */
    --oai-header-bg: rgba(255, 255, 255, 0.88);
    --oai-header-scrolled-bg: rgba(255, 255, 255, 0.96);
    --oai-header-scrolled-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --oai-progress-gradient: linear-gradient(90deg, #0D0D0D 0%, rgba(13, 13, 13, 0.35) 100%);

    /* Buttons */
    --oai-btn-ghost-hover-bg: rgba(0, 0, 0, 0.05);
    --oai-solid-btn-bg: #0D0D0D;
    --oai-solid-btn-text: #FFFFFF;
    --oai-solid-btn-hover-bg: #2F2F2F;

    /* Hero & Console */
    --oai-hero-bg: radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
    --oai-prompt-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --oai-prompt-shadow-focus: 0 12px 40px rgba(0, 0, 0, 0.12);

    /* Hover & Interaction states */
    --oai-hover-subtle: rgba(0, 0, 0, 0.03);
    --oai-btn-ghost-action-hover: rgba(0, 0, 0, 0.04);

    /* Channel Cards */
    --oai-channel-card-bg: #0C0C0C;
    --oai-channel-card-border: rgba(0, 0, 0, 0.08);
    --oai-channel-card-border-hover: rgba(0, 0, 0, 0.22);
    --oai-channel-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    --oai-channel-card-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.16);

    /* Alliance Cards */
    --oai-alliance-card-hover-bg: #ECECF1;

    /* Footer & Popover */
    --oai-footer-bg: #FFFFFF;
    --oai-footer-border-top: 1px solid rgba(0, 0, 0, 0.08);
    --oai-popover-bg: #FFFFFF;
    --oai-popover-border: rgba(0, 0, 0, 0.15);
    --oai-popover-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    --oai-search-bg: #F7F7F8;
    --oai-search-focus-ring: 0 0 0 2px rgba(0, 0, 0, 0.08);
    --oai-hover-option: rgba(0, 0, 0, 0.05);
    --oai-active-option: rgba(0, 0, 0, 0.04);
    --oai-check-badge-bg: rgba(0, 0, 0, 0.08);

    /* x.ai Dropdown Tokens (Light) */
    --xai-card-bg: #ffffff;
    --xai-card-border: rgba(0, 0, 0, 0.08);
    --xai-card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --xai-hover-bg: rgba(0, 0, 0, 0.04);
    --xai-text-primary: #000000;
    --xai-text-muted: rgba(0, 0, 0, 0.45);
    --xai-text-secondary: rgba(0, 0, 0, 0.65);
    --xai-divider: rgba(0, 0, 0, 0.08);
    --xai-footer-bg: rgba(0, 0, 0, 0.02);
    --xai-footer-border: rgba(0, 0, 0, 0.08);
  }
}

html[data-theme="light"] {
  --oai-color-scheme: light;
  --oai-black: #FFFFFF;
  --oai-bg-canvas: #FFFFFF;
  --oai-surface-1: #F7F7F8;
  --oai-surface-2: #ECECF1;
  --oai-surface-3: #E3E3E8;
  --oai-surface-4: #D9D9E3;

  --oai-border-subtle: rgba(0, 0, 0, 0.08);
  --oai-border-medium: rgba(0, 0, 0, 0.15);
  --oai-border-hover: rgba(0, 0, 0, 0.35);

  --oai-text-primary: #0D0D0D;
  --oai-text-secondary: #424242;
  --oai-text-muted: #737373;
  --oai-text-dim: #8F8F8F;

  --oai-focus: #0D0D0D;
  --oai-selection-bg: rgba(0, 0, 0, 0.12);
  --oai-selection-text: #000000;
  --oai-scrollbar: rgba(0, 0, 0, 0.25);

  --oai-header-bg: rgba(255, 255, 255, 0.88);
  --oai-header-scrolled-bg: rgba(255, 255, 255, 0.96);
  --oai-header-scrolled-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --oai-progress-gradient: linear-gradient(90deg, #0D0D0D 0%, rgba(13, 13, 13, 0.35) 100%);

  --oai-btn-ghost-hover-bg: rgba(0, 0, 0, 0.05);
  --oai-solid-btn-bg: #0D0D0D;
  --oai-solid-btn-text: #FFFFFF;
  --oai-solid-btn-hover-bg: #2F2F2F;

  --oai-hero-bg: radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
  --oai-prompt-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --oai-prompt-shadow-focus: 0 12px 40px rgba(0, 0, 0, 0.12);

  --oai-hover-subtle: rgba(0, 0, 0, 0.03);
  --oai-btn-ghost-action-hover: rgba(0, 0, 0, 0.04);

  --oai-channel-card-bg: #0C0C0C;
  --oai-channel-card-border: rgba(0, 0, 0, 0.08);
  --oai-channel-card-border-hover: rgba(0, 0, 0, 0.22);
  --oai-channel-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --oai-channel-card-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.16);

  --oai-alliance-card-hover-bg: #ECECF1;

  --oai-footer-bg: #FFFFFF;
  --oai-footer-border-top: 1px solid rgba(0, 0, 0, 0.08);
  --oai-popover-bg: #FFFFFF;
  --oai-popover-border: rgba(0, 0, 0, 0.15);
  --oai-popover-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  --oai-search-bg: #F7F7F8;
  --oai-search-focus-ring: 0 0 0 2px rgba(0, 0, 0, 0.08);
  --oai-hover-option: rgba(0, 0, 0, 0.05);
  --oai-active-option: rgba(0, 0, 0, 0.04);
  --oai-check-badge-bg: rgba(0, 0, 0, 0.08);

  /* x.ai Dropdown Tokens (Light) */
  --xai-card-bg: #ffffff;
  --xai-card-border: rgba(0, 0, 0, 0.08);
  --xai-card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --xai-hover-bg: rgba(0, 0, 0, 0.04);
  --xai-text-primary: #000000;
  --xai-text-muted: rgba(0, 0, 0, 0.45);
  --xai-text-secondary: rgba(0, 0, 0, 0.65);
  --xai-divider: rgba(0, 0, 0, 0.08);
  --xai-footer-bg: rgba(0, 0, 0, 0.02);
  --xai-footer-border: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   0. Base Reset & Browser Surfaces
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--oai-bg-canvas);
  color-scheme: var(--oai-color-scheme);
  scrollbar-color: var(--oai-scrollbar) transparent;
  scrollbar-width: thin;
  overflow-x: clip;
}

body.openai-theme {
  font-family: var(--font-sans);
  background-color: var(--oai-bg-canvas);
  color: var(--oai-text-secondary);
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background-color: var(--oai-selection-bg);
  color: var(--oai-selection-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--oai-focus);
  outline-offset: 2px;
}

.site-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .site-container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .site-container {
    padding: 0 16px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   1. OpenAI Minimalist Global Header
   ========================================================================== */
.oai-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--oai-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.oai-header.is-scrolled {
  background-color: var(--oai-header-scrolled-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--oai-header-scrolled-shadow);
}

.header-inner {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 16px 20px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.oai-brand-link {
  display: flex;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-svg-mark {
  display: block;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--oai-text-primary);
  letter-spacing: -0.03em;
}

.brand-sup {
  font-size: 10px;
  color: var(--oai-text-muted);
  vertical-align: super;
  margin-left: 2px;
}

.oai-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-right: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--xai-text-secondary, rgba(255, 255, 255, 0.5));
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link {
  color: var(--xai-text-primary, #ffffff);
}

.nav-link.active {
  color: var(--xai-text-primary, #ffffff);
  font-weight: 500;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav-link {
    color: rgba(0, 0, 0, 0.6);
  }
  :root:not([data-theme="dark"]) .nav-link:hover,
  :root:not([data-theme="dark"]) .nav-item:hover > .nav-link,
  :root:not([data-theme="dark"]) .nav-item.is-open > .nav-link,
  :root:not([data-theme="dark"]) .nav-link.active {
    color: #000000;
  }
}

html[data-theme="light"] .nav-link {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-item:hover > .nav-link,
html[data-theme="light"] .nav-item.is-open > .nav-link,
html[data-theme="light"] .nav-link.active {
  color: #000000;
}

/* Tiny x.ai style chevron indicator */
.nav-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.75;
  opacity: 0.5;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.nav-item:hover .nav-chevron,
.nav-item.is-open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ==========================================================================
   x.ai Style Floating Dropdown Card (Exact rgb(26, 26, 26) / #1a1a1a)
   ========================================================================== */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.15s;
}

/* Hover bridge and open state (removed :focus-within to prevent click focus trap) */
.nav-item.has-dropdown:hover > .nav-dropdown-menu,
.nav-item.has-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Right-align last dropdown (다운로드) so card does not protrude into empty right header space */
.nav-item:last-child .nav-dropdown-menu {
  left: auto;
  right: 0;
}

.xai-dropdown-card {
  background-color: var(--xai-card-bg); /* #1a1a1a solid */
  border: 1px solid var(--xai-card-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--xai-card-shadow);
  min-width: 220px;
}

/* Compact 1-Column Dropdown (Company, Developer, Investment, Download) */
.xai-dropdown-compact {
  width: 220px;
  min-width: 220px;
}

.xai-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--xai-text-primary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.xai-item-row:hover {
  background-color: var(--xai-hover-bg); /* rgba(255, 255, 255, 0.05) */
  color: var(--xai-text-primary);
}

.xai-item-row .xai-arrow {
  width: 11px;
  height: 11px;
  stroke: var(--xai-text-muted);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.xai-item-row:hover .xai-arrow {
  opacity: 1;
  transform: translate(0, 0);
  stroke: var(--xai-text-primary);
}

/* Wide 2-Column Dropdown (Products) */
.xai-dropdown-wide .xai-dropdown-card {
  min-width: 480px;
  max-width: 500px;
  padding: 8px;
}

.xai-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.xai-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xai-dropdown-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xai-text-muted);
  padding: 6px 12px 3px;
  user-select: none;
}

.xai-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.xai-dropdown-link:hover {
  background-color: var(--xai-hover-bg);
}

.xai-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.xai-link-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--xai-text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.xai-link-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--xai-text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.xai-dropdown-link:hover .xai-link-desc {
  color: var(--xai-text-secondary);
}

.xai-arrow {
  width: 11px;
  height: 11px;
  stroke: var(--xai-text-muted);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.15s ease, transform 0.15s ease, stroke 0.15s ease;
  flex-shrink: 0;
}

.xai-dropdown-link:hover .xai-arrow {
  opacity: 1;
  transform: translate(0, 0);
  stroke: var(--xai-text-primary);
}

.xai-divider {
  height: 1px;
  background-color: var(--xai-divider);
  margin: 4px 6px;
}

.xai-dropdown-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--xai-footer-border);
}

.xai-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--xai-text-muted);
  background-color: var(--xai-footer-bg);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.xai-footer-link:hover {
  background-color: var(--xai-hover-bg);
  color: var(--xai-text-primary);
}

.xai-footer-arrow {
  font-size: 11px;
  transition: transform 0.15s ease;
}

.xai-footer-link:hover .xai-footer-arrow {
  transform: translate(2px, -2px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.oai-lang-pill {
  background: transparent;
  border: 1px solid var(--oai-border-subtle);
  color: var(--oai-text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oai-lang-pill:hover {
  border-color: var(--oai-border-hover);
}

.oai-ghost-btn {
  background-color: transparent;
  color: var(--oai-text-primary);
  border: 1px solid var(--oai-border-medium);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.oai-ghost-btn:hover {
  background-color: var(--oai-btn-ghost-hover-bg);
  border-color: var(--oai-border-hover);
}

.oai-solid-btn {
  background-color: var(--oai-solid-btn-bg);
  color: var(--oai-solid-btn-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s ease;
}

.oai-solid-btn:hover {
  background-color: var(--oai-solid-btn-hover-bg);
}

/* ==========================================================================
   2. OpenAI Signature Hero & Prompt Console
   ========================================================================== */
/* ==========================================================================
   2. JetBrains-Style Hero & Digital Design Studio IDE Showcase
   ========================================================================== */
.jb-hero-section {
  position: relative;
  padding: 100px 0 80px 0;
  background: var(--oai-hero-bg);
  overflow: hidden;
}

.jb-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jb-hero-text-wrap {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jb-hero-headline {
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 700;
  color: var(--oai-text-primary, #ffffff);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 18px 0;
  text-wrap: balance;
}

.jb-hero-headline .home-hero-line {
  display: block;
}

@media (min-width: 981px) {
  html:lang(en) .jb-hero-text-wrap {
    width: 100%;
    max-width: 1080px;
  }

  html:lang(en) .jb-hero-headline {
    font-size: clamp(34px, 4.6vw, 54px);
  }

  html:lang(en) .jb-hero-headline .home-hero-line {
    white-space: nowrap;
  }
}

.jb-hero-subhead {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--oai-text-secondary, rgba(255, 255, 255, 0.65));
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 32px 0;
  text-wrap: pretty;
}

/* JetBrains Signature Hero CTA Group */
.jb-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  margin-bottom: 56px;
}

.jb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.jb-btn-primary {
  background: var(--oai-solid-btn-bg, #ffffff);
  color: var(--oai-solid-btn-text, #000000);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.jb-btn-primary:hover {
  background: var(--oai-solid-btn-hover-bg, #e4e4e7);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.jb-btn-secondary {
  background: var(--oai-hover-subtle, rgba(255, 255, 255, 0.05));
  color: var(--oai-text-primary, #ffffff);
  border: 1px solid var(--oai-border-medium, rgba(255, 255, 255, 0.16));
}

.jb-btn-secondary:hover {
  background: var(--oai-btn-ghost-hover-bg, rgba(255, 255, 255, 0.1));
  border-color: var(--oai-border-hover, rgba(255, 255, 255, 0.3));
  transform: translateY(-1px);
}

.jb-btn-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.jb-btn-secondary:hover .jb-btn-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .jb-hero-section {
    padding: 80px 0 60px 0;
  }

}

@media (max-width: 600px) {
  .jb-hero-section {
    padding: 60px 0 40px 0;
  }
  .jb-hero-headline {
    font-size: 27px;
    letter-spacing: -0.02em;
  }
  .jb-hero-subhead {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .jb-hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }
  .jb-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

}

/* ==========================================================================
   2.5 Transition Bridge: Impact Metrics & Ecosystem Standards Bar
   ========================================================================== */
.alt-bridge-section {
  position: relative;
  background-color: #000000;
  padding: 80px 0 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alt-bridge-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

.alt-metrics-grid,
.alt-project-showcase {
  width: 100%;
  max-width: 1192px;
  margin-inline: auto;
}

/* Part A: Key Impact Metrics Strip */
.alt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0 32px;
  margin-bottom: 0;
}

.alt-metric-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.alt-metric-card:hover {
  border-left-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.alt-metric-value {
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.alt-metric-label {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  word-break: keep-all;
}

.alt-metric-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}

/* Part B: Unified Ecosystem Section */
.alt-ecosystem-section {
  display: flex;
  flex-direction: column;
  margin-top: clamp(84px, 8.5vw, 108px);
  width: 100%;
}

.alt-ecosystem-headline {
  font-size: clamp(25px, 2.6vw, 30px);
  font-weight: 650;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 clamp(24px, 2.8vw, 32px) 0;
  text-align: center;
  word-break: keep-all;
}

.alt-asterisk {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 3px;
  vertical-align: super;
  font-weight: 400;
}

.alt-ecosystem-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3.2vw, 40px);
  width: 100%;
}

.alt-ecosystem-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.alt-col-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.4;
}

.alt-col-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 2.6vw, 36px);
  min-height: 48px;
}

.alt-ai-logos {
  gap: clamp(28px, 3.2vw, 44px);
}

.alt-logos-single-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  width: 100%;
  max-width: 100%;
  padding-block: 4px 8px;
  min-width: 0;
}

.alt-logos-single-row > .alt-logo-slot {
  flex: 0 0 auto;
  max-width: 100%;
}

.alt-logos-single-row:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.alt-ecosystem-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 6px auto 0;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  max-width: 820px;
}

.alt-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.alt-logo-slot:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Explicit Logo Sizing & Clarity */
.logo-img {
  display: block;
  max-width: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.logo-openai,
.logo-grok {
  width: 48px;
  height: 48px;
}

.logo-zai {
  height: 33px;
  width: auto;
}

.logo-systemverilog {
  height: 38px;
  width: auto;
}

.logo-uvm {
  height: 42px;
  width: auto;
}

.logo-systemc {
  height: 36px;
  width: auto;
}

.logo-ipxact {
  height: 30px;
  width: auto;
}

.logo-verilator {
  height: 48px;
  width: auto;
}

.logo-xls {
  height: 42px;
  width: auto;
}

.logo-python {
  height: 36px;
  width: auto;
}

.logo-git {
  height: 36px;
  width: auto;
}

.logo-github {
  height: 36px;
  width: auto;
}

.logo-gitlab {
  height: 60px;
  width: auto;
}

/* Part C: Independent Project Showcase Row */
.alt-project-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  margin-top: clamp(68px, 7vw, 88px);
  padding: clamp(36px, 4vw, 48px) 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alt-project-title {
  font-size: clamp(22px, 2.3vw, 26px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
  text-align: center;
  word-break: keep-all;
}

.alt-project-desc {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0 auto 8px auto;
  max-width: 720px;
  text-align: center;
  word-break: keep-all;
}

.alt-project-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.alt-project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 650;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.alt-project-link:hover {
  color: #ffffff;
  opacity: 0.75;
}

.alt-project-link:focus-visible {
  color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   3. OpenAI Asymmetrical Feature Spotlight
   ========================================================================== */
.oai-section {
  padding: 80px 0;
}

.oai-section-border {
  border-top: none;
}

.oai-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--space-2xl);
  align-items: start;
}

/* Primary Card (Large 16:9 Editorial Spotlight) - Sticky Pin on Scroll */
.spotlight-primary-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: 88px;
  align-self: start;
  cursor: pointer;
}

.spotlight-primary-card .primary-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.spotlight-primary-card .media-link {
  pointer-events: none;
}

.spotlight-primary-card .primary-card-title a {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1 !important;
}

.spotlight-primary-card:hover .primary-card-title a {
  text-decoration: none;
  opacity: 1 !important;
  color: var(--oai-text-primary);
}

.primary-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: none;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none !important;
}

html[data-theme="dark"] .primary-media-box {
  border-color: rgba(255, 255, 255, 0.08);
}

.spotlight-primary-card:hover .primary-media-box {
  transform: none !important;
  border-color: rgba(10, 10, 10, 0.15);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .spotlight-primary-card:hover .primary-media-box {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.primary-media-box__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.spotlight-primary-card:hover .primary-media-box__inner {
  transform: scale(1.025);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
}

.primary-card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.meta-date {
  color: var(--oai-text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.category-chip {
  color: var(--oai-text-primary);
  font-weight: 600;
}

.dot-sep {
  color: var(--oai-text-dim);
}

.meta-time {
  color: var(--oai-text-muted);
  font-size: 12px;
}

.primary-card-title {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 700;
  color: var(--oai-text-primary);
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.primary-card-title a {
  transition: opacity 0.16s ease;
}

.primary-card-title a:hover {
  text-decoration: none;
  opacity: 0.72;
}

.primary-card-excerpt {
  font-size: 16px;
  color: var(--oai-text-secondary);
  line-height: 1.65;
  max-width: 60ch;
}

.oai-ghost-action {
  background-color: transparent;
  color: var(--oai-text-primary);
  border: 1px solid var(--oai-border-medium);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.oai-ghost-action:hover {
  border-color: var(--oai-border-hover);
  background-color: var(--oai-btn-ghost-action-hover);
}

/* Secondary Vertical Stack */
.spotlight-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.secondary-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  cursor: pointer;
}

.secondary-card .secondary-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.secondary-card .media-link {
  pointer-events: none;
}

.secondary-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: none;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none !important;
}

html[data-theme="dark"] .secondary-thumb {
  border-color: rgba(255, 255, 255, 0.08);
}

.secondary-card:hover .secondary-thumb {
  transform: none !important;
  border-color: rgba(10, 10, 10, 0.15);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .secondary-card:hover .secondary-thumb {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.secondary-thumb__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.secondary-card:hover .secondary-thumb__inner {
  transform: scale(1.025);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
}

.secondary-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.secondary-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--oai-text-primary);
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.secondary-title a {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1 !important;
}

.secondary-title a:hover,
.secondary-card:hover .secondary-title a {
  text-decoration: none;
  opacity: 1 !important;
  color: var(--oai-text-primary);
}

.secondary-desc {
  font-size: 13.5px;
  color: var(--oai-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   4. OpenAI Research & Engineering Index List
   ========================================================================== */
.oai-section-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.oai-section-title {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  color: var(--oai-text-primary);
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.oai-section-caption {
  font-size: 14.5px;
  color: var(--oai-text-muted);
}

.oai-view-all {
  font-size: 15px;
  font-weight: 600;
  color: var(--oai-text-primary);
  white-space: nowrap;
  text-decoration: none;
  opacity: 1 !important;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.oai-view-all:hover {
  opacity: 1 !important;
  text-decoration: none;
  color: var(--oai-text-primary);
}

.oai-index-list {
  display: flex;
  flex-direction: column;
  border-top: none;
  gap: 4px;
}

.index-row {
  display: grid;
  grid-template-columns: 140px 170px minmax(0, 1fr) 170px;
  gap: var(--space-md);
  align-items: center;
  padding: 16px 14px;
  border-bottom: none;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  position: relative;
  cursor: pointer;
}

.index-row .index-headline a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.index-row:hover {
  background-color: var(--oai-hover-subtle);
}

.index-date {
  font-size: 13px;
  color: var(--oai-text-muted);
}

.oai-tag-pill {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--oai-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-block;
  white-space: nowrap;
}

html[data-theme="light"] .oai-tag-pill {
  color: rgba(13, 13, 13, 0.65);
}

html[data-theme="dark"] .oai-tag-pill {
  color: rgba(255, 255, 255, 0.65);
}

.index-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--oai-text-primary);
  letter-spacing: -0.015em;
}

.index-headline a {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1 !important;
}

.index-headline a:hover,
.index-row:hover .index-headline a {
  text-decoration: none;
  opacity: 1 !important;
  color: var(--oai-text-primary);
}

.index-meta-col {
  font-size: 13px;
  color: var(--oai-text-muted);
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   5. OpenAI-Style Frontier Model Cards (Altifigence Platform)
   ========================================================================== */
.oai-model-cards-wrap {
  width: 100%;
}

.oai-model-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.oai-model-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  text-decoration: none;
  background-color: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none;
  isolation: isolate;
}

.oai-model-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.oai-model-card.standard:hover,
.oai-model-card.asickit:hover {
  border-color: transparent;
  background-clip: padding-box;
}

/* Individual product subtle ambient glow on hover */
.oai-model-card.standard:hover {
  box-shadow: 0 12px 48px rgba(225, 193, 45, 0.16), 0 8px 28px rgba(0, 0, 0, 0.2);
}
.oai-model-card.alcad:hover {
  box-shadow: 0 4px 20px rgba(130, 80, 223, 0.16), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.oai-model-card.asickit:hover {
  box-shadow: 0 12px 48px rgba(2, 133, 255, 0.16), 0 8px 28px rgba(0, 0, 0, 0.2);
}
.oai-model-card.labs:hover {
  box-shadow: 0 4px 20px rgba(98, 135, 165, 0.16), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.oai-model-card.standard:focus-visible,
.oai-model-card.asickit:focus-visible {
  outline: 2px solid var(--oai-focus);
  outline-offset: 4px;
}

/* Background image with smooth scale on hover */
.model-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  will-change: transform;
  z-index: 0;
  opacity: 0.86;
}

.oai-model-card:hover .model-card-bg {
  transform: scale(1.025);
  opacity: 0.96;
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.5s ease;
}

/* OpenAI Signature Dark Gradient Scrim - Refined & Lightened */
.model-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.08) 0%,
    rgba(8, 9, 11, 0.22) 32%,
    rgba(8, 9, 11, 0.68) 70%,
    rgba(8, 9, 11, 0.88) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 0.35s ease;
}

.oai-model-card:hover .model-card-scrim {
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.04) 0%,
    rgba(8, 9, 11, 0.16) 32%,
    rgba(8, 9, 11, 0.58) 70%,
    rgba(8, 9, 11, 0.82) 100%
  );
}

/* Top Header Bar inside Card */
/* Bottom Body Content */
.model-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.model-title {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-title-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.model-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.model-specs-list li {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding-left: 14px;
  word-break: keep-all;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.model-specs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
}

.oai-model-card:hover .model-specs-list li::before {
  background-color: #FFFFFF;
}

.model-card-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #8fc7ff;
  transition: color 0.2s ease;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.oai-model-card:hover .model-card-action {
  color: #FFFFFF;
}

.model-card-action .action-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.oai-model-card:hover .action-arrow {
  transform: translate(3px, -3px);
}

/* Responsive Breakdown for 3-Card Grid */
@media (max-width: 1080px) and (min-width: 860px) {
  .oai-model-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .oai-model-card {
    padding: 22px 18px;
    min-height: 460px;
  }
}

@media (max-width: 859px) {
  .oai-model-cards-grid,
  #channels .oai-channels-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
    width: 100vw;
    --mobile-card-width: min(340px, calc(100vw - 48px));
    margin-inline: calc((100% - 100vw) / 2);
    padding-inline: calc((100vw - var(--mobile-card-width)) / 2);
    scroll-padding-inline: calc((100vw - var(--mobile-card-width)) / 2);
  }
  .oai-model-cards-grid::-webkit-scrollbar {
    display: none;
  }
  .oai-model-card,
  .oai-channel-card {
    flex: 0 0 var(--mobile-card-width);
    scroll-snap-align: center;
    min-height: 460px;
  }
}

/* ==========================================================================
   6. Altifigence Developer Pathways & Partnership Channels
   ========================================================================== */
.oai-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.oai-channel-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 28px;
  background-color: var(--oai-channel-card-bg);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none;
  cursor: pointer;
}

.oai-channel-card:hover {
  transform: none;
}

.channel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  z-index: 0;
}

.oai-channel-card:hover .channel-bg {
  transform: scale(1.025);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
}

.channel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.52) 45%,
    rgba(0, 0, 0, 0.94) 92%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease;
}

.oai-channel-card:hover .channel-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.44) 45%,
    rgba(0, 0, 0, 0.9) 92%
  );
}

.channel-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.channel-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.channel-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: keep-all;
  margin: 0;
}

.channel-card-title a {
  color: inherit;
  text-decoration: none;
}

.channel-card-title a:hover,
.oai-channel-card:hover .channel-card-title,
.oai-channel-card:hover .channel-card-title a {
  text-decoration: none;
}

.channel-card-p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 10px 0 0;
  word-break: keep-all;
}

.channel-link-wrap {
  margin-top: auto;
}

.channel-link-wrap .oai-inline-link {
  color: #8fc7ff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.channel-link-wrap .oai-inline-link:hover {
  color: #FFFFFF;
  transform: translateX(2px);
  text-decoration: none;
}

/* ==========================================================================
   Scroll Reveal Animations & Motion Gates
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
  .reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
  .reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }

  .primary-media-box,
  .secondary-thumb {
    transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .primary-media-box__inner,
  .secondary-thumb__inner {
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .spotlight-primary-card:hover .primary-media-box__inner,
  .secondary-card:hover .secondary-thumb__inner {
    transform: scale(1.025);
    transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
  }

  .oai-alliance-card {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .oai-alliance-card:hover {
    transform: none;
  }

  html[data-theme="dark"] .oai-alliance-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .oai-channels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .oai-channel-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   7. OpenAI Style Global Alliance Grid
   ========================================================================== */
.oai-alliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
}

.oai-alliance-card {
  background-color: var(--oai-surface-1);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}



.oai-alliance-card .oai-inline-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.oai-alliance-card:hover {
  background-color: var(--oai-alliance-card-hover-bg);
}



.alliance-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--oai-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alliance-card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--oai-text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  opacity: 1 !important;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.oai-alliance-card:hover .alliance-card-title {
  color: var(--oai-text-primary);
}


.alliance-card-p {
  font-size: 14px;
  color: var(--oai-text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.alliance-link-wrap {
  margin-top: var(--space-sm);
  padding-top: 0;
  border-top: none;
}

.oai-inline-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--oai-text-primary);
  text-decoration: none;
}

.oai-inline-link:hover,
.oai-alliance-card:hover .oai-inline-link {
  text-decoration: none;
}

/* ==========================================================================
   Apple-Style Footer Footnotes & Disclaimers
   ========================================================================== */
.footer-footnotes {
  background-color: var(--oai-bg-primary);
  width: 100%;
  padding: 44px 0 32px;
  border-top: 1px solid var(--oai-border-subtle);
  border-bottom: 1px solid var(--oai-border-subtle);
  box-sizing: border-box;
}

.footer-footnotes__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 48px;
}

.footer-footnotes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-footnote-item {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--oai-text-secondary);
  word-break: keep-all;
  scroll-margin-top: 80px;
}

.footnote-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footnote-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--oai-text-secondary);
  letter-spacing: -0.01em;
}

.footnote-sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
  font-weight: 700;
  color: var(--oai-text-secondary);
  margin-right: 3.5px;
}

.footnote-text {
  margin: 0;
  color: var(--oai-text-secondary);
}

/* Body Footnote Reference Superscripts */
.alt-footnote-ref {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
  margin-left: 2px;
  font-weight: 600;
}

.alt-footnote-ref a {
  color: var(--oai-text-muted);
  text-decoration: none;
  padding: 0 1px;
  transition: color 0.15s ease;
}

.alt-footnote-ref a:hover {
  color: var(--oai-text-primary);
  text-decoration: none;
}

/* ==========================================================================
   8. Responsive Adaptation (Mobile Non-Negotiables)
   ========================================================================== */
@media (max-width: 1024px) {
  .alt-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 32px 28px;
  }
  .alt-metric-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
  .alt-logos-single-row {
    gap: 20px 28px;
  }
  .alt-col-logos {
    gap: 22px 30px;
  }
  .oai-spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .spotlight-primary-card {
    position: static;
  }
  .pillars-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oai-alliance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-row {
    grid-template-columns: 120px 140px minmax(0, 1fr);
  }
  .index-meta-col {
    display: none;
  }
}

@media (max-width: 768px) {
  .alt-bridge-section {
    padding: 56px 0 52px;
  }
  .alt-ecosystem-section {
    margin-top: 64px;
  }
  .alt-ecosystem-headline {
    padding-left: 0;
    margin-bottom: 20px;
  }
  .alt-ecosystem-flow {
    gap: 24px;
  }
  .alt-col-label {
    margin-bottom: 12px;
    text-align: center;
  }
  .alt-col-logos {
    justify-content: center;
    gap: 18px 24px;
  }
  .alt-logos-single-row {
    justify-content: flex-start;
    justify-content: safe center;
    gap: 18px 24px;
  }
  .alt-ecosystem-disclaimer {
    font-size: 11px;
    padding: 0 16px;
    margin-top: 4px;
  }
  .alt-project-showcase {
    padding-left: 0;
    padding-right: 0;
    margin-top: 52px;
    padding-top: 32px;
  }
  .alt-project-links {
    gap: 16px;
  }
  .oai-nav {
    display: none;
  }
  .oai-hero-section {
    padding: clamp(84px, 20vw, 108px) 0;
  }
  .oai-hero-headline {
    font-size: clamp(24px, 6.8vw, 30px);
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .oai-hero-subhead {
    font-size: 16px;
  }
  .prompt-box-wrap {
    padding: 6px 8px 6px 14px;
  }
  .pillars-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-footnotes__container { padding-inline: 24px; }
  .footer-footnotes {
    padding: 32px 0 24px;
  }
  .footer-footnote-item {
    font-size: 11px;
    gap: 6px;
    line-height: 1.6;
  }
  .footnote-title {
    font-size: 11.5px;
  }
  .index-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }
  .index-meta-col {
    display: block;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .alt-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .alt-metric-card {
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .alt-col-logos {
    gap: 16px 20px;
  }
  .alt-logos-single-row {
    gap: 14px 18px;
  }
  .logo-openai,
  .logo-grok {
    width: 36px;
    height: 36px;
  }
  .logo-zai {
    height: 24px;
  }
  .logo-systemverilog {
    height: 30px;
  }
  .logo-uvm {
    height: 32px;
  }
  .logo-systemc {
    height: 27px;
  }
  .logo-ipxact {
    height: 24px;
  }
  .logo-verilator {
    height: 38px;
  }
  .logo-xls {
    height: 32px;
  }
  .logo-python {
    height: 28px;
  }
  .logo-git {
    height: 28px;
  }
  .logo-github {
    height: 28px;
  }
  .logo-gitlab {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   1. Image Border Reset (모든 이미지에서 테두리 제거)
   ========================================================================== */
img,
.primary-media-box,
.secondary-thumb,
.model-card-bg,
.channel-bg,
.logo-img,
.model-title-icon,
.site-product-card__icon {
  border: none !important;
  outline: none !important;
}

/* ==========================================================================
   2. Media Link Wrappers (이미지 클릭으로도 링크 들어가기 가능)
   ========================================================================== */
.media-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.channel-media-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Grok-Style Latest News Section (4-Card Grid)
   ========================================================================== */
.oai-section--news {
  padding-top: 64px;
  padding-bottom: 64px;
}

.news-section-heading {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--oai-text-primary);
}

.news-all-posts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  color: var(--oai-text-primary);
  text-decoration: none;
  opacity: 1 !important;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-all-posts:hover {
  opacity: 1 !important;
  text-decoration: none;
  color: var(--oai-text-primary);
}

.news-arrow {
  display: none !important;
}

html[data-theme="light"] .news-section-heading,
html[data-theme="light"] .news-all-posts {
  color: #0d0d0d;
}

html[data-theme="dark"] .news-section-heading,
html[data-theme="dark"] .news-all-posts {
  color: #ffffff;
}

.news-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-card__link {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.news-card__thumb-link {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 14px;
  -webkit-tap-highlight-color: transparent;
}

.news-thumb {
  box-sizing: border-box;
  max-width: 100%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: none;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none !important;
}

html[data-theme="dark"] .news-thumb {
  border-color: rgba(255, 255, 255, 0.08);
}

.news-card:hover .news-thumb,
.news-card__link:hover .news-thumb,
.news-thumb:hover {
  transform: none !important;
  border-color: rgba(10, 10, 10, 0.15);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .news-card:hover .news-thumb,
html[data-theme="dark"] .news-card__link:hover .news-thumb,
html[data-theme="dark"] .news-thumb:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.news-thumb__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.news-thumb picture,
.news-thumb__img,
.news-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: none !important;
}

.news-card:hover .news-thumb__inner,
.news-card__link:hover .news-thumb__inner,
.news-thumb:hover .news-thumb__inner {
  transform: scale(1.025);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
}

.news-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  text-align: center;
  pointer-events: none;
  background: transparent !important;
  z-index: 2;
}

.news-card:hover .news-thumb__overlay,
.news-card__link:hover .news-thumb__overlay,
.news-thumb:hover .news-thumb__overlay {
  background: transparent !important;
}

.news-thumb,
.news-thumb__inner,
.news-thumb__overlay,
.news-thumb__title,
.news-thumb img,
.news-thumb picture,
.news-card__link {
  -webkit-user-select: none;
  user-select: none;
}

.news-thumb img,
.news-thumb picture {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.news-thumb ::selection,
.news-thumb__title::selection,
.news-thumb__overlay::selection {
  background-color: transparent !important;
  color: #ffffff !important;
}

.news-thumb__title {
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  margin: 0;
  text-align: center;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  .news-thumb__title {
    font-size: 16.5px;
    line-height: 1.32;
  }
}

/* Card 1: Enterprise Dark */
.news-thumb--enterprise {
  position: relative;
}

.news-thumb--enterprise .news-thumb__inner {
  background: #09090b;
}

.news-thumb__badge-text {
  position: absolute;
  top: 18px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.news-badge__company {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.news-badge__product {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.news-thumb__bot-graphic {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: rotate(-18deg);
}

.bot-eye {
  width: 14px;
  height: 38px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

/* Card 2: MCP Agentic Purple */
.news-thumb--mcp {
  position: relative;
}

.news-thumb--mcp .news-thumb__inner {
  background: linear-gradient(135deg, #4c2482 0%, #31135c 100%);
}

.news-thumb--mcp .news-thumb__badge-text {
  top: 20px;
  left: 20px;
}

.news-thumb--mcp .news-badge__company {
  color: rgba(255, 255, 255, 0.8);
}

.news-thumb--mcp .news-badge__product {
  color: #ffffff;
}

.news-thumb__phone {
  position: absolute;
  right: 18px;
  bottom: -24px;
  width: 110px;
  height: 140px;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.phone-chat-bubble {
  font-size: 8px;
  line-height: 1.25;
  padding: 4px 6px;
  border-radius: 6px;
  max-width: 90%;
  word-break: break-all;
}

.phone-chat-bubble--user {
  background: #27272a;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.phone-chat-bubble--agent {
  background: #f4f4f5;
  color: #18181b;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  font-weight: 500;
}

/* Card 3: White with Playful Colorful Shapes */
.news-thumb--white {
  position: relative;
}

.news-thumb--white .news-thumb__inner {
  background: #ffffff;
}

.news-thumb__shapes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.agent-blob {
  display: inline-block;
  transition: transform 0.2s ease;
}

.agent-blob--gray {
  width: 24px;
  height: 28px;
  background: #6b7280;
  border-radius: 50% 50% 40% 40%;
}

.agent-blob--blue {
  width: 26px;
  height: 26px;
  background: #3b82f6;
  border-radius: 40% 40% 20% 20%;
}

.agent-blob--orange {
  width: 28px;
  height: 26px;
  background: #f97316;
  border-radius: 45% 45% 45% 45%;
}

.agent-blob--black {
  width: 26px;
  height: 26px;
  background: #111827;
  border-radius: 50%;
  position: relative;
}

.agent-blob--black::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 5px;
  height: 8px;
  background: #ffffff;
  border-radius: 999px;
}

.agent-blob--green {
  width: 28px;
  height: 24px;
  background: #10b981;
  border-radius: 10px;
}

.agent-blob--brown {
  width: 26px;
  height: 28px;
  background: #854d0e;
  border-radius: 40% 30% 50% 40%;
}

/* Card 4: Frontier Nebula */
.news-thumb--frontier {
  position: relative;
}

.news-thumb--frontier .news-thumb__inner {
  background: #0c0816;
}

.news-thumb__nebula-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 35%, rgba(147, 51, 234, 0.75) 0%, transparent 50%),
              radial-gradient(circle at 80% 75%, rgba(249, 115, 22, 0.75) 0%, transparent 45%),
              radial-gradient(circle at 25% 65%, rgba(79, 70, 229, 0.55) 0%, transparent 50%);
  filter: blur(12px);
}

.news-thumb__frontier-text {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frontier-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.frontier-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* News Card Body */
.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.news-card__title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.42;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--oai-text-primary);
  opacity: 1 !important;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
  opacity: 1 !important;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .news-card__title,
html[data-theme="light"] .news-card__title a {
  color: rgba(13, 13, 13, 0.9);
}

html[data-theme="dark"] .news-card__title,
html[data-theme="dark"] .news-card__title a {
  color: rgba(255, 255, 255, 0.92);
}

.news-card:hover .news-card__title,
.news-card__link:hover .news-card__title,
.news-card:hover .news-card__title a,
.news-card__link:hover .news-card__title a {
  opacity: 1 !important;
  color: var(--oai-text-primary);
}

/* News Card Description */
.news-card__desc {
  font-size: 13.5px;
  line-height: 1.48;
  margin: 0;
  letter-spacing: -0.01em;
  color: #0d0d0d;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

html[data-theme="light"] .news-card__desc {
  color: #0d0d0d;
}

html[data-theme="dark"] .news-card__desc {
  color: rgba(255, 255, 255, 0.88);
}

.news-card:hover .news-card__desc,
.news-card__link:hover .news-card__desc {
  color: #000000;
}

html[data-theme="dark"] .news-card:hover .news-card__desc,
html[data-theme="dark"] .news-card__link:hover .news-card__desc {
  color: #ffffff;
}

/* News Card Date */
.news-card__date {
  font-size: 13px;
  font-weight: 500;
  color: var(--oai-text-muted);
  line-height: 1.3;
  margin-top: 2px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

html[data-theme="light"] .news-card__date {
  color: var(--oai-text-muted);
}

html[data-theme="dark"] .news-card__date {
  color: var(--oai-text-muted);
}

.news-card:hover .news-card__date,
.news-card__link:hover .news-card__date {
  color: var(--oai-text-muted);
}

html[data-theme="dark"] .news-card:hover .news-card__date,
html[data-theme="dark"] .news-card__link:hover .news-card__date {
  color: var(--oai-text-muted);
}

.news-card,
.news-card__body,
.news-card__link {
  user-select: none;
  -webkit-user-select: none;
}

.news-card ::selection,
.news-card::selection {
  background: transparent !important;
  color: inherit !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .news-section-heading,
  :root:not([data-theme="dark"]) .news-all-posts {
    color: #0d0d0d;
  }
  :root:not([data-theme="dark"]) .news-card__title,
  :root:not([data-theme="dark"]) .news-card__title a {
    color: rgba(13, 13, 13, 0.9);
    opacity: 1 !important;
  }
  :root:not([data-theme="dark"]) .news-card:hover .news-card__title,
  :root:not([data-theme="dark"]) .news-card__link:hover .news-card__title,
  :root:not([data-theme="dark"]) .news-card:hover .news-card__title a,
  :root:not([data-theme="dark"]) .news-card__link:hover .news-card__title a {
    color: var(--oai-text-primary);
    opacity: 1 !important;
  }
  :root:not([data-theme="dark"]) .news-card__desc {
    color: #0d0d0d;
  }
  :root:not([data-theme="dark"]) .news-card:hover .news-card__desc,
  :root:not([data-theme="dark"]) .news-card__link:hover .news-card__desc {
    color: #000000;
  }
  :root:not([data-theme="dark"]) .news-card__date {
    color: var(--oai-text-muted);
  }
  :root:not([data-theme="dark"]) .news-card:hover .news-card__date,
  :root:not([data-theme="dark"]) .news-card__link:hover .news-card__date {
    color: var(--oai-text-muted);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-section-heading,
  :root:not([data-theme="light"]) .news-all-posts {
    color: #ffffff;
  }
  :root:not([data-theme="light"]) .news-card__title,
  :root:not([data-theme="light"]) .news-card__title a {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1 !important;
  }
  :root:not([data-theme="light"]) .news-card:hover .news-card__title,
  :root:not([data-theme="light"]) .news-card__link:hover .news-card__title,
  :root:not([data-theme="light"]) .news-card:hover .news-card__title a,
  :root:not([data-theme="light"]) .news-card__link:hover .news-card__title a {
    color: var(--oai-text-primary);
    opacity: 1 !important;
  }
  :root:not([data-theme="light"]) .news-card__desc {
    color: rgba(255, 255, 255, 0.88);
  }
  :root:not([data-theme="light"]) .news-card:hover .news-card__desc,
  :root:not([data-theme="light"]) .news-card__link:hover .news-card__desc {
    color: #ffffff;
  }
  :root:not([data-theme="light"]) .news-card__date {
    color: var(--oai-text-muted);
  }
  :root:not([data-theme="light"]) .news-card:hover .news-card__date,
  :root:not([data-theme="light"]) .news-card__link:hover .news-card__date {
    color: var(--oai-text-muted);
  }
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ==========================================================================
   Support · Community · Legal · Download Portal Console
   ========================================================================== */
.oai-section--portal {
  padding-top: 48px;
  padding-bottom: 72px;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 244px;
  padding: 35px 35px 31px;
  overflow: hidden;
  border-radius: 19px;
  color: #fafafa;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.portal-card,
.portal-card *,
.portal-card-heading,
.portal-card-desc {
  user-select: none;
  -webkit-user-select: none;
}

.portal-card ::selection,
.portal-card::selection,
.portal-card-heading::selection,
.portal-card-desc::selection {
  background: transparent !important;
  color: inherit !important;
}

.portal-card:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  opacity: 1 !important;
}

.portal-card:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 5px;
}

.portal-card--support {
  background: linear-gradient(180deg, #4b9df8 0%, #4795ec 100%);
}

.portal-card--community {
  background: linear-gradient(180deg, #6564d7 0%, #605fcd 100%);
}

.portal-card--legal {
  background: linear-gradient(180deg, #647c9c 0%, #5d7493 100%);
}

.portal-card--download {
  background: linear-gradient(180deg, #8e8e93 0%, #87878c 100%);
}

.portal-card-icon {
  display: block;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  margin: 0 0 18px;
  overflow: visible;
  color: #fbfbfd;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.portal-card:hover .portal-card-icon {
  transform: scale(1.05);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
}

.portal-card-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.45px;
  color: #fafafa;
}

.portal-card-desc {
  margin: 4px 0 0;
  color: #f4f4fa;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.3px;
}

@media (max-width: 1000px) {
  .portal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .portal-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .portal-card {
    padding: 32px 35px;
  }
}

/* CMS cards preserve approved artwork; unknown articles remain readable without a thumbnail. */
[data-homepage-news] .news-card__body { min-width:0; max-width:100%; padding:0; gap:12px; overflow-wrap:anywhere; }
[data-homepage-news] .news-card__title { font-size:18px; line-height:1.4; }
[data-homepage-news] .news-card__date { margin-top:auto; padding-top:10px; }
[data-homepage-news] .news-card__link:focus-visible { outline:2px solid var(--oai-text-primary); outline-offset:6px; }
.news-thumb__title { min-width:0; max-width:100%; overflow-wrap:anywhere; text-wrap:balance; }
[data-homepage-news] :is(.news-thumb__title,.news-card__title,.news-card__desc,.news-card__date) { user-select:text; -webkit-user-select:text; }
.news-status { color:var(--oai-text-secondary); font-size:15px; margin:24px 0 0; }
.news-retry { margin-top:16px; border:1px solid var(--oai-border-medium); border-radius:6px; padding:10px 16px; background:transparent; color:var(--oai-text-primary); font:inherit; cursor:pointer; }
.news-retry[hidden],.news-status[hidden] { display:none; }


.home-trial-offer { max-width: 760px; margin: 24px auto 0; text-align: center; }
.home-trial-offer .home-trial-title { color: var(--oai-text-primary); font-size: 18px; font-weight: 600; line-height: 1.5; }
.home-trial-offer p { margin: 8px 0; color: var(--oai-text-secondary); font-size: 12px; line-height: 1.6; }
.home-trial-offer .home-trial-details { color: var(--oai-text-primary); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.home-trial-offer a:hover { color: var(--oai-text-primary); }
.home-trial-offer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
