/* Clean white canvas; dark controls with bright mint lettering. */
:root {
  color-scheme: light;
  --brand-navy: #082449;
  --brand-green: #0dac67;
  --brand-mint: #65f3ae;
  --ink: #142b37;
  --text: #344650;
  --muted: #4b5b65;
  --accent: #076642;
  --accent-dark: #075d40;
  --accent-soft: #e6f5ed;
  --line: #e5e8eb;
  --line-strong: #cdd3d9;
  --surface: #ffffff;
  --surface-soft: #f6faf8;
  --surface-tint: #eef4f0;
  --green-gradient: linear-gradient(115deg, #075f43 0%, #14834e 49%, #527c31 100%);
  --text-gradient: linear-gradient(105deg, #08774c 0%, #0a9b61 62%, #12854e 100%);
  --glass: linear-gradient(135deg, #fffffff5, #ffffffde);
  --glass-shadow: inset 0 1px 0 #fff, 0 4px 18px #18232d05;
  --site-header-height: 84px;
  color: var(--ink);
  background: #fff;
}

body {
  background: #fff;
}
::selection {
  background: #d9f3e5;
  color: var(--accent-dark);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--brand-green);
}

/* Keep enough contrast for navigation as content scrolls underneath. */
.header {
  position: sticky;
  isolation: isolate;
  background: linear-gradient(rgb(255 255 255 / 94%), rgb(255 255 255 / 88%)) !important;
  border-color: rgb(162 170 184 / 18%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    0 4px 20px rgb(34 43 65 / 3%);
}
.header::before {
  content: none;
}
.header-inner {
  position: relative;
  z-index: 1;
}
.brand-caption,
.login {
  color: var(--text);
}
.nav > a {
  color: var(--ink);
}
.nav > a:hover,
.nav > a.active {
  color: var(--accent);
}
.nav > a.active {
  font-weight: 650;
}
.nav > a.active:after {
  background: var(--green-gradient);
}
.new-label {
  background: #f0f5f2;
  color: var(--accent-dark);
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-weight: 600;
}
.btn.primary,
.hero-refined .hero-buttons .primary {
  background: var(--brand-navy);
  color: var(--brand-mint);
  border: 1px solid var(--brand-navy);
  box-shadow: 0 4px 12px #0824490a;
}
.btn.primary:before {
  content: none;
}
.btn.primary:hover,
.hero-refined .hero-buttons .primary:hover {
  background: #102e50;
  color: #9affcc;
  border-color: #102e50;
  box-shadow: 0 6px 18px #08244912;
}
.btn.secondary,
.hero-refined .hero-buttons .secondary {
  color: var(--brand-navy);
  background: transparent;
  border-color: var(--brand-navy);
  box-shadow: none;
}
.btn.secondary:hover,
.hero-refined .hero-buttons .secondary:hover {
  background: #f3f8f5;
  color: #102e50;
  border-color: #102e50;
}

/* Soft green light beneath the embossed surface. */
.hero-refined {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--site-header-height));
  padding-top: var(--site-header-height);
  background: #fff url('../assets/hero-glass-texture.webp') center / cover no-repeat;
  border-color: #e8eee9;
  overflow: hidden;
}
.hero-light-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    transparent var(--site-header-height),
    #000 38%,
    #000 82%,
    transparent
  );
  mask-image: linear-gradient(
    180deg,
    transparent,
    transparent var(--site-header-height),
    #000 38%,
    #000 82%,
    transparent
  );
}
.hero-light-field::before,
.hero-light-field::after {
  content: '';
  position: absolute;
  inset: 0 -16%;
  filter: blur(24px);
}
.hero-light-field::before {
  background: url('../assets/hero-green-waves.svg') center / 108% 118% no-repeat;
  opacity: 0.5;
}
.hero-light-field::after {
  background: url('../assets/hero-green-waves.svg') center / 114% 126% no-repeat;
  opacity: 0.16;
}
.hero-refined::before {
  content: none;
}
.hero-refined::after {
  content: none;
}
/* Fade only the homepage backdrop; the copy and core remain fully opaque. */
.home-experience > .hero-refined {
  --hero-backdrop-texture: url('../assets/hero-glass-texture.webp');
  background: transparent;
  border-bottom: 0;
}
.home-experience > .hero-refined::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #fff var(--hero-backdrop-texture) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, #000c 66%, #0006 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, #000c 66%, #0006 82%, transparent 100%);
}
.home-experience > .hero-refined .hero-light-field {
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    transparent var(--site-header-height),
    #000 38%,
    #0009 65%,
    #0003 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent,
    transparent var(--site-header-height),
    #000 38%,
    #0009 65%,
    #0003 82%,
    transparent 100%
  );
}
@media (max-width: 760px) {
  .home-experience > .hero-refined {
    --hero-backdrop-texture: url('../assets/hero-glass-texture-mobile.webp');
  }
}
/* The section background is below every child, without a foreground overlay. */
.hero-refined .hero-grid {
  position: relative;
  z-index: 1;
}
/* Alpha video keeps the fine background grain out of the metal materials. */
.hero-refined .hero-art {
  mix-blend-mode: normal;
}
.hero-refined .hero-art:has(.scene-film[data-opaque]) {
  mix-blend-mode: darken;
}
@media (max-width: 1000px) {
  :root {
    --site-header-height: 74px;
  }
}
@media (max-width: 760px) {
  :root {
    --site-header-height: 65px;
  }
  .hero-refined {
    background-image: url('../assets/hero-glass-texture-mobile.webp');
  }
  .hero-light-field {
    -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 32%, #000 82%, transparent);
    mask-image: linear-gradient(180deg, transparent 6%, #000 32%, #000 82%, transparent);
  }
  .hero-light-field::before,
  .hero-light-field::after {
    inset: -20% -65%;
    filter: blur(23px);
  }
}
.hero-refined h1,
.section-title h2,
h2 {
  color: var(--ink);
}
.hero-refined h1 > span,
.page-intro h1 > span,
.section-title h2 > span,
.developer-grid h2 > span,
.estimate strong {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-refined .hero-description {
  color: var(--text);
}
.hero-refined .announcement {
  color: var(--text);
  background: rgb(255 255 255 / 84%);
  border: 1px solid rgb(180 184 199 / 30%);
  box-shadow: inset 0 1px 0 #fff;
  border-radius: 5px;
}
.hero-refined .announcement > svg,
.hero-refined .hero-assurance svg {
  color: var(--accent);
}
.hero-refined .hero-assurance > span {
  color: var(--muted);
}
.home-experience > .hero-refined .subtle-note {
  font-size: 13px;
  line-height: 1.8;
}
/* One assurance-row scale for the homepage and every shared page hero. */
.hero-refined .hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
}
.hero-refined .hero-assurance > span {
  font-size: 13px;
  line-height: 1.7;
  gap: 5px;
  white-space: nowrap;
}
.hero-refined .hero-assurance svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .hero-refined .hero-assurance {
    margin-top: 18px;
  }
  .hero-refined .hero-assurance > span {
    font-size: 12px;
    gap: 4px;
  }
}
.home-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
}
.hero-refined .home-hero-meta .subtle-note {
  margin: 0;
}
.hero-refined .home-hero-meta .hero-assurance {
  margin: 0;
  padding-left: 0;
  border-left: 0;
  gap: 16px;
}
@media (max-width: 760px) {
  .home-hero-meta {
    gap: 10px;
    margin-top: 18px;
  }
  .hero-refined .home-hero-meta .hero-assurance {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 760px) {
  .home-experience > .hero-refined .subtle-note {
    font-size: 12px;
  }
}
.hero-refined .art-halo {
  display: none;
}
.hero-refined .hero-art:after {
  background: none;
}
/* The green is rendered in Blender; preserve the neutral material colors. */
.hero-art .scene-poster,
.scene-video {
  filter: none;
}
.hero-refined .scene-film :is(.scene-poster, .scene-video),
.page-banner-film :is(.page-banner-poster, .page-banner-video) {
  filter: brightness(1.06);
}
.hero-refined .art-coordinate {
  color: var(--muted);
}
.live-dot,
.mini-dot,
.code-foot .live-dot {
  background: var(--brand-green);
}

.eyebrow,
.text-link {
  color: var(--accent);
}
.text-link:hover {
  color: var(--accent-dark);
}
.section-description,
.capability-card > p,
.model-card > p {
  color: var(--muted);
}
.models-section,
.developer-section {
  background: var(--surface-soft);
}
.capability-card,
.model-card,
.scenario-preview,
.modal,
.price-calculator,
.compute-panel,
.about-statement,
.about-contact {
  background: var(--glass);
  border-color: var(--line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.capability-card,
.model-card,
.scenario-preview,
.price-calculator,
.compute-panel,
.about-statement,
.about-contact {
  border-radius: 10px;
}
.modal-backdrop {
  background: rgb(255 255 255 / 18%);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}
.model-card {
  display: block;
  cursor: pointer;
}
.model-bottom .model-detail-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.capability-card:hover,
.model-card:hover {
  background: #fff;
  border-color: #b9d3c5;
  box-shadow: 0 8px 24px #18232d09;
}
.icon-tile,
.preview-app-icon,
.doc-step {
  color: var(--accent-dark);
  background: #f6f8f7;
  border-color: var(--line);
  box-shadow: inset 0 1px 1px #fff;
}
.category-tabs button,
.scenario-tabs button {
  color: var(--text);
}
.category-tabs button.active,
.scenario-tabs button.active {
  color: var(--accent);
  font-weight: 650;
}
.category-tabs button.active:after {
  background: var(--green-gradient);
}
.scenario-tabs button.active {
  border-bottom-color: var(--accent);
}
.product-switch .active,
.compute-tabs .active,
.docs-sidebar nav a.active {
  color: var(--accent-dark);
  background: #eef8f2;
  box-shadow: inset 0 0 0 1px #d3e9dc;
  font-weight: 600;
}
.model-mark {
  color: var(--ink);
  background: #f5f7f8;
  border-color: var(--line);
}
.model-tags > span,
.scenario-tags span {
  color: var(--text);
  background: #f2f4f6;
}
.scenarios-section {
  background: #f5f6f8;
  padding-top: 72px;
}
.scenario-panel {
  background: #fff;
}
@media (max-width: 760px) {
  .scenarios-section {
    padding-top: 40px;
  }
}
.answer-avatar,
.chat-avatar {
  background: var(--green-gradient);
}
.preview-question,
.chat-message.user > p {
  background: #f0f4f2;
}
.preview-input svg,
.check-row svg,
.compute-features svg {
  color: var(--accent);
}
.steps b {
  color: var(--accent-dark);
  background: #f4f7f5;
}

/* Keep developer surfaces light, with green code accents and selected tabs. */
.code-block {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--glass-shadow);
}
.code-top,
.code-foot {
  background: #f3f8f5;
  color: var(--text);
  border-color: var(--line);
}
.code-top > button {
  color: var(--text);
}
.code-tabs {
  border-color: var(--line);
}
.code-tabs button {
  color: var(--muted);
}
.code-tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.code-accent {
  color: var(--accent-dark);
}
.line-number {
  color: #8b949e;
}
.window-dots i,
.window-dots i:first-child {
  background: #c9ced4;
}
.window-dots i:nth-child(2) {
  background: #b2bbc4;
}
.window-dots i:nth-child(3) {
  background: #8795a0;
}
.search-input:focus-within,
.chat-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #0dac6712;
}
.server-unit {
  background: linear-gradient(140deg, #fff, #e5e8ec);
  color: var(--accent-dark);
}
.server-unit i {
  background: var(--brand-green);
}
.cta-section {
  background: var(--surface-soft);
}
.cta-section:after {
  display: none;
}
.cta-inner .eyebrow {
  color: var(--accent);
}
.footer {
  background: #fff;
}
.floating-notice {
  color: var(--accent-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--glass-shadow);
}
.floating-notice:hover {
  background: #f5f9f7;
  border-color: #b9d3c5;
}

@media (max-width: 760px) {
  .header,
  body .header[data-over-dark] {
    background: transparent !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgb(255 255 255 / 94%);
  }
  .nav.mobile-open {
    top: calc(var(--site-header-height) - 1px);
    left: calc(-1 * var(--page-gutter));
    right: calc(-1 * var(--page-gutter));
    background: rgb(255 255 255 / 97%) !important;
  }
}

@media (forced-colors: active) {
  .hero-refined h1 > span,
  .page-intro h1 > span,
  .section-title h2 > span,
  .developer-grid h2 > span,
  .estimate strong {
    background: none;
    color: CanvasText;
  }
}

.header .brand-caption {
  font-size: 13px;
  font-weight: 500;
}

.header .nav > a, .header .lf-nav-top > a, .header .login {
  font-size: 15px;
  font-weight: 500;
}

.header .header-actions .compact {
  font-size: 14px;
}

body:not([data-page='index']) main {
  --page-title-size: clamp(36px, 4.25vw, 64px);
  --section-title-size: clamp(26px, 2.65vw, 40px);
  --card-title-size: clamp(21px, 1.8vw, 28px);
  --section-space: clamp(28px, 3.5vw, 52px);
}

body:not([data-page='index']) main :is(.text-link, .ag-card-link, .model-bottom .model-detail-link, .price-table td a, .ag-generic > div > a) {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

body:not([data-page='index']) main :is(.text-link, .docs-next a, .ag-article-footer a, .price-table td a):is(:hover, :focus-visible), body:not([data-page='index']) main :is(.model-card, .ag-tool-card):is(:hover, :focus-visible) :is(.model-detail-link, .ag-card-link) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body:not([data-page='index']) main :is(button, a, input, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

body:not([data-page='index']) main :is(.ag-search, .chat-form) input:focus-visible {
  outline: none;
}

body:not([data-page='index']) main :is(.search-input input, .ag-search input, .calculator-inputs input, .chat-form input) {
  color: var(--ink);
  font-size: 16px;
}

body:not([data-page='index']) main input::placeholder {
  color: var(--muted);
}

body:not([data-page='index']) main :is(.glass-select-trigger, .provider-filter-trigger, .glass-select-option, .provider-filter-options [role="option"]) {
  font-size: 14px;
}

body:not([data-page='index']) main :is(.ag-search, .catalog-toolbar .search-input, .provider-filter-trigger, .chat-form) {
  border: 1px solid rgb(183, 201, 195);
}

body:not([data-page='index']) main :is(.token-plans-heading h2, .compute-catalog-heading h2, .ag-section-heading h2, .ag-setup-copy > h2, .about-statement h2, .about-contact h2, .cp-authorization-intro h2, .cp-contact h2, .faq > h2, .pricing-table-title h2) {
  font-size: var(--section-title-size);
  line-height: 1.32;
  font-weight: 650;
  color: var(--ink);
  text-wrap: balance;
}

body:not([data-page='index']) main :is(.model-title-link h3, .ag-tool-card h3, .token-plan-card h3, .compute-service-copy h3, .cd-copy h3, .price-calculator h2, .price-explanation h2, .ag-generic h2, .chat-welcome h2) {
  font-size: var(--card-title-size);
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

body:not([data-page='index']) main :is(.catalog-grid .model-card > p, .ag-tool-card > p, .ag-generic p, .token-plan-description, .price-calculator > p:not(.eyebrow), .price-explanation > p, .faq-item > p, .compute-service-details p, .compute-catalog-description > p, .cd-copy > p, .cp-authorization-description, .cp-process-timeline p, .about-statement > p:last-child, .about-values p, .chat-welcome > p, .chat-message > p, .foundation-closing-note) {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

body:not([data-page='index']) main :is(.model-provider, .results-label, .ag-results, .ag-card-top, .model-bottom, .catalog-note, .token-plans-note, .token-plan-topline, .pricing-source, .compute-catalog-description .compute-billing-note, .cp-process-timeline small, .cp-contact-details figcaption, .cp-contact-details > p, .chat-foot) {
  color: var(--muted);
  font-size: 13px;
}

body:not([data-page='index']) main :is(.model-tags > span, .ag-card-bottom > div span, .results-label > span, .token-plan-includes > p) {
  color: var(--muted);
  font-size: 12px;
}

body:not([data-page='index']) main :is(.price-calculator > label, .calculator-inputs label, .token-plan-features li, .token-plan-quota, .check-row, .product-switch, .ag-setup .ag-steps p, .cp-process-timeline strong, .about-contact > div, .playground-toolbar label) {
  font-size: 14px;
  color: var(--text);
}

body:not([data-page='index']) main :is(.calculator-inputs label > span, .estimate > small, .estimate > span, .token-plan-quota > span, .price-table td small, .compute-price-table thead th > span, .cp-contact-details a small) {
  font-size: 12px;
  color: var(--muted);
}

body:not([data-page='index']) main .estimate strong {
  color: var(--accent-dark);
  background: none;
}

body:not([data-page='index']) main :is(.price-table, .price-table td strong, .compute-price-table thead th) {
  font-size: 14px;
}

body:not([data-page='index']) main :is(.ag-generic h3, .ag-setup .ag-steps h2, .cp-process-timeline h3, .about-values h3) {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.modal :is(.modal-desc, .detail-list > div) {
  font-size: 15px;
}

.modal h2, .modal .detail-list code {
  overflow-wrap: anywhere;
}

.modal .model-tags > span {
  font-size: 12px;
  color: var(--muted);
}
