/* ===== XSTRYK DESIGN SYSTEM: LUJO CIENTÍFICO ===== */
/* Referentes: Teenage Engineering, Minimalismo Suizo, Braun */
/* Tono: Autoridad tranquila, precisión matemática, sobriedad */

/* Fonts are loaded via public/index.html to avoid duplicate requests. */

/* Tailwind CSS */
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-sans); /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: "IBM Plex Mono", -apple-system, BlinkMacSystemFont, 'SF Mono', 'SF Pro Text', 'SF Pro Display', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-mono); /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
* {
  border-color: hsl(217.2 32.6% 17.5%);
  border-color: hsl(var(--border));
}
body {
  background-color: hsl(0 0% 1.2%);
  background-color: hsl(var(--background));
  color: hsl(0 0% 98%);
  color: hsl(var(--foreground));
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }
  .container {
    max-width: 1536px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.left-\[50\%\] {
  left: 50%;
}
.right-4 {
  right: 1rem;
}
.top-4 {
  top: 1rem;
}
.top-\[50\%\] {
  top: 50%;
}
.z-50 {
  z-index: 50;
}
.mt-2 {
  margin-top: 0.5rem;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-4 {
  height: 1rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[1px\] {
  height: 1px;
}
.h-full {
  height: 100%;
}
.w-10 {
  width: 2.5rem;
}
.w-4 {
  width: 1rem;
}
.w-72 {
  width: 18rem;
}
.w-\[1px\] {
  width: 1px;
}
.w-full {
  width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.flex-1 {
  flex: 1 1;
}
.shrink-0 {
  flex-shrink: 0;
}
.translate-x-\[-50\%\] {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-\[-50\%\] {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: 1rem;
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.75rem;
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(0.75rem - 2px);
  border-radius: calc(var(--radius) - 2px);
}
.rounded-sm {
  border-radius: calc(0.75rem - 4px);
  border-radius: calc(var(--radius) - 4px);
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-input {
  border-color: hsl(217.2 32.6% 17.5%);
  border-color: hsl(var(--input));
}
.border-transparent {
  border-color: transparent;
}
.bg-background {
  background-color: hsl(0 0% 1.2%);
  background-color: hsl(var(--background));
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-border {
  background-color: hsl(217.2 32.6% 17.5%);
  background-color: hsl(var(--border));
}
.bg-card {
  background-color: hsl(222.2 84% 4.9%);
  background-color: hsl(var(--card));
}
.bg-destructive {
  background-color: hsl(0 62.8% 30.6%);
  background-color: hsl(var(--destructive));
}
.bg-muted {
  background-color: hsl(217.2 32.6% 17.5%);
  background-color: hsl(var(--muted));
}
.bg-popover {
  background-color: hsl(222.2 84% 4.9%);
  background-color: hsl(var(--popover));
}
.bg-primary {
  background-color: hsl(221 83% 53%);
  background-color: hsl(var(--primary));
}
.bg-secondary {
  background-color: hsl(217.2 32.6% 17.5%);
  background-color: hsl(var(--secondary));
}
.p-1 {
  padding: 0.25rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pt-0 {
  padding-top: 0px;
}
.text-center {
  text-align: center;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.italic {
  font-style: italic;
}
.leading-none {
  line-height: 1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.text-card-foreground {
  color: hsl(210 40% 98%);
  color: hsl(var(--card-foreground));
}
.text-destructive-foreground {
  color: hsl(210 40% 98%);
  color: hsl(var(--destructive-foreground));
}
.text-foreground {
  color: hsl(0 0% 98%);
  color: hsl(var(--foreground));
}
.text-muted-foreground {
  color: hsl(215 20.2% 65.1%);
  color: hsl(var(--muted-foreground));
}
.text-popover-foreground {
  color: hsl(210 40% 98%);
  color: hsl(var(--popover-foreground));
}
.text-primary {
  color: hsl(221 83% 53%);
  color: hsl(var(--primary));
}
.text-primary-foreground {
  color: hsl(222.2 47.4% 11.2%);
  color: hsl(var(--primary-foreground));
}
.text-secondary-foreground {
  color: hsl(210 40% 98%);
  color: hsl(var(--secondary-foreground));
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.opacity-70 {
  opacity: 0.7;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DARK THEME (Default - Deep Space Black) === */
:root {
  --background: 0 0% 1.2%;
  --foreground: 0 0% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  /* AI21-like: cool primary instead of warm orange */
  --primary: 221 83% 53%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 221 83% 53%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 221 83% 53%;
  --radius: 0.75rem;
  /* === SUPERFICIES === */
  --obsidian: #020202;
  --elevation-01: #0B0B0B;
  --elevation-02: #121212;
  --grid-lines: #1A1A1A;

  /* Compat tokens used by several sections/components */
  --accent-primary: var(--accent-blue);
  --accent-secondary: var(--accent-cyan);
  --surface-secondary: rgba(255, 255, 255, 0.03);
  --surface-glass: rgba(255, 255, 255, 0.03);
  --surface-glass-strong: rgba(255, 255, 255, 0.045);
  --surface-glass-soft: rgba(255, 255, 255, 0.02);
  --border-primary: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  
  /* === TIPOGRAFÍA === */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.84);
  --text-tertiary: rgba(255, 255, 255, 0.62);
  
  /* === ACENTOS (Cool system) === */
  --accent-blue: #2563EB;
  --accent-blue-rgb: 37, 99, 235;
  --accent-ember: #A855F7;
  --accent-copper: #2563EB;
  --accent-ice: rgba(255,255,255,.5);
  --accent-lavender: #E2E8F0;
  --accent-lavender-rgb: 226, 232, 240;
  --accent-subtle: rgba(226, 232, 240, 0.12);

  /* Hybrid color (Faculty-like restraint): used as *accent*, not wallpaper */
  --accent-violet: #9333EA;
  --accent-violet-rgb: 147, 51, 234;
  /* Directriz: máximo 2 acentos. Cyan queda alias del primario (blue). */
  --accent-cyan: var(--accent-blue);
  --accent-cyan-rgb: var(--accent-blue-rgb);
  /* Used across legacy gradients; keep as token for consistency */
  --accent-sky: #38BDF8;
  --accent-sky-rgb: 56, 189, 248;
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 100%);

  /* === BRAND COLORS (mapped to existing tokens; no new hard-coded colors) === */
  --brand-aws: var(--accent-sky);
  --brand-gcp: var(--accent-blue);
  --brand-azure: var(--accent-violet);
  --brand-snowflake: var(--accent-sky);
  --brand-databricks: var(--accent-violet);
  --brand-langchain: var(--accent-blue);
  --brand-openai: var(--text-primary);
  --brand-anthropic: var(--text-secondary);
  --brand-grafana: var(--accent-sky);
  --brand-mlflow: var(--accent-blue);
  --brand-wandb: var(--accent-violet);
  --brand-huggingface: var(--accent-sky);
  
  /* === CURSOR === */
  --cursor-color: #FAFAFA;
  --cursor-outline: rgba(250, 250, 250, 0.3);
  
  /* === CANVAS === */
  --particle-color: 250, 250, 250;
  --particle-line: var(--accent-blue-rgb);
  
  /* === FUENTES === */
  /* Refined typography: Free alternatives to Alliance fonts */
  /* Work Sans: Best free alternative to Alliance No.1 (body text, similar geometric sans-serif) */
  /* Space Grotesk: Best free alternative to Alliance No.2 (headlines, display text) */
  --font-sans: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "Space Grotesk", "Alliance No.2", "Work Sans", var(--font-sans);
  --font-mono: "IBM Plex Mono", -apple-system, BlinkMacSystemFont, 'SF Mono', 'SF Pro Text', 'SF Pro Display', ui-monospace, Menlo, Monaco, Consolas, monospace;
  
  /* === TRACKING === */
  --tracking-tight: -0.03em;
  --tracking-normal: 0;

  /* AI21-like type rhythm */
  --leading-tight: 1.12;
  --leading-body: 1.7;
  --text-max: 68ch;
  
  /* === SPACING === */
  --margin-desktop: 64px;
  --margin-mobile: 20px;
  --section-gap: 120px;
  --container-max: 1200px;
  
  /* === TRANSITIONS === */
  --ease-out: cubic-bezier(0.25, 0, 0, 1);
  --duration: 0.3s;
}

/* Performance mode: reduce expensive GPU effects that often cause scroll jank.
   Controlled by JS via <html data-reduce-effects="true"> (see App.js). */
html[data-reduce-effects='true'] * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-reduce-effects='true'] .hero__glow,
html[data-reduce-effects='true'] .hero__overlay,
html[data-reduce-effects='true'] .glass,
html[data-reduce-effects='true'] [class*='glass'],
html[data-reduce-effects='true'] [class*='blur'],
html[data-reduce-effects='true'] [style*='blur'] {
  filter: none !important;
}

/* === LIGHT THEME (Apple White Titanium) === */
[data-theme="light"] {
  /* Slightly cool off-white */
  --background: 210 25% 99.2%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221 83% 53%;
  --radius: 0.75rem;
  /* === SUPERFICIES (Scale-like clean) === */
  --obsidian: #FFFFFF;
  --elevation-01: #F8FAFC;
  --elevation-02: #F1F5F9;
  --grid-lines: #E5E7EB;

  /* Compat tokens used by several sections/components */
  --accent-primary: var(--accent-blue);
  --accent-secondary: var(--accent-violet);
  --surface-secondary: rgba(255, 255, 255, 0.70);
  --surface-glass: rgba(255, 255, 255, 0.66);
  --surface-glass-strong: rgba(255, 255, 255, 0.74);
  --surface-glass-soft: rgba(255, 255, 255, 0.58);
  --border-primary: rgba(15, 23, 42, 0.14);
  --glass-border: rgba(15, 23, 42, 0.14);
  --glass-border-soft: rgba(15, 23, 42, 0.10);
  
  /* === TIPOGRAFÍA === */
  --text-primary: #0B1220;
  --text-secondary: #1E293B;
  --text-tertiary: #475569;
  
  /* === ACENTOS === */
  --accent-blue: #2563EB;
  --accent-blue-rgb: 37, 99, 235;
  --accent-lavender-rgb: 226, 232, 240;
  --accent-violet: #7C3AED;
  --accent-violet-rgb: 124, 58, 237;
  /* Directriz: máximo 2 acentos. Cyan queda alias del primario (blue). */
  --accent-cyan-rgb: var(--accent-blue-rgb);
  --accent-sky: #38BDF8;
  --accent-sky-rgb: 56, 189, 248;
  --accent-subtle: rgba(37, 99, 235, 0.10);

  /* === BRAND COLORS (mapped to existing tokens; no new hard-coded colors) === */
  --brand-aws: var(--accent-sky);
  --brand-gcp: var(--accent-blue);
  --brand-azure: var(--accent-violet);
  --brand-snowflake: var(--accent-sky);
  --brand-databricks: var(--accent-violet);
  --brand-langchain: var(--accent-blue);
  --brand-openai: var(--text-primary);
  --brand-anthropic: var(--text-secondary);
  --brand-grafana: var(--accent-sky);
  --brand-mlflow: var(--accent-blue);
  --brand-wandb: var(--accent-violet);
  --brand-huggingface: var(--accent-sky);
  
  /* === CURSOR === */
  --cursor-color: #1D1D1F;
  --cursor-outline: rgba(29, 29, 31, 0.2);
  
  /* === CANVAS === */
  --particle-color: 99, 99, 102;
  --particle-line: var(--accent-blue-rgb);
  
  /* === SHADOWS - Subtle Titanium === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  
  /* === TITANIUM GRADIENT === */
  --titanium-gradient: linear-gradient(180deg, #FFFFFF 0%, #F7F7FA 50%, #FFFFFF 100%);
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevenir scroll extra */
  height: 100%;
  overflow-y: auto;
}

html.lenis {
  height: auto;
  scroll-behavior: auto; /* Lenis controls smooth scroll; avoid double easing */
}

body {
  font-family: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-sans);
  background: #020202;
  background: var(--obsidian);
  color: rgba(255, 255, 255, 0.84);
  color: var(--text-secondary);
  line-height: 1.7;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  overflow-y: auto;
  /* Prevenir scroll extra después del footer */
  position: relative;
}

/* Keep text blocks feeling "luxury" and readable */
p {
  max-width: 68ch;
  max-width: var(--text-max);
}

/* === APP CONTAINER === */
.App {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Let the global AI21 background show through across the site */
.App [class$='-page'] {
  background: transparent !important;
  background-color: transparent !important;
}

/* === AI21-LIKE GLOBAL BACKGROUND (fixed, subtle, CSS-only) === */
.ai21-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Advanced: global cursor-follow glow (desktop only). */
.ai21-bg__cursor {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.25, 0, 0, 1);
  transition: opacity 420ms var(--ease-out);
  background:
    radial-gradient(
      620px circle at 50% 28%,
      rgba(96, 165, 250, 0.14) 0%,
      rgba(167, 139, 250, 0.08) 26%,
      transparent 62%
    );
  background:
    radial-gradient(
      620px circle at var(--ai21-cursor-x, 50%) var(--ai21-cursor-y, 28%),
      rgba(96, 165, 250, 0.14) 0%,
      rgba(167, 139, 250, 0.08) 26%,
      transparent 62%
    );
  filter: blur(10px);
}

.App[data-cursor='on'] .ai21-bg__cursor {
  opacity: 0.85;
}

[data-theme="light"] .ai21-bg__cursor {
  background:
    radial-gradient(
      620px circle at 50% 28%,
      rgba(37, 99, 235, 0.11) 0%,
      rgba(147, 51, 234, 0.07) 26%,
      transparent 62%
    );
  background:
    radial-gradient(
      620px circle at var(--ai21-cursor-x, 50%) var(--ai21-cursor-y, 28%),
      rgba(var(--accent-blue-rgb), 0.11) 0%,
      rgba(var(--accent-violet-rgb), 0.07) 26%,
      transparent 62%
    );
  opacity: 0;
}

/* Respect perf and touch devices */
html[data-reduce-effects='true'] .ai21-bg__cursor {
  display: none;
}

@media (pointer: coarse) {
  .ai21-bg__cursor { display: none; }
}

.ai21-bg__orb {
  position: absolute;
  width: min(820px, 80vw);
  height: min(820px, 80vw);
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.12;
  --ai21-orb-px: 0px;
  --ai21-orb-py: 0px;
  transform: translate3d(var(--ai21-orb-px), var(--ai21-orb-py), 0);
  will-change: transform;
  animation: ai21OrbFloat 20s cubic-bezier(0.25, 0, 0, 1) infinite;
  animation: ai21OrbFloat 20s var(--ease-out) infinite;
}

@keyframes ai21OrbFloat {
  0% {
    transform: translate3d(var(--ai21-orb-px), var(--ai21-orb-py), 0) scale(1);
  }
  50% {
    transform: translate3d(
      calc(var(--ai21-orb-px) + 22px),
      calc(var(--ai21-orb-py) - 14px),
      0
    ) scale(1.03);
  }
  100% {
    transform: translate3d(var(--ai21-orb-px), var(--ai21-orb-py), 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai21-bg__orb { animation: none; }
}

.ai21-bg__orb--a {
  top: -320px;
  left: -260px;
  --ai21-orb-py: var(--ai21-parallax-a, 0px);
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.95), transparent 62%);
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-cyan-rgb), 0.95), transparent 62%);
}

.ai21-bg__orb--b {
  top: 10vh;
  right: -320px;
  --ai21-orb-py: var(--ai21-parallax-b, 0px);
  background: radial-gradient(circle at 40% 40%, rgba(147, 51, 234, 0.95), transparent 64%);
  background: radial-gradient(circle at 40% 40%, rgba(var(--accent-violet-rgb), 0.95), transparent 64%);
  animation-duration: 23s;
}

.ai21-bg__orb--c {
  bottom: -360px;
  left: 18vw;
  --ai21-orb-py: var(--ai21-parallax-c, 0px);
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.92), transparent 64%);
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-blue-rgb), 0.92), transparent 64%);
  animation-duration: 26s;
}

.ai21-bg__orb--d {
  bottom: -300px;
  right: 10vw;
  --ai21-orb-py: var(--ai21-parallax-d, 0px);
  background: radial-gradient(circle at 35% 35%, rgba(147, 51, 234, 0.70), transparent 62%);
  background: radial-gradient(circle at 35% 35%, rgba(var(--accent-violet-rgb), 0.70), transparent 62%);
  animation-duration: 28s;
}

.ai21-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 70%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

[data-theme="light"] .ai21-bg__grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  opacity: 0.22;
}

.ai21-bg__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.8%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27256%27 height=%27256%27 filter=%27url%28%23n%29%27 opacity=%27.05%27/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
}

[data-theme="light"] .ai21-bg__grain {
  opacity: 0.10;
  mix-blend-mode: normal;
}

[data-theme="light"] .ai21-bg__orb {
  /* AI21.com is primarily clean + editorial on light.
     Keep only subtle grid; remove floating orbs. */
  display: none;
}

[data-theme="light"] .ai21-bg__cursor {
  filter: none;
}

.ai21-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, transparent 35%, rgba(0,0,0,0.42) 100%),
    radial-gradient(ellipse 95% 85% at 50% 50%, transparent 40%, rgba(0,0,0,0.65) 100%);
  opacity: 0.65;
}

/* Light theme should stay editorial/bright so below-the-fold text can be dark. */
[data-theme="light"] .ai21-bg__vignette {
  opacity: 0;
  background: none;
}

html[data-reduce-effects='true'] .ai21-bg__orb {
  filter: none;
  opacity: 0.08;
}
html[data-reduce-effects='true'] .ai21-bg__grain {
  display: none;
}

/* === A11Y UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only--focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--bg-primary);
  color: #FFFFFF;
  color: var(--text-primary);
  border: 2px solid 221 83% 53%;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: nowrap;
}

/* === HYBRID BACKGROUND (subtle, CSS-only) === */
.hybrid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hybrid-bg__orb {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.16;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: orbFloat 16s cubic-bezier(0.25, 0, 0, 1) infinite;
  animation: orbFloat 16s var(--ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hybrid-bg__orb { animation: none; }
}

.hybrid-bg__orb--a {
  top: -240px;
  left: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.9), transparent 60%);
}

.hybrid-bg__orb--b {
  top: 20vh;
  right: -240px;
  background: radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.9), transparent 62%);
  animation-duration: 19s;
}

.hybrid-bg__orb--c {
  bottom: -260px;
  left: 20vw;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.9), transparent 62%);
  animation-duration: 22s;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* === TYPOGRAPHY - Refined === */
h1 {
  font-family: "Space Grotesk", "Alliance No.2", "Work Sans", "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  line-height: var(--leading-tight);
  color: #FFFFFF;
  color: var(--text-primary);
}

h2 {
  font-family: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.32;
  color: #FFFFFF;
  color: var(--text-primary);
}

h3 {
  font-family: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  color: var(--text-primary);
}

h4 {
  font-family: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  color: var(--text-primary);
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  color: var(--text-secondary);
}

.mono {
  font-family: "IBM Plex Mono", -apple-system, BlinkMacSystemFont, 'SF Mono', 'SF Pro Text', 'SF Pro Display', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  color: var(--text-tertiary);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Work Sans", "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 18px;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.25, 0, 0, 1),
    background 0.3s cubic-bezier(0.25, 0, 0, 1),
    border-color 0.3s cubic-bezier(0.25, 0, 0, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0, 0, 1),
    color 0.3s cubic-bezier(0.25, 0, 0, 1);
  transition:
    transform var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
  cursor: pointer;
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.btn--primary {
  background: rgba(37, 99, 235, 0.20);
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 26px 70px rgba(37, 99, 235, 0.14),
    0 18px 50px rgba(0, 0, 0, 0.24);
}

.btn--primary:hover,
.btn--primary[data-hovered] {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.26);
  border-color: rgba(37, 99, 235, 0.42);
}

.btn--primary[data-pressed] {
  transform: translateY(0px);
  background: rgba(37, 99, 235, 0.18);
}

.btn--primary:focus-visible {
  outline: 2px solid 221 83% 53%;
  outline: 2px solid var(--accent, #8B5CF6);
  outline-offset: 2px;
}



.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 50px rgba(0, 0, 0, 0.20);
}

.btn:active {
  transform: translateY(0px);
}

/* Light theme: luxury ink primary, subtle glass secondary */
[data-theme="light"] .btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 18px 48px rgba(15, 23, 42, 0.10);
}

[data-theme="light"] .btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .btn--primary {
  background: rgba(11, 18, 32, 0.96);
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 18, 32, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 26px 70px rgba(37, 99, 235, 0.14),
    0 18px 50px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .btn--primary:hover,
[data-theme="light"] .btn--primary[data-hovered] {
  background: rgba(11, 18, 32, 0.90);
  border-color: rgba(11, 18, 32, 0.90);
}

.btn--large {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.03em;
  letter-spacing: var(--tracking-tight);
  border: none;
  padding: 0;
  background: none;
}

.btn--large:hover {
  background: none;
  color: #2563EB;
  color: var(--accent-blue);
}

.btn--large .arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0, 0, 1);
  transition: transform var(--duration) var(--ease-out);
}

.btn--large:hover .arrow {
  transform: translateX(8px);
}

/* === SELECTION === */
::selection {
  background: #2563EB;
  background: var(--accent-blue);
  color: #020202;
  color: var(--obsidian);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #020202;
  background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
  background: #1A1A1A;
  background: var(--grid-lines);
}

/* Light theme scrollbar */
[data-theme="light"]::-webkit-scrollbar-track {
  background: #0B0B0B;
  background: var(--elevation-01);
}

[data-theme="light"]::-webkit-scrollbar-thumb {
  background: #1A1A1A;
  background: var(--grid-lines);
}

/* === UTILITY === */
.container {
  max-width: 1200px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 64px;
  padding: 0 var(--margin-desktop);
}

.section-label {
  font-family: "IBM Plex Mono", -apple-system, BlinkMacSystemFont, 'SF Mono', 'SF Pro Text', 'SF Pro Display', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --margin-desktop: var(--margin-mobile);
    --section-gap: 100px;
  }

  .mono {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --margin-mobile: 16px;
    --section-gap: 80px;
  }
}

@media (pointer: coarse) {
  .btn,
  .btn--primary {
    min-height: 44px;
  }
}

/* Standalone pages need top padding for fixed navbar and must sit above the fixed background */
.standalone-page {
  padding-top: 80px;
  position: relative;
  z-index: 2;
}
.hover\:bg-accent:hover {
  background-color: hsl(221 83% 53%);
  background-color: hsl(var(--accent));
}
.hover\:bg-destructive\/80:hover {
  background-color: hsl(0 62.8% 30.6% / 0.8);
  background-color: hsl(var(--destructive) / 0.8);
}
.hover\:bg-destructive\/90:hover {
  background-color: hsl(0 62.8% 30.6% / 0.9);
  background-color: hsl(var(--destructive) / 0.9);
}
.hover\:bg-primary\/80:hover {
  background-color: hsl(221 83% 53% / 0.8);
  background-color: hsl(var(--primary) / 0.8);
}
.hover\:bg-primary\/90:hover {
  background-color: hsl(221 83% 53% / 0.9);
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:bg-secondary\/80:hover {
  background-color: hsl(217.2 32.6% 17.5% / 0.8);
  background-color: hsl(var(--secondary) / 0.8);
}
.hover\:text-accent-foreground:hover {
  color: hsl(210 40% 98%);
  color: hsl(var(--accent-foreground));
}
.hover\:underline:hover {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.data-\[state\=active\]\:bg-background[data-state="active"] {
  background-color: hsl(0 0% 1.2%);
  background-color: hsl(var(--background));
}
.data-\[state\=open\]\:bg-accent[data-state="open"] {
  background-color: hsl(221 83% 53%);
  background-color: hsl(var(--accent));
}
.data-\[state\=active\]\:text-foreground[data-state="active"] {
  color: hsl(0 0% 98%);
  color: hsl(var(--foreground));
}
.data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
  color: hsl(215 20.2% 65.1%);
  color: hsl(var(--muted-foreground));
}
.data-\[state\=active\]\:shadow-sm[data-state="active"] {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:justify-end {
    justify-content: flex-end;
  }
  .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }
  .sm\:rounded-lg {
    border-radius: 0.75rem;
    border-radius: var(--radius);
  }
  .sm\:text-left {
    text-align: left;
  }
}
.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg {
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* === PRELOADER: Simple Spiral Effect === */

.preloader {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 8, 0.62);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow: hidden;
  pointer-events: none;
}

.preloader__canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  opacity: 0.9;
}

/* ===== LIGHT THEME OVERRIDES ===== */
[data-theme="light"] .preloader {
  background: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .preloader__canvas {
  filter: invert(1);
  opacity: 0.3;
}

/* Language Selector Styles - Text Labels */
.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-selector__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.language-selector__button:hover {
  opacity: 0.8;
  color: var(--text-secondary);
}

.language-selector__button.active {
  opacity: 1;
  color: var(--text-primary);
}

/* Mobile */
@media (max-width: 768px) {
  .language-selector {
    gap: 6px;
  }
  
  .language-selector__button {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* === NAVIGATION: Scale-like (clean, quiet) === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.72) 0%, rgba(2, 2, 2, 0.56) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Light Theme Navigation - Apple Titanium */
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
}

/* AI21-like home hero: transparent header over dark hero until scroll */
[data-theme="light"] .nav.nav--home:not(.nav--scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__link,
[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__logo-link {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__logo-nebula {
  display: none;
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__link::after {
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__theme-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__toggle:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}

[data-theme="light"] .nav__link {
  color: #475569;
}

[data-theme="light"] .nav__link::after {
  background: rgba(15, 23, 42, 0.3);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--margin-desktop);
  position: relative;
  display: grid;
  grid-template-columns: -webkit-max-content minmax(0, 1fr) -webkit-max-content;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  flex-wrap: nowrap;
  grid-gap: 22px;
  gap: 22px;
}

.nav__left {
  display: flex;
  align-items: center;
  min-width: auto;
  flex: 0 0 auto;
}

.nav__center {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  overflow: visible;
}

.nav__logo-link {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.nav__logo-link:hover {
  opacity: 0.8;
}

.nav__logo-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}

.nav__logo-nebula {
  position: absolute;
  right: -18px;
  top: 50%;
  width: 70px;
  height: 40px;
  transform: translateY(-50%) rotate(-30deg);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.32;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse,
    rgba(var(--accent-blue-rgb), 0.95) 0%,
    rgba(var(--accent-violet-rgb), 0.70) 34%,
    rgba(var(--accent-cyan-rgb), 0.22) 58%,
    rgba(var(--accent-blue-rgb), 0) 76%
  );
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.nav__logo-link:hover .nav__logo-nebula {
  opacity: 0.55;
}

.nav__logo-word {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.015em;
}


.nav__logo-x-wrapper {
  position: relative;
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: -0.25em;
  vertical-align: middle;
}

.nav__logo-x-icon {
  width: 100%;
  height: 100%;
  animation: none;
  display: block;
}

.nav__logo-x-line {
  transform-origin: center;
}

.nav__logo-x-line-1 {
  animation: none;
}

.nav__logo-x-line-2 {
  animation: none;
}

.nav__logo-rest {
  color: var(--text-primary);
  margin-left: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .nav__logo-nebula {
    animation: none;
  }
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  margin-left: 0;
  min-width: 0;
  flex: 0 0 auto;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 20px);
  max-width: 100%;
  overflow: visible;
  flex-wrap: nowrap;
}

@media (max-width: 1100px) {
  .nav__center {
    display: none;
  }
  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) {
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
  }

  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__logo-link,
  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__link {
    color: rgba(15, 23, 42, 0.92);
  }

  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__link::after {
    background: rgba(15, 23, 42, 0.30);
  }

  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__toggle,
  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__theme-toggle {
    border-color: rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(15, 23, 42, 0.92);
  }
}

.nav__cta {
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

/* AI21-like: CTA button visible on hero (light) */
[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__cta.btn--primary {
  background: var(--accent-blue);
  background: color-mix(in srgb, var(--accent-blue) 62%, #0b1220 38%);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__cta.btn--primary:hover,
[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__cta.btn--primary[data-hovered] {
  background: var(--accent-blue);
  background: color-mix(in srgb, var(--accent-blue) 70%, #0b1220 30%);
}

.nav__cta .arrow {
  transition: transform 0.25s var(--ease-out);
}

.nav__cta:hover .arrow {
  transform: translateX(4px);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link--active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-primary);
  opacity: 0.3;
}

.nav__logo-img-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 2px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.nav__logo-img-wrap:hover {
  opacity: 1;
}
.nav__logo-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 28px;
}

/* xTheus nav link — gradient text, editorial feel */
.nav__xtheus-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.25s var(--ease-out);
}

.nav__xtheus-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav__xtheus-link:hover {
  opacity: 0.85;
}

.nav__xtheus-link:hover::after {
  transform: scaleX(1);
}

.nav__xtheus-link--active {
  opacity: 1;
}

.nav__xtheus-link--active::after {
  transform: scaleX(1);
}

[data-theme="light"] .nav__xtheus-link {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .nav__xtheus-link::after {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__xtheus-link {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(200, 210, 255, 0.90) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .nav.nav--home:not(.nav--scrolled) .nav__xtheus-link::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(200, 210, 255, 0.80));
}

/* Hamburger menu xTheus highlight */
.nav__hamburger-link--xtheus {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1320px) {
  .nav__links {
    gap: clamp(10px, 1.2vw, 14px);
  }

  .nav__link {
    font-size: 13px;
  }

  .nav__right {
    gap: 12px;
  }

  .nav__actions {
    gap: 10px;
    margin-left: 12px;
  }

  .nav__logo-img-wrap {
    display: none;
  }

  .nav__xtheus-link {
    display: none;
  }
}

.nav__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.nav__theme-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav__theme-toggle:active {
  transform: scale(0.98);
}

.nav__theme-toggle-track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__theme-toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  color: currentColor;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.nav__theme-toggle-glyph svg {
  width: 12px;
  height: 12px;
}

.nav__theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease;
}

.nav__theme-toggle.is-dark .nav__theme-toggle-thumb {
  transform: translateX(22px);
}

.nav__theme-toggle.is-light .nav__theme-toggle-glyph--sun,
.nav__theme-toggle.is-dark .nav__theme-toggle-glyph--moon {
  opacity: 0.95;
}

[data-theme="light"] .nav__theme-toggle {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .nav__theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav__theme-toggle-track {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav__theme-toggle-thumb {
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
}



.nav__toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}


.nav__toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.02);
}

.nav__toggle:hover::before {
  opacity: 1;
}

.nav__toggle:active {
  transform: scale(0.98);
}

[data-theme="light"] .nav__toggle {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .nav__toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}


.nav__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
  position: relative;
  z-index: 1;
}

.nav__toggle-bar {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: relative;
}

.nav__toggle-bar:nth-child(1) {
  width: 100%;
}

.nav__toggle-bar:nth-child(2) {
  width: 100%;
}

.nav__toggle-bar:nth-child(3) {
  width: 100%;
}

/* Hamburger animation when open - improved */
.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  width: 100%;
}

.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  width: 0;
}

.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 100%;
}

/* Hamburguesa Menu - Mejorado */
.nav__hamburger-menu {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  height: calc(100vh - 62px);
  background: linear-gradient(
    180deg,
    rgba(2, 2, 2, 0.99) 0%,
    rgba(3, 3, 8, 0.98) 50%,
    rgba(2, 2, 2, 0.99) 100%
  );
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav__hamburger-menu {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.64) 0%,
    rgba(248, 250, 252, 0.60) 50%,
    rgba(255, 255, 255, 0.64) 100%
  );
  border-top-color: rgba(0, 0, 0, 0.05);
}

.nav__hamburger-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__hamburger-menu-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem var(--margin-desktop) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__hamburger-link {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.01);
}

[data-theme="light"] .nav__hamburger-link {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.01);
}

.nav__hamburger-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 0 2px 2px 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__hamburger-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
  padding-left: 1.5rem;
}

[data-theme="light"] .nav__hamburger-link:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.nav__hamburger-link:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.nav__hamburger-link--active {
  color: var(--text-primary);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav__hamburger-link--active {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.nav__hamburger-link--active::before {
  transform: translateY(-50%) scaleX(1);
}

.nav__hamburger-link--cta {
  margin-top: 1.5rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-radius: 12px;
  border: none;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__hamburger-link--cta::before {
  display: none;
}

.nav__hamburger-link--cta:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
  padding-left: 2rem;
}

.nav__hamburger-email {
  margin-top: 1rem;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav__hamburger-email a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.nav__hamburger-email a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .nav__inner {
    padding: 10px var(--margin-mobile);
    gap: 10px;
  }

  [data-theme="light"] .nav.nav--home:not(.nav--scrolled) {
    background: rgba(255, 255, 255, 0.90);
    border-bottom-color: rgba(15, 23, 42, 0.10);
  }

  .nav__hamburger-menu-inner {
    padding: 2rem var(--margin-mobile);
  }

  .nav__logo-link {
    font-size: 17px;
  }

  .nav__links {
    display: none;
  }

  .nav__right {
    gap: 10px;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__logo-img-wrap {
    display: none;
  }

  .nav__xtheus-link {
    display: none;
  }

  .language-selector {
    display: none;
  }

  .nav__theme-toggle {
    height: 34px;
    padding: 0 5px;
  }

  .nav__theme-toggle-track {
    width: 44px;
    height: 24px;
  }

  .nav__theme-toggle-thumb {
    width: 18px;
    height: 18px;
  }

  .nav__theme-toggle.is-dark .nav__theme-toggle-thumb {
    transform: translateX(20px);
  }

  .nav__toggle {
    width: 36px;
    height: 36px;
  }

  .nav__toggle-bars {
    width: 16px;
  }
}

.perf-monitor {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147483647;
  width: 190px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.25;
  pointer-events: none;
}

.perf-monitor__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.perf-monitor__label {
  color: rgba(255, 255, 255, 0.65);
}

.perf-monitor__value {
  color: rgba(255, 255, 255, 0.92);
}

.perf-monitor__hint {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .perf-monitor {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
}

/* ============================================
   XSTRYK ADVANCED EFFECTS STYLES
   ============================================ */

/* ============================================
   1. DATA DECODING TEXT
   ============================================ */
.decoding-text {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ============================================
   2. SPOTLIGHT REVEAL
   ============================================ */
.spotlight-container {
  position: relative;
  overflow: hidden;
  --spotlight-x: -1000px;
  --spotlight-y: -1000px;
}

.spotlight-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  mask-image: radial-gradient(
    400px circle at var(--spotlight-x) var(--spotlight-y),
    white 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    400px circle at var(--spotlight-x) var(--spotlight-y),
    white 0%,
    transparent 70%
  );
  transition: opacity 0.3s ease;
}

.spotlight-container:hover .spotlight-grid {
  opacity: 1;
}

.spotlight-svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   5. MAGNETIC BUTTON
   ============================================ */
.magnetic-button {
  position: relative;
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  will-change: transform;
}

/* Only apply button styles when magnetic-button is used standalone (not wrapping another styled element) */
.magnetic-button.magnetic-button--styled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.magnetic-button.magnetic-button--styled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magnetic-button.magnetic-button--styled:hover {
  border-color: var(--accent-blue);
}

.magnetic-button.magnetic-button--styled:hover::before {
  opacity: 1;
}

.magnetic-button__text {
  position: relative;
  z-index: 1;
  will-change: transform;
}

/* ============================================
   6. RUNNING PHOTON CARD
   ============================================ */
.photon-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.photon-card__border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.photon-card__border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: inherit;
}

.photon-card__photon {
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
  border-radius: 2px;
  filter: blur(1px);
  animation: photonTravel 6s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes photonTravel {
  0% {
    top: 0;
    left: -60px;
    transform: rotate(0deg);
  }
  25% {
    top: 0;
    left: calc(100% + 60px);
    transform: rotate(0deg);
  }
  25.001% {
    top: 0;
    left: calc(100%);
    transform: rotate(90deg);
    transform-origin: right center;
  }
  50% {
    top: calc(100%);
    left: calc(100%);
    transform: rotate(90deg);
  }
  50.001% {
    top: calc(100%);
    left: calc(100% + 60px);
    transform: rotate(180deg);
  }
  75% {
    top: calc(100%);
    left: -60px;
    transform: rotate(180deg);
  }
  75.001% {
    top: calc(100%);
    left: 0;
    transform: rotate(270deg);
    transform-origin: left center;
  }
  100% {
    top: 0;
    left: 0;
    transform: rotate(270deg);
  }
}

/* Alternative: Conic gradient border animation */
.photon-card--conic {
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.photon-card--conic::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 340deg,
    #3b82f6 350deg,
    #8b5cf6 355deg,
    #06b6d4 360deg
  );
  background: conic-gradient(
    from var(--photon-angle, 0deg),
    transparent 0deg,
    transparent 340deg,
    #3b82f6 350deg,
    #8b5cf6 355deg,
    #06b6d4 360deg
  );
  border-radius: inherit;
  z-index: -1;
  animation: photonRotate 4s linear infinite;
}

.photon-card--conic::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: var(--obsidian);
  border-radius: inherit;
  z-index: -1;
}

@keyframes photonRotate {
  from { --photon-angle: 0deg; }
  to { --photon-angle: 360deg; }
}

/* CSS Houdini for custom property animation */
@property --photon-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.photon-card__content {
  position: relative;
  z-index: 1;
}

/* ============================================
   8. MICRO-HUD OVERLAY
   ============================================ */
.micro-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.photon-card:hover .micro-hud,
.cases__card:hover .micro-hud {
  opacity: 1;
  transform: translateY(0);
}

.micro-hud__corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(59, 130, 246, 0.5);
  border-style: solid;
  border-width: 0;
}

.micro-hud__corner--tl {
  top: -4px;
  left: -4px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.micro-hud__corner--tr {
  top: -4px;
  right: -4px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.micro-hud__corner--bl {
  bottom: -4px;
  left: -4px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.micro-hud__corner--br {
  bottom: -4px;
  right: -4px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.micro-hud__data {
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.micro-hud__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}

.micro-hud__row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.micro-hud__label {
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  font-size: 8px;
}

.micro-hud__value {
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.micro-hud__value--status {
  color: var(--accent-cyan);
  animation: statusBlink 2s infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   9. ROLLING COUNTER
   ============================================ */
.rolling-counter {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.rolling-counter__prefix,
.rolling-counter__suffix {
  font-size: 0.6em;
  color: var(--text-secondary);
  margin: 0 2px;
}

.rolling-counter__digits {
  display: inline-flex;
  overflow: hidden;
}

.rolling-counter__digit {
  display: inline-block;
  animation: digitRoll 0.3s ease-out;
}

.rolling-counter__digit[data-char="."] {
  width: 0.3em;
}

@keyframes digitRoll {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   4. GLASS REFRACTION
   ============================================ */
.glass-refraction {
  position: relative;
  overflow: hidden;
  --lens-x: 50%;
  --lens-y: 50%;
}

.glass-refraction__lens {
  position: absolute;
  width: 200px;
  height: 200px;
  left: var(--lens-x);
  top: var(--lens-y);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 70%
  );
  backdrop-filter: blur(4px) saturate(1.2);
  -webkit-backdrop-filter: blur(4px) saturate(1.2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(59, 130, 246, 0.1);
}

.glass-refraction:hover .glass-refraction__lens {
  opacity: 1;
}

.glass-refraction__content {
  position: relative;
  z-index: 1;
}

/* ============================================
   SMOOTH SCROLL (Lenis Integration)
   ============================================ */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ============================================
   PAGE MORPHING TRANSITIONS
   ============================================ */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--obsidian);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.page-transition--active {
  animation: pageMorph 0.8s ease-in-out;
}

@keyframes pageMorph {
  0% { 
    opacity: 0;
    -webkit-clip-path: circle(0% at 50% 50%);
            clip-path: circle(0% at 50% 50%);
  }
  50% { 
    opacity: 1;
    -webkit-clip-path: circle(100% at 50% 50%);
            clip-path: circle(100% at 50% 50%);
  }
  100% { 
    opacity: 0;
    -webkit-clip-path: circle(100% at 50% 50%);
            clip-path: circle(100% at 50% 50%);
  }
}

/* ============================================
   SCROLLYTELLING
   ============================================ */
.scrolly-container {
  position: relative;
  min-height: 300vh;
}

.scrolly-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolly-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}

.scrolly-step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--margin-desktop);
}

/* ============================================
   GLOBAL EFFECTS ENHANCEMENTS
   ============================================ */

/* Smooth animations for all elements */
* {
  scroll-behavior: smooth;
}

/* Performance optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  perspective: 1000px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .decoding-text,
  .photon-card__photon,
  .rolling-counter__digit,
  .page-transition {
    animation: none !important;
  }
  
  .magnetic-button {
    transform: none !important;
  }
}

/* ============================================
   XSTRYK ULTRA ADVANCED EFFECTS - WORLD CLASS
   ============================================ */

/* ============================================
   1. NEURAL NETWORK BACKGROUND
   ============================================ */
.neural-network-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

/* ============================================
   2. MORPHING BLOB
   ============================================ */
.morphing-blob {
  position: fixed;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  opacity: 0.12;
  mix-blend-mode: normal;
}

.blob-circle {
  transform-origin: center;
}

.blob-circle--1 {
  animation: blobMorph1 8s ease-in-out infinite;
}

.blob-circle--2 {
  animation: blobMorph2 10s ease-in-out infinite;
}

.blob-circle--3 {
  animation: blobMorph3 12s ease-in-out infinite;
}

@keyframes blobMorph1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.1); }
  50% { transform: translate(-20px, 30px) scale(0.9); }
  75% { transform: translate(20px, 20px) scale(1.05); }
}

@keyframes blobMorph2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 20px) scale(1.15); }
  66% { transform: translate(30px, -30px) scale(0.85); }
}

@keyframes blobMorph3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, 25px) scale(1.2); }
}

/* ============================================
   3. GLITCH TEXT
   ============================================ */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: none;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 2px;
  text-shadow: none;
  clip: rect(24px, 550px, 90px, 0);
  animation: none;
}

.glitch-text::after {
  left: -2px;
  text-shadow: none;
  clip: rect(85px, 550px, 140px, 0);
  animation: none;
}

.glitch-text--subtle::before,
.glitch-text--subtle::after {
  opacity: 0.5;
}

.glitch-text--intense::before,
.glitch-text--intense::after {
  animation-duration: 0.5s;
}

@keyframes glitch-anim {
  0% { clip: rect(64px, 9999px, 68px, 0); transform: skew(0.5deg); }
  5% { clip: rect(22px, 9999px, 109px, 0); transform: skew(0.3deg); }
  10% { clip: rect(96px, 9999px, 9px, 0); transform: skew(0.8deg); }
  15% { clip: rect(47px, 9999px, 87px, 0); transform: skew(0.2deg); }
  20% { clip: rect(15px, 9999px, 55px, 0); transform: skew(0.6deg); }
  25% { clip: rect(72px, 9999px, 34px, 0); transform: skew(0.1deg); }
  30% { clip: rect(89px, 9999px, 12px, 0); transform: skew(0.4deg); }
  35% { clip: rect(38px, 9999px, 91px, 0); transform: skew(0.7deg); }
  40% { clip: rect(5px, 9999px, 76px, 0); transform: skew(0.3deg); }
  45% { clip: rect(51px, 9999px, 29px, 0); transform: skew(0.5deg); }
  50% { clip: rect(83px, 9999px, 44px, 0); transform: skew(0.2deg); }
  55% { clip: rect(17px, 9999px, 99px, 0); transform: skew(0.6deg); }
  60% { clip: rect(69px, 9999px, 21px, 0); transform: skew(0.4deg); }
  65% { clip: rect(32px, 9999px, 67px, 0); transform: skew(0.8deg); }
  70% { clip: rect(94px, 9999px, 3px, 0); transform: skew(0.1deg); }
  75% { clip: rect(11px, 9999px, 82px, 0); transform: skew(0.5deg); }
  80% { clip: rect(56px, 9999px, 38px, 0); transform: skew(0.3deg); }
  85% { clip: rect(78px, 9999px, 59px, 0); transform: skew(0.7deg); }
  90% { clip: rect(24px, 9999px, 95px, 0); transform: skew(0.2deg); }
  95% { clip: rect(45px, 9999px, 14px, 0); transform: skew(0.6deg); }
  100% { clip: rect(88px, 9999px, 48px, 0); transform: skew(0.4deg); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(44px, 9999px, 88px, 0); transform: skew(0.3deg); }
  5% { clip: rect(12px, 9999px, 59px, 0); transform: skew(0.7deg); }
  10% { clip: rect(76px, 9999px, 24px, 0); transform: skew(0.2deg); }
  15% { clip: rect(33px, 9999px, 91px, 0); transform: skew(0.5deg); }
  20% { clip: rect(98px, 9999px, 7px, 0); transform: skew(0.4deg); }
  25% { clip: rect(21px, 9999px, 65px, 0); transform: skew(0.8deg); }
  30% { clip: rect(57px, 9999px, 42px, 0); transform: skew(0.1deg); }
  35% { clip: rect(84px, 9999px, 18px, 0); transform: skew(0.6deg); }
  40% { clip: rect(9px, 9999px, 73px, 0); transform: skew(0.3deg); }
  45% { clip: rect(66px, 9999px, 31px, 0); transform: skew(0.5deg); }
  50% { clip: rect(28px, 9999px, 86px, 0); transform: skew(0.2deg); }
  55% { clip: rect(93px, 9999px, 15px, 0); transform: skew(0.7deg); }
  60% { clip: rect(41px, 9999px, 78px, 0); transform: skew(0.4deg); }
  65% { clip: rect(19px, 9999px, 52px, 0); transform: skew(0.8deg); }
  70% { clip: rect(72px, 9999px, 36px, 0); transform: skew(0.1deg); }
  75% { clip: rect(54px, 9999px, 94px, 0); transform: skew(0.5deg); }
  80% { clip: rect(6px, 9999px, 61px, 0); transform: skew(0.3deg); }
  85% { clip: rect(87px, 9999px, 23px, 0); transform: skew(0.6deg); }
  90% { clip: rect(35px, 9999px, 79px, 0); transform: skew(0.2deg); }
  95% { clip: rect(68px, 9999px, 47px, 0); transform: skew(0.7deg); }
  100% { clip: rect(13px, 9999px, 96px, 0); transform: skew(0.4deg); }
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(1deg); }
  22% { transform: skew(-1deg); }
  23% { transform: skew(0deg); }
  100% { transform: skew(0deg); }
}

/* ============================================
   4. PARALLAX FLOAT
   ============================================ */
.parallax-float {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   5. FLOATING PARTICLES
   ============================================ */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-particle {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: none;
  will-change: transform, opacity;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(50px, -100px) scale(1.5);
    opacity: 0.6;
  }
  50% {
    transform: translate(-30px, -200px) scale(1);
    opacity: 0.4;
  }
  75% {
    transform: translate(80px, -150px) scale(1.2);
    opacity: 0.5;
  }
}

/* ============================================
   6. ORBITING SYSTEM
   ============================================ */
.orbiting-system {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  animation: orbitSpin linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .blob-circle--1,
  .blob-circle--2,
  .blob-circle--3,
  .orbit,
  .floating-particle,
  .glitch-text,
  .glitch-text::before,
  .glitch-text::after {
    animation: none !important;
    transition: none !important;
  }
}

.orbit--1 {
  width: 100px;
  height: 100px;
  animation-duration: 8s;
}

.orbit--2 {
  width: 180px;
  height: 180px;
  animation-duration: 15s;
  animation-direction: reverse;
}

.orbit--3 {
  width: 260px;
  height: 260px;
  animation-duration: 25s;
}

.orbiting-element {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.orbiting-element--1 {
  background: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.orbiting-element--2 {
  background: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.orbiting-element--3 {
  background: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
}

.orbiting-center {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  position: relative;
}

.center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: centerPulse 2s ease-in-out infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes centerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.3; }
}

/* ============================================
   7. TYPING TERMINAL
   ============================================ */
.typing-terminal {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot--red { background: #ff5f56; }
.terminal-dot--yellow { background: var(--accent-violet); }
.terminal-dot--green { background: var(--accent-cyan); }

.terminal-title {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px;
  min-height: 200px;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.terminal-prompt {
  color: #3b82f6;
  font-weight: 600;
}

.terminal-icon {
  width: 16px;
  text-align: center;
}

.terminal-line--success .terminal-icon { color: var(--accent-cyan); }
.terminal-line--error .terminal-icon { color: #ef4444; }
.terminal-line--info .terminal-icon { color: #8b5cf6; }

.terminal-text {
  color: var(--text-secondary);
  font-size: 13px;
}

.terminal-line--input .terminal-text {
  color: var(--text-primary);
}

.terminal-cursor {
  color: #3b82f6;
  animation: terminalBlink 1s infinite;
  margin-left: 2px;
}

@keyframes terminalBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   8. ANIMATED STATS - Refined
   ============================================ */
.animated-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 32px;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 200;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  letter-spacing: -0.03em;
}

.stat-prefix,
.stat-suffix {
  font-size: 18px;
  font-weight: 300;
  color: var(--accent-blue);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stat-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
  transition: width 2s cubic-bezier(0.25, 0, 0, 1);
}

/* ============================================
   9. REVEAL ON SCROLL
   ============================================ */
.reveal-on-scroll {
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.25, 0, 0, 1);
}

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

.reveal-on-scroll--fade-up {
  transform: translateY(0);
}
.reveal-on-scroll--fade-up.revealed {
  transform: translateY(0);
}

.reveal-on-scroll--fade-down {
  transform: translateY(0);
}
.reveal-on-scroll--fade-down.revealed {
  transform: translateY(0);
}

.reveal-on-scroll--fade-left {
  transform: translateX(0);
}
.reveal-on-scroll--fade-left.revealed {
  transform: translateX(0);
}

.reveal-on-scroll--fade-right {
  transform: translateX(0);
}
.reveal-on-scroll--fade-right.revealed {
  transform: translateX(0);
}

.reveal-on-scroll--scale {
  transform: scale(1);
}
.reveal-on-scroll--scale.revealed {
  transform: scale(1);
}

.reveal-on-scroll--blur {
  filter: blur(0);
}
.reveal-on-scroll--blur.revealed {
  filter: blur(0);
}

.reveal-on-scroll--rotate {
  transform: rotate(0) translateY(0);
}
.reveal-on-scroll--rotate.revealed {
  transform: rotate(0) translateY(0);
}

/* ============================================
   10. SCANNING LINE
   ============================================ */
.scanning-line {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
}

.scanning-line--horizontal {
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}

.scanning-line--vertical {
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
}

.scanning-line__beam {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 20%,
    rgba(59, 130, 246, 0.5) 50%,
    rgba(59, 130, 246, 0.1) 80%,
    transparent 100%
  );
}

.scanning-line--horizontal .scanning-line__beam {
  width: 100%;
  height: 2px;
  animation: scanHorizontal 3s linear infinite;
}

.scanning-line--vertical .scanning-line__beam {
  width: 2px;
  height: 100%;
  animation: scanVertical 4s linear infinite;
}

@keyframes scanHorizontal {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(5000%); opacity: 0; }
}

@keyframes scanVertical {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(5000%); opacity: 0; }
}

/* ============================================
   11. MATRIX RAIN
   ============================================ */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* ============================================
   12. GRADIENT MESH - Subtle Style
   ============================================ */
.gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.gradient-mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: meshFloat 25s ease-in-out infinite;
}

.gradient-mesh__blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.gradient-mesh__blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  top: 30%;
  right: -150px;
  animation-delay: -5s;
}

.gradient-mesh__blob--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  bottom: -100px;
  left: 20%;
  animation-delay: -10s;
}

.gradient-mesh__blob--4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  bottom: 20%;
  right: 20%;
  animation-delay: -15s;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.98); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   13. PERSPECTIVE CARD
   ============================================ */
.perspective-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.perspective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.perspective-card:hover::before {
  opacity: 1;
}

/* ============================================
   14. HOLOGRAPHIC BADGE - Refined
   ============================================ */
.holographic-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.holographic-badge__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.holographic-badge__shine {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: holographicShine 4s ease-in-out infinite;
}

@keyframes holographicShine {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* ============================================
   15. DNA HELIX
   ============================================ */
.dna-helix {
  display: block;
}

/* ============================================
   16. TECH SPECS DISPLAY
   ============================================ */
.tech-specs {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.tech-specs__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.tech-specs__icon {
  color: #3b82f6;
  font-size: 10px;
}

.tech-specs__title {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}

.tech-specs__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-specs__item {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.tech-specs__key {
  color: var(--text-tertiary);
  min-width: 120px;
}

.tech-specs__separator {
  color: var(--text-tertiary);
  margin: 0 8px;
}

.tech-specs__value {
  color: var(--text-primary);
}

.tech-specs__footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-specs__status {
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   17. PROGRESS RING
   ============================================ */
.progress-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
}

.progress-ring__progress {
  fill: none;
  stroke: #3b82f6;
  stroke-linecap: round;
  stroke-width: 6;
  transition: 
    stroke-dashoffset 1.5s cubic-bezier(0.25, 0, 0, 1),
    stroke 0.3s ease,
    filter 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

.progress-ring:hover .progress-ring__progress {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.progress-ring__content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-ring__value {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.progress-ring:hover .progress-ring__value {
  transform: scale(1.05);
}

.progress-ring__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
  max-width: 100px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.progress-ring:hover .progress-ring__label {
  color: var(--text-primary);
}

/* ============================================
   18. WAVEFORM VISUALIZER
   ============================================ */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 60px;
}

.waveform__bar {
  width: 4px;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 50%, #3b82f6 100%);
  border-radius: 2px;
  animation: waveformPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
  transition: box-shadow 0.3s ease;
}

.waveform:hover .waveform__bar {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes waveformPulse {
  0%, 100% { height: 20%; }
  50% { height: 60%; height: var(--bar-height, 60%); }
}

/* ============================================
   19. ANIMATED CODE BLOCK
   ============================================ */
.animated-code-block {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-language {
  font-size: 10px;
  color: #3b82f6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-filename {
  font-size: 11px;
  color: var(--text-tertiary);
}

.code-content {
  padding: 20px;
  padding-left: 60px;
  margin: 0;
  overflow-x: auto;
}

.code-content code {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.code-cursor {
  color: #3b82f6;
  animation: codeCursorBlink 1s infinite;
}

@keyframes codeCursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.code-line-numbers {
  position: absolute;
  top: 56px;
  left: 0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.code-line-numbers span {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-tertiary);
  text-align: right;
  min-width: 20px;
}

/* ============================================
   20. ROTATING CUBE
   ============================================ */
.rotating-cube {
  perspective: 1000px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 15s linear infinite;
}

.cube__face {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.cube__face--front { transform: translateZ(calc(var(--size) / 2)); }
.cube__face--back { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.cube__face--right { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.cube__face--left { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.cube__face--top { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }

@keyframes cubeRotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ============================================
   21. LIQUID BUTTON
   ============================================ */
.liquid-button {
  position: relative;
  padding: 16px 40px;
  background: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  overflow: hidden;
  transition: color 0.4s ease;
  cursor: pointer;
}

.liquid-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.liquid-button:hover {
  color: var(--obsidian);
}

.liquid-button:hover::before {
  width: 300%;
  height: 300%;
}

.liquid-button span {
  position: relative;
  z-index: 1;
}

/* ============================================
   22. NEON GLOW TEXT
   ============================================ */
.neon-text {
  color: #fff;
  text-shadow:
    0 0 5px #3b82f6,
    0 0 10px #3b82f6,
    0 0 20px #3b82f6,
    0 0 40px #8b5cf6,
    0 0 80px #8b5cf6;
  animation: neonFlicker 2s ease-in-out infinite;
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px #3b82f6,
      0 0 10px #3b82f6,
      0 0 20px #3b82f6,
      0 0 40px #8b5cf6,
      0 0 80px #8b5cf6;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* ============================================
   23. AURORA BACKGROUND
   ============================================ */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 25%,
    rgba(139, 92, 246, 0.15) 50%,
    rgba(6, 182, 212, 0.1) 75%,
    transparent 100%
  );
  animation: auroraWave 15s ease-in-out infinite;
}

.aurora-bg::after {
  animation-delay: -7.5s;
  animation-direction: reverse;
}

@keyframes auroraWave {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

/* ============================================
   24. INFINITE SCROLL MARQUEE
   ============================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee__content {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee__content span {
  padding: 0 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   25. SPLIT TEXT ANIMATION
   ============================================ */
.split-text {
  overflow: hidden;
}

.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: splitReveal 0.6s forwards;
}

@keyframes splitReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   26. NOISE OVERLAY
   ============================================ */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27noise%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23noise%29%27/%3E%3C/svg%3E");
}

/* ============================================
   27. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  width: 0%;
  transition: width 0.12s ease-out;
  transform: translateZ(0);
  will-change: width;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar {
    transition: none;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .animated-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .stat-value {
    font-size: 36px;
  }
  
  .typing-terminal {
    font-size: 12px;
  }
  
  .orbiting-system {
    transform: scale(0.7);
  }
  
  .gradient-mesh__blob {
    filter: blur(60px);
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .glitch-text::before,
  .glitch-text::after,
  .blob-circle,
  .floating-particle,
  .orbit,
  .gradient-mesh__blob,
  .waveform__bar,
  .cube,
  .holographic-badge__shine,
  .aurora-bg::before,
  .aurora-bg::after,
  .neon-text {
    animation: none !important;
  }
}

/* ============================================
   28. PARTICLE FIELD
   ============================================ */
.particle-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle-field__dot {
  position: absolute;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.2);
  }
  50% {
    transform: translate(-20px, 40px) scale(0.8);
  }
  75% {
    transform: translate(40px, 20px) scale(1.1);
  }
}

/* ============================================
   29. GLOWING BORDER
   ============================================ */
.glowing-border {
  position: relative;
  border-radius: 8px;
}

.glowing-border__content {
  position: relative;
  z-index: 1;
}

.glowing-border__glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 300% 100%;
  border-radius: 10px;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
  filter: blur(4px);
}

.glowing-border--active .glowing-border__glow {
  opacity: 0.6;
  animation: glowingBorderMove 3s linear infinite;
}

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

/* ============================================
   30. SCAN LINE
   ============================================ */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.scan-line__beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.3), 
    rgba(139, 92, 246, 0.5), 
    rgba(59, 130, 246, 0.3), 
    transparent
  );
  animation: scanLineMove 8s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes scanLineMove {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ============================================
   31. LIVE METRIC
   ============================================ */
.live-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.live-metric__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.live-metric__number {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.live-metric__prefix,
.live-metric__suffix {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--accent-blue);
}

.live-metric__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-metric__bar {
  width: 60px;
  height: 2px;
  background: var(--grid-lines);
  border-radius: 1px;
  overflow: hidden;
}

.live-metric__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  animation: liveMetricFill 2s ease-out forwards;
}

@keyframes liveMetricFill {
  to { width: 100%; }
}

/* ============================================
   32. PULSING DOT
   ============================================ */
.pulsing-dot {
  position: relative;
  width: 8px;
  width: var(--dot-size, 8px);
  height: 8px;
  height: var(--dot-size, 8px);
}

.pulsing-dot__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  width: var(--dot-size, 8px);
  height: 8px;
  height: var(--dot-size, 8px);
  background: var(--accent-cyan);
  background: var(--dot-color, var(--accent-cyan));
  border-radius: 50%;
  z-index: 2;
}

.pulsing-dot__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(8px * 2);
  width: calc(var(--dot-size, 8px) * 2);
  height: calc(8px * 2);
  height: calc(var(--dot-size, 8px) * 2);
  border: 1px solid var(--accent-cyan);
  border: 1px solid var(--dot-color, var(--accent-cyan));
  border-radius: 50%;
  opacity: 0;
  animation: pulsingDotRing 2s ease-out infinite;
}

@keyframes pulsingDotRing {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* ============================================
   33. DATA FLOW LINE
   ============================================ */
.data-flow-line {
  position: absolute;
  overflow: hidden;
}

.data-flow-line--horizontal {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.data-flow-line--vertical {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.data-flow-line__track {
  position: absolute;
  background: var(--grid-lines);
}

.data-flow-line--horizontal .data-flow-line__track {
  width: 100%;
  height: 1px;
}

.data-flow-line--vertical .data-flow-line__track {
  width: 1px;
  height: 100%;
}

.data-flow-line__pulse {
  position: absolute;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.data-flow-line--horizontal .data-flow-line__pulse {
  width: 100px;
  height: 1px;
  animation: dataFlowHorizontal 4s linear infinite;
}

.data-flow-line--vertical .data-flow-line__pulse {
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, #3b82f6, transparent);
  animation: dataFlowVertical 4s linear infinite;
}

.data-flow-line__pulse--delayed {
  animation-delay: 2s;
}

@keyframes dataFlowHorizontal {
  0% { left: -100px; }
  100% { left: 100%; }
}

@keyframes dataFlowVertical {
  0% { top: -100px; }
  100% { top: 100%; }
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] .neural-network-bg {
  opacity: 0.35;
}

[data-theme="light"] .morphing-blob {
  opacity: 0.22;
  mix-blend-mode: multiply;
}

[data-theme="light"] .gradient-mesh__blob {
  opacity: 0.08;
}

[data-theme="light"] .typing-terminal {
  background: var(--surface-secondary);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

[data-theme="light"] .terminal-header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-specs {
  background: var(--surface-secondary);
  border-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

[data-theme="light"] .tech-specs__header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-specs__footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .holographic-badge {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .animated-code-block {
  background: var(--surface-secondary);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

[data-theme="light"] .code-header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .code-line-numbers {
  background: rgba(0, 0, 0, 0.02);
  border-right-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .progress-ring__bg {
  stroke: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-bar {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .noise-overlay {
  opacity: 0.015;
}

[data-theme="light"] .floating-particle {
  opacity: 0.4;
}

[data-theme="light"] .orbit {
  border-color: rgba(37, 99, 235, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   COHERE HERO — AI21-like polish
   - Two-column above-the-fold (copy left, product right)
   - Global background shows through (no solid hero wallpaper)
   - Subtle mesh + ribbon + grain + grid
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --chero-ease: cubic-bezier(.16, 1, .3, 1);
  --chero-ease-out: cubic-bezier(.33, 1, .68, 1);

  /* Dark defaults */
  --chero-ink: rgba(255, 255, 255, 0.95);
  --chero-muted: rgba(255, 255, 255, 0.42);
  --chero-faint: rgba(255, 255, 255, 0.28);
  --chero-border: var(--glass-border, rgba(255, 255, 255, 0.08));
  --chero-surface: rgba(10, 12, 18, 0.62);
  --chero-surface-2: rgba(8, 12, 22, 0.55);
  --chero-vignette: rgba(6, 10, 20, 0.92);
  --chero-grid: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] {
  --chero-ink: rgba(15, 23, 42, 0.96);
  --chero-muted: rgba(15, 23, 42, 0.70);
  --chero-faint: rgba(15, 23, 42, 0.52);
  --chero-border: var(--glass-border, rgba(15, 23, 42, 0.10));
  --chero-surface: var(--surface-glass-strong, rgba(255, 255, 255, 0.62));
  --chero-surface-2: var(--surface-glass-soft, rgba(255, 255, 255, 0.52));
  --chero-vignette: rgba(255, 255, 255, 0.72);
  --chero-grid: rgba(15, 23, 42, 0.04);
}

/* AI21 hero on light: dark media band + huge centered headline */
[data-theme="light"] .chero {
  --chero-ink: rgba(11, 18, 32, 0.96);
  --chero-muted: rgba(15, 23, 42, 0.78);
  --chero-faint: rgba(15, 23, 42, 0.62);
  --chero-border: rgba(15, 23, 42, 0.14);
  --chero-vignette: rgba(0, 0, 0, 0.38);
  --chero-grid: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .chero__viewport {
  background:
    radial-gradient(
      1180px 820px at 12% 14%,
      rgba(191, 155, 93, 0.16) 0%,
      rgba(191, 155, 93, 0.05) 38%,
      transparent 74%
    ),
    radial-gradient(
      1080px 760px at 24% 76%,
      rgba(86, 104, 133, 0.10) 0%,
      rgba(86, 104, 133, 0.04) 34%,
      transparent 72%
    ),
    radial-gradient(
      1040px 760px at 88% 20%,
      rgba(123, 140, 166, 0.12) 0%,
      rgba(123, 140, 166, 0.05) 32%,
      transparent 70%
    ),
    radial-gradient(
      980px 680px at 74% 84%,
      rgba(171, 180, 193, 0.10) 0%,
      rgba(171, 180, 193, 0.03) 34%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(247, 245, 239, 0.98) 0%,
      rgba(241, 239, 233, 0.93) 50%,
      rgba(234, 233, 229, 0.86) 74%,
      rgba(228, 228, 225, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      var(--elevation-01) 0%,
      hsl(var(--background)) 100%
    );
  padding: clamp(160px, 16vh, 240px) 0 clamp(120px, 14vh, 220px);
}

.chero__viewport {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: layout style paint;
  background:
    radial-gradient(
      1100px 760px at 10% 22%,
      rgba(191, 155, 93, 0.14) 0%,
      transparent 70%
    ),
    radial-gradient(
      980px 680px at 86% 20%,
      rgba(88, 111, 145, 0.12) 0%,
      transparent 72%
    ),
    radial-gradient(
      980px 700px at 68% 84%,
      rgba(120, 98, 70, 0.10) 0%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.98) 0%,
      rgba(13, 14, 17, 0.92) 55%,
      rgba(17, 18, 22, 0.84) 100%
    );
  padding: clamp(160px, 16vh, 240px) 0 clamp(120px, 14vh, 220px);
}

[data-theme="light"] .chero__viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 48% at 50% 52%,
      rgba(120, 128, 143, 0.14) 0%,
      rgba(120, 128, 143, 0.06) 36%,
      transparent 70%
    );
  opacity: 1;
  z-index: 0;
}

[data-theme="light"] .chero__viewport::after {
  opacity: 0.68;
}

.chero__viewport::after {
  content: '';
  position: absolute;
  inset: -14%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(
      from 140deg at 50% 50%,
      rgba(191, 155, 93, 0.18) 0deg,
      rgba(112, 121, 136, 0.14) 90deg,
      rgba(82, 98, 122, 0.14) 190deg,
      rgba(158, 163, 171, 0.12) 285deg,
      rgba(191, 155, 93, 0.18) 360deg
    );
  filter: blur(30px) saturate(1.15);
  opacity: 0.50;
  animation: _cheroAuroraDrift 22s ease-in-out infinite alternate;
  contain: strict;
}

@keyframes _cheroAuroraDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2.5%, 1.5%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-1.5%, 2%, 0) scale(1.02);
  }
}

[data-theme="light"] .chero__grid-overlay {
  display: block;
  opacity: 0.42;
}

[data-theme="light"] .chero__grain {
  display: block;
  opacity: 0.10;
  mix-blend-mode: normal;
}

[data-theme="light"] .chero__layout {
  grid-template-columns: minmax(0, 1fr) minmax(272px, 357px);
  justify-items: stretch;
}

[data-theme="light"] .chero__copy {
  text-align: left;
  max-width: 700px;
}

[data-theme="light"] .chero__headline {
  font-size: clamp(39.1px, 5.64vw, 96.6px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.05;
  max-width: min(16ch, 96.2rem);
  margin-inline: 0;
}

[data-theme="light"] .chero__headline-grad {
  background: none;
  -webkit-text-fill-color: initial;
  color: rgba(255, 255, 255, 0.95);
  color: var(--chero-ink);
}

[data-theme="light"] .chero__subtitle {
  margin-inline: 0;
  font-size: clamp(18.4px, 1.44vw, 20.7px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  color: var(--chero-muted);
}

[data-theme="light"] .chero__actions {
  justify-content: flex-start;
}

/* Light theme primary CTA - handled above */

[data-theme="light"] .chero__cta-secondary {
  color: rgba(11, 18, 32, 0.78);
}

[data-theme="light"] .chero__cta-secondary:hover {
  color: rgba(11, 18, 32, 0.98);
}

/* ══════════ SECTION ══════════ */
.chero {
  position: relative;
  z-index: 2;
  overflow: clip;
  background: transparent;
}

/* World-map overlay: animated horizontal rectangles masked into a world map */
.chero__world-stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
  transform: none;
  mix-blend-mode: normal;
  contain: paint;
  --chero-world-pearl: rgba(255, 255, 255, 0.98);
  color: var(--chero-world-pearl);
}

[data-theme="light"] .chero__world-stripes {
  --chero-world-pearl: rgba(255, 255, 255, 0.96);
}

.chero__world-stripes::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1380px, 96vw);
  aspect-ratio: 12 / 7;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(ellipse 54% 42% at 50% 50%, currentColor 0%, transparent 74%);
  opacity: 0.18;
}

.chero__world-stripes::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 46% 24% at 50% 30%,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.06) 36%,
      transparent 72%
    );
  opacity: 0.08;
}


.chero__world-stripes-svg {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1400px, 98vw);
  height: auto;
  transform: translate(-50%, -50%);
  filter: saturate(1.1) brightness(1.12);
  opacity: 1;
  color: inherit;
}

@keyframes _cheroMapPulse {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 0.92; }
}

/* Single-color “plomo claro” map (use existing token; no new hard-coded colors). */
.chero__world-stripes-svg .ws-layer--sky,
.chero__world-stripes-svg .ws-layer--violet,
.chero__world-stripes-svg .ws-layer--white {
  fill: currentColor;
}

[data-theme="light"] .chero__world-stripes-svg {
  filter:
    saturate(1.15)
    brightness(1.18);
  color: inherit;
}

[data-theme="light"] .chero__world-stripes {
  mask-image: radial-gradient(ellipse 66% 48% at 50% 50%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 66% 48% at 50% 50%, black 50%, transparent 90%);
}

@media (prefers-reduced-motion: reduce) {
  .chero__world-stripes-svg animate,
  .chero__world-stripes-svg animateTransform {
    display: none;
  }
  [data-theme="light"] .chero__viewport::after {
    animation: none;
  }
  .chero__world-stripes {
    animation: none;
  }
}

.chero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-image:
    linear-gradient(var(--chero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--chero-grid) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, black 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, black 18%, transparent 72%);
  opacity: 0.55;
}

.chero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.8%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27256%27 height=%27256%27 filter=%27url%28%23n%29%27 opacity=%27.05%27/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
}

[data-theme="light"] .chero__grain {
  display: block;
  opacity: 0.10;
  mix-blend-mode: normal;
}

.chero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 40%, transparent 38%, rgba(6, 10, 20, 0.92) 100%),
    radial-gradient(ellipse 92% 85% at 50% 50%, transparent 40%, rgba(6, 10, 20, 0.92) 100%);
  background:
    radial-gradient(ellipse 65% 55% at 50% 40%, transparent 38%, var(--chero-vignette) 100%),
    radial-gradient(ellipse 92% 85% at 50% 50%, transparent 40%, var(--chero-vignette) 100%);
  z-index: 1;
  opacity: 0.70;
}

[data-theme="light"] .chero__vignette {
  display: block;
  opacity: 0.42;
}

.chero__cursor-glow {
  position: fixed;
  left: 50%;
  top: 28%;
  width: 860px;
  height: 860px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(100, 140, 255, 0.030) 0%,
    rgba(100, 140, 255, 0.010) 45%,
    transparent 68%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  filter: blur(18px);
  will-change: left, top;
  contain: layout style;
  opacity: 0;
  animation: _cheroGlowIn 2.6s ease forwards 0.9s;
}

/* Light theme: avoid large fixed blurs that can rasterize into visible blocks. */
[data-theme="light"] .chero__cursor-glow {
  display: none;
}

@keyframes _cheroGlowIn {
  to { opacity: 1; }
}

/* Mesh orbs */
.chero__mesh {
  position: absolute;
  inset: -50%;
  z-index: 0;
}

/* Light theme: rely on the global background.
   The large-blur mesh/ribbon can rasterize into visible rectangles
   on some browsers/GPUs (especially at huge blur radii). */
[data-theme="light"] .chero__mesh,
[data-theme="light"] .chero__ribbon {
  display: none;
}

.chero__mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  will-change: transform;
  opacity: 0;
  transition: opacity 2.2s ease 0.15s;
  contain: strict;
}

.chero--loaded .chero__mesh-orb { opacity: 1; }

.chero__mesh-orb--blue {
  width: 900px;
  height: 650px;
  top: 2%;
  left: 0;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07), transparent 58%);
  animation: _mesh1 36s ease-in-out infinite;
}

.chero__mesh-orb--purple {
  width: 760px;
  height: 760px;
  top: 22%;
  right: -5%;
  background: radial-gradient(ellipse, rgba(203, 213, 225, 0.07), transparent 55%);
  animation: _mesh2 42s ease-in-out infinite 6s;
}

.chero__mesh-orb--teal {
  display: none;
}

.chero__mesh-orb--indigo {
  display: none;
}

@keyframes _mesh1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(3%, 2%) scale(1.04); }
  66%      { transform: translate(-2%, -1.5%) scale(0.98); }
}

@keyframes _mesh2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-3%, 1.5%) scale(1.03); }
}

@keyframes _mesh3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(1.5%, -2%) scale(1.05); }
  66%      { transform: translate(-1%, 1.5%) scale(0.97); }
}

/* Signature ribbon */
.chero__ribbon {
  position: absolute;
  inset: -20% -20% -10% -20%;
  background:
    conic-gradient(
      from 215deg at 55% 45%,
      rgba(255, 255, 255, 0.00) 0deg,
      rgba(226, 232, 240, 0.10) 32deg,
      rgba(203, 213, 225, 0.14) 78deg,
      rgba(226, 232, 240, 0.08) 128deg,
      rgba(203, 213, 225, 0.06) 172deg,
      rgba(226, 232, 240, 0.05) 214deg,
      rgba(255, 255, 255, 0.00) 360deg
    );
  filter: blur(22px);
  opacity: 0;
  transform: rotate(-10deg) translate3d(0, 0, 0);
  contain: strict;
  mask-image: radial-gradient(ellipse 55% 40% at 55% 45%, black 25%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 55% 40% at 55% 45%, black 25%, transparent 65%);
  transition: opacity 1.8s ease 0.35s;
  animation: _ribbonFloat 26s ease-in-out infinite;
}

.chero--loaded .chero__ribbon { opacity: 1; }

@keyframes _ribbonFloat {
  0%, 100% { transform: rotate(-10deg) translate3d(0, 0, 0) scale(1); }
  50%      { transform: rotate(-6deg) translate3d(2%, -1%, 0) scale(1.03); }
}

/* ══════════ LAYOUT ══════════ */
.chero__layout {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  max-width: var(--container-max, 1200px);
  padding-inline: 64px;
  padding-inline: var(--margin-desktop, 64px);
  margin-inline: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(272px, 357px);
  justify-items: stretch;
  grid-gap: clamp(18px, 3.2vw, 44px);
  gap: clamp(18px, 3.2vw, 44px);
  align-items: center;
}

.chero__copy {
  position: relative;
  text-align: left;
  max-width: 700px;
  padding: 0;
}

.chero__copy::before {
  display: none;
}

[data-theme="light"] .chero__copy::before {
  display: none;
}

.chero__visual {
  position: relative;
  display: none;
}

/* Pretitle */
.chero__pretitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  background: rgba(10, 12, 18, 0.55);
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: 12.08px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  justify-content: center;
  margin: 0 auto 18px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(.16, 1, .3, 1) 0.08s,
              transform 0.85s cubic-bezier(.16, 1, .3, 1) 0.08s;
  transition: opacity 0.85s var(--chero-ease) 0.08s,
              transform 0.85s var(--chero-ease) 0.08s;
}

.chero--loaded .chero__pretitle {
  opacity: 1;
  transform: translateY(0);
}

.chero__pretitle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
  animation: _dotPulse 2.8s ease-in-out infinite;
}

@keyframes _dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.25; transform: scale(0.6); }
}

.chero__pretitle-text {
  white-space: nowrap;
}

.chero__pretitle-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
  letter-spacing: 0.08em;
  font-size: 10.35px;
  font-weight: 700;
}

.chero__pretitle-chip--muted {
  opacity: 0.75;
}

/* Headline */
.chero__headline {
  margin: 0 0 14px;
  font-family: system-ui;
  font-family: var(--font-display, system-ui);
  font-size: clamp(41.4px, 5.98vw, 94.3px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.034em;
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.95);
  color: var(--chero-ink);
  opacity: 0;
  transform: translateY(22px);
  text-shadow: 0 10px 36px rgba(15, 23, 42, 0.18);
  transition:
    opacity 0.9s cubic-bezier(.16, 1, .3, 1) 0.08s,
    transform 0.9s cubic-bezier(.16, 1, .3, 1) 0.08s;
  transition:
    opacity 0.9s var(--chero-ease) 0.08s,
    transform 0.9s var(--chero-ease) 0.08s;
}

[data-theme="light"] .chero__headline {
  text-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.chero--loaded .chero__headline {
  opacity: 1;
  transform: translateY(0);
}

.chero__headline-grad {
  background: linear-gradient(
    110deg,
    rgba(247, 241, 224, 0.96) 0%,
    rgba(214, 194, 152, 0.95) 42%,
    rgba(226, 218, 199, 0.94) 74%,
    rgba(247, 241, 224, 0.94) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: _gradShift 10s ease-in-out infinite;
}

[data-theme="light"] .chero__headline-grad {
  background: none;
  animation: none;
  color: rgba(255, 255, 255, 0.95);
  color: var(--chero-ink);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
  -webkit-text-fill-color: var(--chero-ink);
}

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

/* Subtitle */
.chero__subtitle {
  font-family: system-ui;
  font-family: var(--font-sans, system-ui);
  font-size: clamp(17.25px, 1.31vw, 20.7px);
  font-weight: 400;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.42);
  color: var(--chero-muted);
  max-width: 62ch;
  margin: 0 0 30px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1) 0.18s,
              transform 0.9s cubic-bezier(.16, 1, .3, 1) 0.18s;
  transition: opacity 0.9s var(--chero-ease) 0.18s,
              transform 0.9s var(--chero-ease) 0.18s;
}

.chero--loaded .chero__subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Actions */
.chero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1) 0.28s,
              transform 0.9s cubic-bezier(.16, 1, .3, 1) 0.28s;
  transition: opacity 0.9s var(--chero-ease) 0.28s,
              transform 0.9s var(--chero-ease) 0.28s;
}

.chero--loaded .chero__actions {
  opacity: 1;
  transform: translateY(0);
}

.chero__cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 14.95px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 24, 36, 0.65);
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.2s ease,
    transform 0.25s cubic-bezier(.16, 1, .3, 1);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.2s ease,
    transform 0.25s var(--chero-ease);
  box-shadow: none;
}

.chero__cta-primary:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 1);
  box-shadow: none;
}

[data-theme="light"] .chero__cta-primary {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.88);
}

[data-theme="light"] .chero__cta-primary:hover {
  background: rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.24);
  color: rgba(15, 23, 42, 1);
  box-shadow: none;
}

.chero__cta-primary::after {
  display: none;
}

.chero__cta-secondary {
  font-family: system-ui;
  font-family: var(--font-sans, system-ui);
  font-size: 14.95px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  color: var(--chero-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  gap: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.chero__cta-secondary::after {
  display: none;
}

.chero__cta-secondary:hover {
  color: rgba(255, 255, 255, 0.95);
  color: var(--chero-ink);
  border-color: rgba(255, 255, 255, 0.08);
  gap: 0;
  transform: none;
}

.chero__cta-secondary:hover::after {
  display: none;
}

.chero__cta-secondary svg {
  display: none;
}

[data-theme="light"] .chero__cta-secondary {
  color: rgba(15, 23, 42, 0.58);
}

[data-theme="light"] .chero__cta-secondary:hover {
  color: rgba(15, 23, 42, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

.chero__cta-primary:focus-visible,
.chero__cta-secondary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.18),
    0 0 0 5px rgba(191, 155, 93, 0.18);
}

[data-theme="dark"] .chero__cta-primary:focus-visible,
[data-theme="dark"] .chero__cta-secondary:focus-visible {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 0 5px rgba(191, 155, 93, 0.18);
}

.chero__note {
  margin-top: 16px;
  max-width: 760px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1) 0.54s,
              transform 0.9s cubic-bezier(.16, 1, .3, 1) 0.54s;
  transition: opacity 0.9s var(--chero-ease) 0.54s,
              transform 0.9s var(--chero-ease) 0.54s;
}

[data-theme="light"] .chero__note {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.chero__note-item {
  font-family: system-ui;
  font-family: var(--font-sans, system-ui);
  font-size: 12.65px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: none;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.chero__note-item:hover {
  border-color: rgba(66, 133, 244, 0.28);
  background: rgba(66, 133, 244, 0.08);
}

[data-theme="light"] .chero__note-item {
  color: rgba(15, 23, 42, 0.72);
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .chero__note-item:hover {
  border-color: rgba(66, 133, 244, 0.24);
  background: rgba(66, 133, 244, 0.06);
}

.chero__note-sep {
  display: none;
}

.chero--loaded .chero__note {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ HISTORY OF AI — LATERAL STRIP ══════════ */
/* ─── History of AI · Professional Left Lateral Banner ─── */

.chero__hoa-banner {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  text-decoration: none;

  padding: 24px 22px 24px 20px;
  width: auto;
  border-radius: 0 20px 20px 0;

  background: linear-gradient(
    180deg,
    rgba(4, 10, 32, 0.97) 0%,
    rgba(10, 22, 60, 0.96) 35%,
    rgba(16, 32, 78, 0.95) 60%,
    rgba(4, 10, 32, 0.97) 100%
  );
  border: 1px solid rgba(117, 178, 221, 0.22);
  border-left: none;
  box-shadow:
    5px 0 36px rgba(117, 178, 221, 0.14),
    2px 0 12px rgba(117, 178, 221, 0.08),
    inset -1px 0 0 rgba(117, 178, 221, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(.16, 1, .3, 1) 0.7s,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(.16, 1, .3, 1);
  transition:
    opacity 0.9s var(--chero-ease) 0.7s,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--chero-ease);
}

/* Bold gradient left accent stripe */
.chero__hoa-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(117, 178, 221, 0.5) 20%,
    #75B2DD 44%,
    #b8dff5 56%,
    #75B2DD 68%,
    rgba(117, 178, 221, 0.5) 80%,
    transparent 100%
  );
  transition: opacity 0.3s ease;
}

/* Shimmer scan line */
.chero__hoa-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(117, 178, 221, 0.0) 0%,
    rgba(117, 178, 221, 0.07) 50%,
    rgba(117, 178, 221, 0.0) 100%
  );
  animation: _cheroHoaShimmer 5s ease-in-out infinite 1.8s;
  pointer-events: none;
}

@keyframes _cheroHoaShimmer {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 1; }
}

.chero--loaded .chero__hoa-banner {
  opacity: 1;
}

.chero__hoa-banner:hover {
  background: linear-gradient(
    180deg,
    rgba(8, 18, 52, 0.99) 0%,
    rgba(18, 38, 88, 0.98) 40%,
    rgba(26, 50, 104, 0.98) 60%,
    rgba(8, 18, 52, 0.99) 100%
  );
  border-color: rgba(117, 178, 221, 0.40);
  box-shadow:
    8px 0 52px rgba(117, 178, 221, 0.26),
    5px 0 22px rgba(117, 178, 221, 0.14),
    inset -1px 0 0 rgba(117, 178, 221, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-50%) translateX(4px);
}

.chero__hoa-banner:hover::before {
  opacity: 1.4;
}

/* ── Badge "NEW" pill ── */
.chero__hoa-badge {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 10.35px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(117, 178, 221, 0.95);
  background: rgba(117, 178, 221, 0.12);
  border: 1px solid rgba(117, 178, 221, 0.30);
  border-radius: 4px;
  padding: 3px 5px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.chero__hoa-banner:hover .chero__hoa-badge {
  background: rgba(117, 178, 221, 0.20);
  border-color: rgba(168, 212, 240, 0.55);
  color: #a8d4f0;
}

/* ── Pulse dot (entry indicator) ── */
.chero__hoa-banner-dot {
  display: block;
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75B2DD;
  flex-shrink: 0;
  box-shadow:
    0 0 0 0 rgba(117, 178, 221, 0.5),
    0 0 10px rgba(117, 178, 221, 0.9);
  animation: _cheroHoaDot 2.8s ease-in-out infinite;
}

@keyframes _cheroHoaDot {
  0%     { box-shadow: 0 0 0 0 rgba(117, 178, 221, 0.5), 0 0 10px rgba(117, 178, 221, 0.9); }
  40%    { box-shadow: 0 0 0 5px rgba(117, 178, 221, 0), 0 0 18px rgba(117, 178, 221, 0.7); }
  100%   { box-shadow: 0 0 0 0 rgba(117, 178, 221, 0), 0 0 6px rgba(117, 178, 221, 0.4); }
}

/* ── Title with gradient text ── */
.chero__hoa-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 17.25px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  flex-shrink: 0;
  text-align: center;

  /* Gradient text */
  background: linear-gradient(
    90deg,
    rgba(117, 178, 221, 0.80) 0%,
    rgba(230, 244, 255, 0.98) 40%,
    rgba(168, 212, 240, 0.98) 70%,
    rgba(117, 178, 221, 0.80) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(117, 178, 221, 0.45));

  transition: filter 0.26s ease;
}

.chero__hoa-banner:hover .chero__hoa-banner-title {
  filter: drop-shadow(0 0 16px rgba(168, 212, 240, 0.80));
}

/* ── Timeline dots decoration ── */
.chero__hoa-tl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.chero__hoa-tl-node {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(117, 178, 221, 0.38);
  border: 1px solid rgba(117, 178, 221, 0.50);
  flex-shrink: 0;
  transition: background 0.24s ease, border-color 0.24s ease;
}

.chero__hoa-tl-node--mid {
  width: 6px;
  height: 6px;
  background: rgba(117, 178, 221, 0.65);
  border-color: #75B2DD;
  box-shadow: 0 0 6px rgba(117, 178, 221, 0.6);
}

.chero__hoa-banner:hover .chero__hoa-tl-node {
  background: rgba(117, 178, 221, 0.55);
  border-color: rgba(168, 212, 240, 0.75);
}

.chero__hoa-banner:hover .chero__hoa-tl-node--mid {
  background: #a8d4f0;
  box-shadow: 0 0 10px rgba(168, 212, 240, 0.80);
}

/* ── Arrow ── */
.chero__hoa-banner-arrow {
  font-size: 18.4px;
  color: rgba(117, 178, 221, 0.65);
  flex-shrink: 0;
  transition: color 0.24s ease, transform 0.3s cubic-bezier(.16, 1, .3, 1);
  transition: color 0.24s ease, transform 0.3s var(--chero-ease);
}

.chero__hoa-banner:hover .chero__hoa-banner-arrow {
  color: #a8d4f0;
  transform: translateX(4px);
}

/* ── Light theme ── */
[data-theme="light"] .chero__hoa-banner {
  background: linear-gradient(
    180deg,
    rgba(4, 12, 40, 0.97) 0%,
    rgba(10, 24, 68, 0.96) 50%,
    rgba(4, 12, 40, 0.97) 100%
  );
  border-color: rgba(117, 178, 221, 0.30);
  box-shadow: 5px 0 32px rgba(29, 41, 81, 0.28);
}

[data-theme="light"] .chero__hoa-banner:hover {
  border-color: rgba(117, 178, 221, 0.55);
  box-shadow: 8px 0 42px rgba(29, 41, 81, 0.42);
  transform: translateY(-50%) translateX(4px);
}

/* ── Mobile: horizontal bottom strip ── */
@media (max-width: 768px) {
  .chero__hoa-banner {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 0;
    border: 1px solid rgba(117, 178, 221, 0.22);
    border-bottom: none;
  }

  .chero__hoa-banner::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(117, 178, 221, 0.5) 20%,
      #75B2DD 44%,
      #b8dff5 56%,
      #75B2DD 68%,
      rgba(117, 178, 221, 0.5) 80%,
      transparent 100%
    );
  }

  .chero__hoa-banner:hover,
  [data-theme="light"] .chero__hoa-banner:hover {
    transform: translateY(-2px);
  }

  .chero__hoa-tl {
    display: none;
  }

  .chero__hoa-banner-title {
    font-size: 14.95px;
    white-space: nowrap;
    text-align: left;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .chero__hoa-banner-dot { animation: none; }
  .chero__hoa-banner::after { animation: none; }
  .chero__hoa-banner {
    opacity: 1 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
  }
}

.chero__tw-card {
  position: relative;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.82);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.20),
    0 20px 48px rgba(0, 0, 0, 0.30);
  padding: 0;
  min-height: clamp(280px, 42vh, 48dvh);
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1) 0.36s, transform 0.9s cubic-bezier(.16, 1, .3, 1) 0.36s;
  transition: opacity 0.9s var(--chero-ease) 0.36s, transform 0.9s var(--chero-ease) 0.36s;
}

.chero--loaded .chero__tw-card {
  opacity: 1;
  transform: translateY(0);
}

/* ── Terminal header (traffic lights) ── */
.chero__tw-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chero__tw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chero__tw-dot--red { background: #ff5f57; }
.chero__tw-dot--yellow { background: #febc2e; }
.chero__tw-dot--green { background: #28c840; }

.chero__tw-header-label {
  margin-left: auto;
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: 12.08px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

/* ── Terminal body ── */
.chero__tw-body {
  flex: 1 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
}

.chero__tw-prompt {
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: clamp(23px, 1.84vw, 32.2px);
  font-weight: 400;
  color: #28c840;
  line-height: 1.15;
  flex-shrink: 0;
  -webkit-user-select: none;
          user-select: none;
}

.chero__tw-title {
  margin: 0;
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: clamp(20.7px, 1.67vw, 29.9px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}

.chero__tw-text {
  min-width: 0;
}

.chero__tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #28c840;
  animation: _cheroTwCursor 0.95s steps(1, end) infinite;
}

@keyframes _cheroTwCursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

/* ── Terminal footer ── */
.chero__tw-footer {
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: 12.65px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.36);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chero__tw-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.4);
  flex-shrink: 0;
}

/* ── Light theme ── */
[data-theme="light"] .chero__tw-card {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.06),
    0 20px 48px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .chero__tw-header {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .chero__tw-header-label {
  color: rgba(15, 23, 42, 0.32);
}

[data-theme="light"] .chero__tw-title {
  color: rgba(15, 23, 42, 0.88);
}

[data-theme="light"] .chero__tw-prompt {
  color: #1a8f2d;
}

[data-theme="light"] .chero__tw-cursor {
  background: #1a8f2d;
}

[data-theme="light"] .chero__tw-footer {
  border-top-color: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.38);
}

[data-theme="light"] .chero__tw-status-dot {
  background: #1a8f2d;
  box-shadow: 0 0 6px rgba(26, 143, 45, 0.3);
}

.chero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.4vh, 36px);
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
  cursor: pointer;
  padding: 6px 8px;
}

.chero__scroll-mouse {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.chero__scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: _cheroScrollWheel 1.5s ease-in-out infinite;
}

@keyframes _cheroScrollWheel {
  0% { transform: translateY(0); opacity: 0.95; }
  60% { transform: translateY(9px); opacity: 0.35; }
  100% { transform: translateY(0); opacity: 0.95; }
}

.chero__scroll-label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chero__scroll-cue:hover {
  color: rgba(255, 255, 255, 0.95);
  color: var(--chero-ink);
}

[data-theme="light"] .chero__scroll-mouse {
  background: rgba(15, 23, 42, 0.03);
}

/* ══════════ VISUAL / PREVIEW ══════════ */
.chero__showcase-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    ellipse 50% 40% at 50% 35%,
    rgba(255, 255, 255, 0.035),
    transparent 70%
  );
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
  contain: strict;
  transform: translate3d(0px, 0px, 0);
  transform: translate3d(var(--chero-tilt-gx, 0px), var(--chero-tilt-gy, 0px), 0);
  will-change: transform;
}

[data-theme="light"] .chero__showcase-glow {
  display: none;
}

.chero__preview {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  background: linear-gradient(170deg, rgba(14, 18, 30, 0.94), rgba(6, 10, 20, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015),
    0 12px 48px rgba(0, 0, 0, 0.22),
    0 60px 140px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
  z-index: 2;
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  transform: translate3d(0, 0, 0) rotateX(var(--chero-tilt-x, 0deg)) rotateY(var(--chero-tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 520ms cubic-bezier(.33, 1, .68, 1);
  transition: transform 520ms var(--chero-ease-out);
}

.chero__visual[data-tilt='on'] .chero__preview {
  transition: transform 90ms linear;
}

[data-theme="light"] .chero__preview {
  background: rgba(255, 255, 255, 0.62);
  background: var(--surface-glass-strong, rgba(255, 255, 255, 0.62));
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.14),
    0 48px 120px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .chero__preview::before {
  display: none;
}

[data-theme="light"] .chero__preview::after {
  display: none;
}

.chero__preview::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(226, 232, 240, 0.26),
    rgba(203, 213, 225, 0.16)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.22;
  pointer-events: none;
}

.chero__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      560px circle at 50% 45%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.07) 26%,
      transparent 62%
    );
  background:
    radial-gradient(
      560px circle at var(--chero-tilt-mx, 50%) var(--chero-tilt-my, 45%),
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.07) 26%,
      transparent 62%
    );
  opacity: 0;
  opacity: var(--chero-tilt-o, 0);
  mix-blend-mode: screen;
  pointer-events: none;
}

[data-theme="light"] .chero__preview::after {
  background:
    radial-gradient(
      560px circle at 50% 45%,
      rgba(255, 255, 255, 0.40) 0%,
      rgba(255, 255, 255, 0.16) 26%,
      transparent 62%
    );
  background:
    radial-gradient(
      560px circle at var(--chero-tilt-mx, 50%) var(--chero-tilt-my, 45%),
      rgba(255, 255, 255, 0.40) 0%,
      rgba(255, 255, 255, 0.16) 26%,
      transparent 62%
    );
  opacity: 0;
  opacity: var(--chero-tilt-ol, var(--chero-tilt-o, 0));
  mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: reduce) {
  .chero__preview {
    transform: none;
    transition: none;
  }
  .chero__preview::after {
    display: none;
  }
  .chero__showcase-glow {
    transform: none;
  }
}

@media (pointer: coarse) {
  .chero__preview {
    transform: none;
    transition: none;
  }
  .chero__preview::after {
    display: none;
  }
  .chero__showcase-glow {
    transform: none;
  }
}

.chero__preview-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.006);
}

[data-theme="light"] .chero__preview-top {
  border-bottom-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.48);
}

.chero__preview-dots {
  display: flex;
  gap: 7px;
}

.chero__preview-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chero__preview-dots i:nth-child(1) { background: rgba(255, 95, 87, 0.9); }
.chero__preview-dots i:nth-child(2) { background: rgba(254, 188, 46, 0.9); }
.chero__preview-dots i:nth-child(3) { background: rgba(40, 200, 64, 0.9); }

.chero__preview-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chero__preview-kicker {
  font-size: 10.35px;
  opacity: 0.7;
}

.chero__preview-head {
  font-family: system-ui;
  font-family: var(--font-sans, system-ui);
  font-size: 14.95px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .chero__preview-head {
  color: rgba(15, 23, 42, 0.72);
}

.chero__preview-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(var(--accent-blue-rgb, 37, 99, 235), 0.16);
  background: rgba(37, 99, 235, 0.04);
  background: rgba(var(--accent-blue-rgb, 37, 99, 235), 0.04);
}

[data-theme="light"] .chero__preview-status {
  background: rgba(37, 99, 235, 0.07);
  background: rgba(var(--accent-blue-rgb, 37, 99, 235), 0.07);
}

.chero__preview-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.92);
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.26);
}

.chero__preview-status-text {
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: 10.35px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.92);
  color: rgba(var(--accent-blue-rgb, 37, 99, 235), 0.92);
}

.chero__preview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-gap: 1px;
  gap: 1px;
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .chero__preview-grid {
  background: rgba(15, 23, 42, 0.08);
}

.chero__preview-terminal {
  background: rgba(8, 12, 22, 0.55);
  background: var(--chero-surface-2);
  padding: 16px;
}

.chero__preview-fallback {
  height: 360px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  background: rgba(8, 12, 22, 0.60);
}

[data-theme="light"] .chero__preview-fallback {
  background: rgba(255, 255, 255, 0.52);
  background: var(--surface-glass-soft, rgba(255, 255, 255, 0.52));
}

.chero__preview-panel {
  background: rgba(8, 12, 22, 0.55);
  background: var(--chero-surface-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chero__panel-metrics {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.chero__panel-metric {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 12px;
  column-gap: 12px;
  align-items: center;
}

[data-theme="light"] .chero__panel-metric {
  background: rgba(255, 255, 255, 0.52);
  background: var(--surface-glass-soft, rgba(255, 255, 255, 0.52));
}

.chero__panel-metric-val {
  font-family: system-ui;
  font-family: var(--font-display, system-ui);
  font-size: 25.3px;
  font-weight: 720;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95);
  color: var(--chero-ink);
  line-height: 1;
  min-width: 76px;
}

.chero__panel-metric-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chero__panel-metric-label {
  font-size: 13.8px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.42);
  color: var(--chero-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chero__panel-metric-note {
  font-size: 10.35px;
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
}

.chero__panel-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.chero__panel-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(var(--accent-blue-rgb, 37, 99, 235), 0.14);
  background: rgba(37, 99, 235, 0.04);
  background: rgba(var(--accent-blue-rgb, 37, 99, 235), 0.04);
  white-space: nowrap;
}

.chero__panel-alert svg {
  width: 10px;
  height: 10px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.chero__panel-alert span {
  font-family: monospace;
  font-family: var(--font-mono, monospace);
  font-size: 10.35px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
  letter-spacing: 0.02em;
}

.chero__panel-foot {
  margin-top: auto;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chero-border);
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] .chero__panel-foot {
  background: rgba(255, 255, 255, 0.52);
  background: var(--surface-glass-soft, rgba(255, 255, 255, 0.52));
}

.chero__panel-foot-title {
  font-size: 13.8px;
  font-weight: 680;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.42);
  color: var(--chero-muted);
  margin-bottom: 4px;
}

.chero__panel-foot-sub {
  font-size: 13.8px;
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
  line-height: 1.5;
  margin-bottom: 6px;
}

.chero__panel-foot-note {
  font-size: 10.35px;
  color: rgba(255, 255, 255, 0.28);
  color: var(--chero-faint);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .chero__world-stripes,
  .chero__grid-overlay,
  .chero__grain {
    display: none;
  }

  .chero__layout {
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.8vw, 32px);
  }

  [data-theme="light"] .chero__layout {
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.8vw, 32px);
    justify-items: stretch;
  }
  .chero__visual {
    display: none;
  }
  .chero__copy {
    max-width: 860px;
    text-align: center;
  }

  [data-theme="light"] .chero__copy {
    width: 100%;
    max-width: 860px;
    text-align: center;
  }
  .chero__headline,
  .chero__subtitle {
    margin-inline: auto;
  }

  [data-theme="light"] .chero__headline,
  [data-theme="light"] .chero__subtitle {
    margin-inline: auto;
  }
  .chero__actions,
  .chero__note {
    justify-content: center;
  }

  [data-theme="light"] .chero__actions,
  [data-theme="light"] .chero__note {
    justify-content: center;
  }
  .chero__tw-card {
    width: min(100%, 520px);
    margin-inline: auto;
    min-height: clamp(240px, 36vh, 42dvh);
  }
  .chero__tw-title {
    font-size: clamp(19.55px, 3.22vw, 27.6px);
  }
  .chero__tw-body {
    padding: 22px 20px;
  }

  [data-theme="light"] .chero__viewport {
    padding: 116px 0 56px;
    min-height: auto;
    align-items: flex-start;
  }

  [data-theme="light"] .chero__viewport::before,
  [data-theme="light"] .chero__viewport::after,
  [data-theme="light"] .chero__vignette {
    display: none;
  }

  [data-theme="light"] .chero__tw-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  }

  [data-theme="light"] .chero__tw-title {
    font-size: clamp(18.4px, 2.99vw, 25.3px);
  }

  .chero__scroll-cue {
    display: none;
  }
}

@media (max-width: 768px) {
  .chero__viewport {
    padding: 104px 0 64px;
  }
  .chero__layout {
    padding-inline: 20px;
    padding-inline: var(--margin-mobile, 20px);
  }
  .chero__headline {
    font-size: clamp(34.5px, 8.63vw, 55.2px);
  }
  .chero__subtitle {
    font-size: 17.25px;
    margin-bottom: 26px;
  }
  .chero__actions {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
  }
  .chero__actions .btn {
    width: min(360px, 100%);
    justify-content: center;
  }
  .chero__preview-grid {
    grid-template-columns: 1fr;
  }
  .chero__preview-terminal,
  .chero__preview-panel {
    padding: 12px;
  }
  .chero__note {
    border-radius: 0;
    padding: 8px 0;
    gap: 6px;
  }
  .chero__note-item {
    font-size: 11.5px;
    letter-spacing: 0.02em;
    padding: 4px 10px;
  }
  .chero__scroll-cue {
    bottom: 12px;
  }
  .chero__tw-card {
    min-height: clamp(200px, 34vh, 38dvh);
    border-radius: 12px;
  }
  .chero__tw-title {
    font-size: clamp(17.25px, 5.52vw, 23px);
  }
  .chero__tw-body {
    padding: 18px 16px;
    gap: 10px;
  }
  .chero__tw-prompt {
    font-size: clamp(18.4px, 5.29vw, 25.3px);
  }
  .chero__tw-footer {
    font-size: 11.5px;
    padding: 10px 16px;
  }

  [data-theme="light"] .chero__viewport {
    padding: 96px 0 44px;
    min-height: auto;
    align-items: flex-start;
  }

  [data-theme="light"] .chero__headline {
    font-size: clamp(32.2px, 8.28vw, 48.3px);
  }

  [data-theme="light"] .chero__subtitle {
    font-size: 16.1px;
    line-height: 1.52;
  }

  [data-theme="light"] .chero__actions {
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  [data-theme="light"] .chero__actions .btn,
  [data-theme="light"] .chero__cta-secondary {
    width: min(340px, 100%);
  }

  [data-theme="light"] .chero__tw-card {
    min-height: auto;
  }

  [data-theme="light"] .chero__tw-title {
    font-size: clamp(20.7px, 6.21vw, 26.45px);
  }

  [data-theme="light"] .chero__tw-footer {
    font-size: clamp(12.65px, 3.22vw, 13.8px);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .chero__headline {
    font-size: clamp(29.9px, 9.66vw, 43.7px);
  }
  .chero__pretitle {
    font-size: 10.93px;
  }
}

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  .chero__mesh-orb,
  .chero__pretitle-dot,
  .chero__ribbon,
  .chero__scroll-wheel,
  .chero__tw-cursor {
    animation: none !important;
  }
  .chero__cursor-glow {
    display: none;
  }
  .chero__cta-primary::after {
    display: none;
    animation: none;
  }
  .chero__pretitle,
  .chero__headline,
  .chero__subtitle,
  .chero__actions,
  .chero__note {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .chero__headline-grad {
    animation: none;
  }
}

/* ── CohereLogoMarquee ──────────────────────────────────── */
.cmarquee {
  position: relative;
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.cmarquee--visible {
  opacity: 1;
  transform: translateY(0);
}

.cmarquee__label {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(.7rem, .8vw, .85rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 36px;
}

.cmarquee__logos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 26px;
}

.cmarquee__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.60);
}

.cmarquee__logo-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
  color: var(--cmarquee-icon-color, currentColor);
}

.cmarquee__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 12px;
  letter-spacing: -0.01em;
}


/* Keep the section simple: we use a single provided image. */

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .cmarquee {
  border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .cmarquee__label {
  color: rgba(0,0,0,.4);
}

[data-theme="light"] .cmarquee__logo {
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.55);
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cmarquee { transition-duration: .01s; }
}

@media (max-width: 768px) {
  .cmarquee { padding: 40px 0; }
  .cmarquee__label { margin-bottom: 26px; }
  .cmarquee__logos { padding: 0 var(--margin-mobile); gap: 12px 14px; }
  .cmarquee__logo { padding: 8px 10px; }
  .cmarquee__logo-text { font-size: 11px; }
}

/* ═══════════════════════════════════════════════
   FEATURE PILLARS — Cohere-style standalone cards
   ═══════════════════════════════════════════════ */

.cfeat {
  position: relative;
  padding: clamp(100px, 12vw, 180px) 48px;
  padding: clamp(100px, 12vw, 180px) var(--margin-desktop, 48px);
  overflow: hidden;
}

.cfeat__container {
  max-width: 1200px;
  margin: 0 auto;
}

.cfeat__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.cfeat__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.cfeat__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.cfeat__subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.cfeat__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

.cfeat__card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition-delay: 0s;
  transition-delay: var(--card-delay, 0s);
}

.cfeat--visible .cfeat__card {
  opacity: 1;
  transform: translateY(0);
}

.cfeat__card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cfeat__card-inner {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  position: relative;
  z-index: 1;
}

.cfeat__card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.cfeat__card--ember .cfeat__card-icon-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
}

.cfeat__card--ice .cfeat__card-icon-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
}

.cfeat__card--copper .cfeat__card-icon-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
}

.cfeat__card:hover .cfeat__card-icon-wrap {
  transform: scale(1.1);
}

.cfeat__card--ember:hover .cfeat__card-icon-wrap {
  box-shadow: 0 6px 20px rgba(255,255,255,.04);
}

.cfeat__card--ice:hover .cfeat__card-icon-wrap {
  box-shadow: 0 6px 20px rgba(255,255,255,.04);
}

.cfeat__card--copper:hover .cfeat__card-icon-wrap {
  box-shadow: 0 6px 20px rgba(255,255,255,.04);
}

.cfeat__card-body {
  flex: 1 1;
}

.cfeat__card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.25;
}

.cfeat__card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.cfeat__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0.7;
}

.cfeat__card:hover .cfeat__card-link {
  opacity: 1;
  gap: 10px;
}

.cfeat__card--ember .cfeat__card-link { color: rgba(255,255,255,.6); }
.cfeat__card--ice .cfeat__card-link { color: rgba(255,255,255,.6); }
.cfeat__card--copper .cfeat__card-link { color: rgba(255,255,255,.6); }

.cfeat__card-shine {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cfeat__card--ember .cfeat__card-shine {
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.03), transparent 70%);
}

.cfeat__card--ice .cfeat__card-shine {
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.02), transparent 70%);
}

.cfeat__card--copper .cfeat__card-shine {
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.03), transparent 70%);
}

.cfeat__card:hover .cfeat__card-shine {
  opacity: 1;
}

[data-theme="light"] .cfeat__card {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

[data-theme="light"] .cfeat__card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cfeat__kicker {
  border-color: rgba(0,0,0,.06);
  background: rgba(0,0,0,.03);
}

@media (max-width: 900px) {
  .cfeat__bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cfeat__card-inner {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .cfeat {
    padding-left: 20px;
    padding-left: var(--margin-mobile, 20px);
    padding-right: 20px;
    padding-right: var(--margin-mobile, 20px);
  }
  .cfeat__card-inner {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfeat__card {
    opacity: 1;
    transform: none;
    transition: background 0.3s;
  }
}

/* ═══════════════════════════════════════════════════
   PLATFORM HIGHLIGHT — Cohere-style centered + wide terminal
   ═══════════════════════════════════════════════════ */

.cplat {
  position: relative;
  padding: clamp(100px, 12vw, 180px) 48px;
  padding: clamp(100px, 12vw, 180px) var(--margin-desktop, 48px);
  overflow: hidden;
}

.cplat__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Content — Centered, Cohere-style ── */
.cplat__content {
  text-align: center;
  max-width: 720px;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.cplat--visible .cplat__content {
  opacity: 1;
  transform: translateY(0);
}

.cplat__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.cplat__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.cplat__desc {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

/* Feature pills — inline row */
.cplat__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.cplat__feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.cplat__feat-check {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* CTA */
.cplat__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cplat__cta:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Terminal — Full-width, like Cohere product showcase ── */
.cplat__visual {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(32px) perspective(1200px) rotateX(3deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.cplat--visible .cplat__visual {
  opacity: 1;
  transform: translateY(0) perspective(1200px) rotateX(0deg);
}

.cplat__terminal {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(175deg, rgba(14, 16, 24, 0.96) 0%, rgba(8, 10, 16, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 16px 48px rgba(0, 0, 0, 0.2),
    0 48px 100px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.cplat__terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

.cplat__terminal-dots {
  display: flex;
  gap: 7px;
}

.cplat__terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.cplat__terminal-dots span:nth-child(1) { background: #FF5F57; }
.cplat__terminal-dots span:nth-child(2) { background: var(--accent-violet); }
.cplat__terminal-dots span:nth-child(3) { background: var(--accent-cyan); }

.cplat__terminal-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.cplat__terminal-actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.cplat__terminal-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.3);
}

.cplat__terminal-tab--active {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
}

.cplat__terminal-body {
  padding: 24px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  min-height: 300px;
}

.cplat__line {
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.5s + 0s);
  transition-delay: calc(0.5s + var(--line-delay, 0s));
}

.cplat--visible .cplat__line {
  opacity: 1;
  transform: translateY(0);
}

.cplat__line--cmd { color: var(--text-primary); font-weight: 500; }
.cplat__line--success { color: var(--accent-cyan); }
.cplat__line--info { color: rgba(255,255,255,.5); }

.cplat__cursor-block {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: rgba(255,255,255,.5);
  opacity: 0.7;
  animation: termCursorBlink 1.2s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes termCursorBlink {
  0%, 50% { opacity: 0.7; }
  51%, 100% { opacity: 0; }
}

.cplat__terminal-glow {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255,255,255,0.02), transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 70%, rgba(255,255,255,0.02), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* ── Light Theme ── */
[data-theme="light"] .cplat__terminal {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.06), 0 48px 100px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

[data-theme="light"] .cplat__terminal-bar { border-bottom-color: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .cplat__terminal-path { color: rgba(0, 0, 0, 0.3); }
[data-theme="light"] .cplat__terminal-tab { color: rgba(0, 0, 0, 0.3); }
[data-theme="light"] .cplat__terminal-tab--active { background: rgba(0, 0, 0, 0.04); color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .cplat__line { color: rgba(0, 0, 0, 0.45); }
[data-theme="light"] .cplat__line--cmd { color: #0f172a; }
[data-theme="light"] .cplat__line--success { color: var(--accent-blue); }

[data-theme="light"] .cplat__kicker {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

[data-theme="light"] .cplat__feat-item {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

[data-theme="light"] .cplat__cta {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

[data-theme="light"] .cplat__cta:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 0, 0, 0.14);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cplat__features {
    gap: 8px;
  }
  .cplat__feat-item {
    font-size: 13px;
    padding: 5px 12px;
  }
}

@media (max-width: 640px) {
  .cplat {
    padding-left: 20px;
    padding-left: var(--margin-mobile, 20px);
    padding-right: 20px;
    padding-right: var(--margin-mobile, 20px);
  }
  .cplat__terminal-body {
    font-size: 11px;
    padding: 16px 14px;
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cplat__content, .cplat__visual {
    opacity: 1;
    transform: none;
  }
  .cplat__line {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cplat__cursor-block {
    animation: none;
  }
}

.home-advanced-stack {
  position: relative;
  z-index: 2;
  padding: 0;
}

.home-advanced-stack > section {
  scroll-margin-top: 120px;
  position: relative;
  z-index: 1;
}

/* ── CohereStats ─────────────────────────────────── */
.cstats {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.cstats--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background grid-lines effect */
.cstats__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cstats__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 80%);
}

.cstats__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0;
  gap: 0;
}

/* Stat card */
.cstats__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease 0ms, transform .7s ease 0ms;
  transition: opacity .7s ease var(--delay, 0ms), transform .7s ease var(--delay, 0ms);
}
.cstats--visible .cstats__card {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical separator line between cards */
.cstats__card + .cstats__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
}

.cstats__number {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.cstats__digits {
  color: var(--text-primary);
}

.cstats__suffix {
  font-size: .5em;
  font-weight: 500;
  color: var(--text-tertiary);
}

.cstats__prefix {
  font-size: .5em;
  font-weight: 500;
  color: var(--text-tertiary);
}

.cstats__label {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: clamp(.85rem, 1vw, 1rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 200px;
  line-height: 1.4;
}

/* Decorative line under label */
.cstats__line {
  width: 32px;
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), transparent);
  border-radius: 1px;
  opacity: 0;
  transition: opacity .6s ease calc(0ms + 400ms);
  transition: opacity .6s ease calc(var(--delay, 0ms) + 400ms);
}
.cstats--visible .cstats__line {
  opacity: 1;
}

/* Context label */
.cstats__context {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: clamp(.75rem, .9vw, .875rem);
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 32px;
  letter-spacing: .02em;
}

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .cstats__grid-lines {
  display: none;
}
[data-theme="light"] .cstats__number {
  color: var(--text-primary);
}
[data-theme="light"] .cstats__label {
  color: var(--text-secondary);
}
[data-theme="light"] .cstats__card + .cstats__card::before {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
}

[data-theme="light"] .cstats__line {
  display: none;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .cstats__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .cstats__card:nth-child(2n+1)::before { display: none; }
}
@media (max-width: 480px) {
  .cstats__container {
    grid-template-columns: 1fr;
  }
  .cstats__card + .cstats__card::before { display: none; }
  .cstats { padding: 80px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cstats { transition-duration: .01s; }
  .cstats__card { transition-duration: .01s; }
  .cstats__line { transition-duration: .01s; }
}

/* ── CohereProductCards ──────────────────────────────── */
.cprod {
  position: relative;
  padding: 140px 24px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.cprod--visible {
  opacity: 1;
  transform: translateY(0);
}

.cprod__header {
  text-align: center;
  margin-bottom: 64px;
}

.cprod__kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(.7rem, .8vw, .85rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.cprod__title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0 0 20px;
}

.cprod__grad {
  color: var(--text-secondary);
}

.cprod__subtitle {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ── Card grid ────────────────────────────────────── */
.cprod__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

.cprod__card {
  position: relative;
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .7s ease 0ms,
    transform .7s ease 0ms,
    border-color .3s ease,
    box-shadow .3s ease;
  transition:
    opacity .7s ease var(--card-delay, 0ms),
    transform .7s ease var(--card-delay, 0ms),
    border-color .3s ease,
    box-shadow .3s ease;
}
.cprod__card--visible {
  opacity: 1;
  transform: translateY(0);
}
.cprod__card:hover {
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

/* Glow overlay */
.cprod__card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(
    circle at 50% 0%,
    color-mix(in srgb, var(--accent-blue) 16%, transparent) 0%,
    transparent 60%
  );
  background: radial-gradient(
    circle at 50% 0%,
    color-mix(in srgb, var(--card-accent, var(--accent-blue)) 16%, transparent) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.cprod__card-glow--on {
  opacity: 1;
}

/* Badge */
.cprod__card-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid;
  color: var(--accent-blue);
  color: var(--card-accent, var(--accent-blue));
  border-color: color-mix(in srgb, var(--accent-blue) 28%, transparent);
  border-color: color-mix(in srgb, var(--card-accent, var(--accent-blue)) 28%, transparent);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 24px;
}

/* Icon */
.cprod__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: color-mix(in srgb, var(--accent-blue) 10%, transparent);
  background: color-mix(in srgb, var(--card-accent, var(--accent-blue)) 10%, transparent);
  color: var(--accent-blue);
  color: var(--card-accent, var(--accent-blue));
}

.cprod__card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.cprod__card-desc {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 28px;
  flex: 1 1;
}

/* Feature list */
.cprod__card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cprod__card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .85rem;
  color: var(--text-secondary);
}

.cprod__check {
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  color: var(--accent-blue);
  color: var(--card-accent, var(--accent-blue));
}

/* Link */
.cprod__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-blue);
  color: var(--card-accent, var(--accent-blue));
  transition: gap .3s ease;
  margin-top: auto;
}
.cprod__card-link:hover {
  gap: 12px;
}

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .cprod__title { color: #111; }
[data-theme="light"] .cprod__subtitle { color: rgba(0,0,0,.5); }
[data-theme="light"] .cprod__card {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .cprod__card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .cprod__card-glow {
  display: none;
}
[data-theme="light"] .cprod__card-title { color: #111; }
[data-theme="light"] .cprod__card-desc { color: rgba(0,0,0,.5); }
[data-theme="light"] .cprod__card-features li { color: rgba(0,0,0,.55); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .cprod__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .cprod { padding: 80px 16px; }
  .cprod__card { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cprod { transition-duration: .01s; }
  .cprod__card { transition-duration: .01s; }
  .cprod__card-glow { transition-duration: .01s; }
}

/* ── CohereIndustries ────────────────────────────────── */
.cindu {
  position: relative;
  padding: 140px 24px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.cindu--visible {
  opacity: 1;
  transform: translateY(0);
}

.cindu__header {
  text-align: center;
  margin-bottom: 48px;
}

.cindu__kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(.7rem, .8vw, .85rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.cindu__title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

.cindu__subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 1rem auto 0;
  font-weight: 300;
}

/* ── Pill tabs ───────────────────────────────────── */
.cindu__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.cindu__tab {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .875rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.cindu__tab:hover {
  border-color: rgba(255,255,255,.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.cindu__tab--active {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
  color: rgba(2, 6, 23, 0.94);
  font-weight: 600;
}

/* ── Content panel ───────────────────────────────── */
.cindu__panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-gap: 48px;
  gap: 48px;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.cindu__panel--in {
  opacity: 1;
  transform: translateY(0);
}
.cindu__panel--out {
  opacity: 0;
  transform: translateY(12px);
}

.cindu__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cindu__panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.25;
}

.cindu__panel-desc {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.cindu__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: gap .3s ease;
}
.cindu__panel-link:hover {
  gap: 12px;
}

/* Right side */
.cindu__stat-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text-primary);
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.08);
}

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

.cindu__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .9rem;
  color: var(--text-secondary);
}

.cindu__feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .cindu__kicker { color: var(--text-tertiary); }
[data-theme="light"] .cindu__title { color: #111; }
[data-theme="light"] .cindu__tab {
  border-color: rgba(0,0,0,.08);
  color: rgba(0,0,0,.5);
  background: rgba(15, 23, 42, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .cindu__tab:hover {
  border-color: rgba(0,0,0,.2);
  color: rgba(0,0,0,.8);
}
[data-theme="light"] .cindu__tab--active {
  background: rgba(11, 18, 32, 0.96);
  border-color: rgba(11, 18, 32, 0.96);
  color: rgba(255, 255, 255, 0.96);
}
[data-theme="light"] .cindu__panel {
  border-color: rgba(0,0,0,.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .cindu__icon-wrap {
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.55);
}
[data-theme="light"] .cindu__panel-title { color: #111; }
[data-theme="light"] .cindu__panel-desc { color: rgba(0,0,0,.55); }
[data-theme="light"] .cindu__panel-link { color: rgba(0,0,0,.65); }
[data-theme="light"] .cindu__stat-badge {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
  color: rgba(0,0,0,.75);
}
[data-theme="light"] .cindu__feature { color: rgba(0,0,0,.65); }
[data-theme="light"] .cindu__feature-dot { background: rgba(0,0,0,.22); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .cindu { padding: 80px 16px; }
  .cindu__panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .cindu__tabs { gap: 8px; }
  .cindu__tab { font-size: .8rem; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cindu { transition-duration: .01s; }
  .cindu__panel { transition-duration: .01s; }
}

/* ── CohereTestimonial ──────────────────────────────────── */
.ctesti {
  position: relative;
  padding: 140px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.ctesti--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ambient glow */
.ctesti__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.ctesti__kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(.7rem, .8vw, .85rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

/* Quote card */
.ctesti__card {
  position: relative;
  z-index: 1;
  max-width: 820px;
  transition: opacity .4s ease, transform .4s ease;
}
.ctesti__card--in {
  opacity: 1;
  transform: translateY(0);
}
.ctesti__card--out {
  opacity: 0;
  transform: translateY(12px);
}

.ctesti__quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 700;
  line-height: 0.6;
  color: rgba(255,255,255,.06);
  margin-bottom: 8px;
  -webkit-user-select: none;
          user-select: none;
}

.ctesti__quote {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 48px;
  font-style: normal;
}

.ctesti__attribution {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctesti__author {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ctesti__company {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .875rem;
  color: var(--text-secondary);
}

.ctesti__industry {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Dots */
.ctesti__dots {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.ctesti__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.ctesti__dot--active {
  background: rgba(37, 99, 235, 0.88);
  border-color: rgba(37, 99, 235, 0.88);
  transform: scale(1.3);
}
.ctesti__dot:hover:not(.ctesti__dot--active) {
  border-color: rgba(255,255,255,.5);
}

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .ctesti__quote {
  color: rgba(0,0,0,.88);
}
[data-theme="light"] .ctesti__author {
  color: rgba(0,0,0,.8);
}
[data-theme="light"] .ctesti__company {
  color: rgba(0,0,0,.45);
}
[data-theme="light"] .ctesti__dot {
  border-color: rgba(0,0,0,.15);
}
[data-theme="light"] .ctesti__dot--active {
  background: rgba(11, 18, 32, 0.92);
  border-color: rgba(11, 18, 32, 0.92);
}
[data-theme="light"] .ctesti__glow {
  display: none;
}
[data-theme="light"] .ctesti__quote-mark {
  color: rgba(0,0,0,.04);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .ctesti { padding: 80px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctesti { transition-duration: .01s; }
  .ctesti__card { transition-duration: .01s; }
}

/* ── CohereHowItWorks ────────────────────────────────── */
.chiw {
  position: relative;
  padding: 140px 24px;
  max-width: 960px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.chiw--visible {
  opacity: 1;
  transform: translateY(0);
}

.chiw__header {
  text-align: center;
  margin-bottom: 80px;
}

.chiw__kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(.7rem, .8vw, .85rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.chiw__title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

/* ── Steps ────────────────────────────────────── */
.chiw__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chiw__step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-gap: 32px;
  gap: 32px;
  padding: 40px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease 0ms, transform .7s ease 0ms;
  transition: opacity .7s ease var(--step-delay, 0ms), transform .7s ease var(--step-delay, 0ms);
}
.chiw--visible .chiw__step {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical connector */
.chiw__connector {
  position: absolute;
  left: 31px;
  top: 96px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.03) 100%);
}

.chiw__step-number {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.chiw__step-content {
  padding-top: 8px;
}

.chiw__step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.chiw__step-desc {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
  max-width: 520px;
}

.chiw__step-detail {
  font-family: 'IBM Plex Mono', monospace;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .8rem;
  color: var(--text-tertiary);
  letter-spacing: .03em;
}

/* ── CTA ────────────────────────────────────── */
.chiw__cta {
  text-align: center;
  margin-top: 64px;
}

.chiw__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .3s ease;
}
.chiw__cta-link:hover {
  border-color: rgba(255,255,255,.25);
  color: var(--text-primary);
  gap: 12px;
}

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .chiw__title { color: #111; }
[data-theme="light"] .chiw__step-number {
  border-color: rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
  color: rgba(0,0,0,.4);
}
[data-theme="light"] .chiw__step-title { color: #111; }
[data-theme="light"] .chiw__step-desc { color: rgba(0,0,0,.5); }
[data-theme="light"] .chiw__step-detail { color: rgba(0,0,0,.25); }
[data-theme="light"] .chiw__connector {
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.02) 100%);
}
[data-theme="light"] .chiw__cta-link {
  border-color: rgba(0,0,0,.1);
  color: rgba(0,0,0,.5);
}
[data-theme="light"] .chiw__cta-link:hover {
  border-color: rgba(0,0,0,.25);
  color: #111;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .chiw { padding: 80px 20px; }
  .chiw__step { grid-template-columns: 48px 1fr; gap: 20px; }
  .chiw__step-number { width: 48px; height: 48px; font-size: 1rem; border-radius: 12px; }
  .chiw__connector { left: 23px; top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .chiw { transition-duration: .01s; }
  .chiw__step { transition-duration: .01s; }
}

/* ── CohereSecurityBanner ────────────────────────────── */
.csec {
  position: relative;
  padding: 120px var(--margin-desktop);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.csec--visible {
  opacity: 1;
  transform: translateY(0);
}

.csec__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.csec__header {
  text-align: center;
  margin-bottom: 56px;
}

.csec__kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(.7rem, .8vw, .85rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.csec__title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.15;
}

.csec__subtitle {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Badge grid ──────────────────────────────── */
.csec__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1px;
  gap: 1px;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  overflow: hidden;
}

.csec__badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  background: rgba(10,10,10,.95);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease 0ms, transform .5s ease 0ms, background .3s ease;
  transition: opacity .5s ease var(--badge-delay, 0ms), transform .5s ease var(--badge-delay, 0ms), background .3s ease;
}
.csec--visible .csec__badge {
  opacity: 1;
  transform: translateY(0);
}
.csec__badge:hover {
  background: rgba(255,255,255,.03);
}

.csec__badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.csec__badge-label {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.csec__badge-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .75rem;
  color: var(--text-tertiary);
  letter-spacing: .02em;
}

/* ── Light theme ──────────────────────────────────── */
[data-theme="light"] .csec__inner {
  border-color: rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
}
[data-theme="light"] .csec__title { color: #111; }
[data-theme="light"] .csec__subtitle { color: rgba(0,0,0,.45); }
[data-theme="light"] .csec__grid { background: rgba(0,0,0,.04); }
[data-theme="light"] .csec__badge { background: rgba(255,255,255,.95); }
[data-theme="light"] .csec__badge:hover { background: rgba(0,0,0,.02); }
[data-theme="light"] .csec__badge-icon {
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.45);
}
[data-theme="light"] .csec__badge-label { color: rgba(0,0,0,.8); }
[data-theme="light"] .csec__badge-desc { color: rgba(0,0,0,.35); }

/* ── Methodology ──────────────────────────────── */
.csec__methodology {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 12px;
  border-left: 3px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.csec__methodology-text {
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
[data-theme="light"] .csec__methodology {
  border-left-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}
[data-theme="light"] .csec__methodology-text { color: rgba(0,0,0,.5); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .csec__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .csec__grid { grid-template-columns: 1fr; }
  .csec__inner { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .csec { transition-duration: .01s; }
  .csec__badge { transition-duration: .01s; }
}

.linkedin-cta {
  padding: clamp(40px, 5vw, 64px) 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, rgba(10, 12, 16, 0.7) 100%);
  border-top: 1px solid var(--grid-lines);
}

.linkedin-cta__container {
  max-width: 1200px;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 2rem;
  padding: 0 var(--margin-desktop, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.linkedin-cta__icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: grid;
  place-items: center;
}

.linkedin-cta__icon {
  width: 28px;
  height: 28px;
  color: #2563eb;
}

.linkedin-cta__content {
  flex: 1 1;
  min-width: 0;
}

.linkedin-cta__title {
  font-family: 'Space Grotesk', sans-serif;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 600;
  color: #f5f5f7;
  color: var(--text-primary, #f5f5f7);
  margin: 0 0 4px;
  line-height: 1.3;
}

.linkedin-cta__desc {
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  color: #a1a1aa;
  color: var(--text-secondary, #a1a1aa);
  margin: 0;
  line-height: 1.5;
}

.linkedin-cta__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: 'Work Sans', sans-serif;
  font-family: var(--font-sans, 'Work Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #0a66c2;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.linkedin-cta__button:hover {
  background: #004182;
  transform: translateY(-1px);
}

.linkedin-cta__button:active {
  transform: translateY(0);
}

.linkedin-cta__btn-icon {
  width: 16px;
  height: 16px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .linkedin-cta__container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 0 1.25rem;
    padding: 0 var(--margin-mobile, 1.25rem);
  }

  .linkedin-cta__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .linkedin-cta__icon {
    width: 24px;
    height: 24px;
  }

  .linkedin-cta__button {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
}

/* Footer estilo Cohere: oscuro, 5 columnas (newsletter + 4 nav), bottom con legal + idioma + redes */

.footer-cohere {
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.72) 0%, rgba(4, 6, 8, 0.78) 100%);
  color: var(--text-secondary);
  padding: clamp(48px, 6vw, 80px) 0 0;
  font-family: var(--font-sans);
  border-top: 1px solid var(--grid-lines);
  position: relative;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.footer-cohere::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.45), transparent);
  opacity: 0.6;
}

.footer-cohere__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

.footer-cohere__top {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  grid-gap: clamp(24px, 4vw, 48px);
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--grid-lines);
}

/* Newsletter */
.footer-cohere__newsletter {
  max-width: 360px;
}

.footer-cohere__newsletter-headline {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cohere__newsletter-title {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.footer-cohere__newsletter-email {
  margin: 0 0 16px;
}

.footer-cohere__contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cohere__contact-email:hover {
  color: var(--accent-blue);
}

.footer-cohere__newsletter-email-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-cohere__newsletter-email-link:hover {
  color: var(--accent-blue);
}

.footer-cohere__newsletter-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.footer-cohere__newsletter-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-cohere__newsletter-link:hover {
  color: var(--accent-blue);
}

.footer-cohere__newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 8px;
  max-width: 320px;
}

.footer-cohere__newsletter-input {
  flex: 1 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.footer-cohere__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-cohere__newsletter-submit {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.footer-cohere__newsletter-submit:hover {
  color: var(--accent-blue);
  transform: translateX(2px);
}

/* Columnas nav */
.footer-cohere__col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

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

.footer-cohere__col-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-cohere__col-list a:hover {
  color: var(--text-primary);
}

/* Bottom */
.footer-cohere__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 clamp(32px, 4vw, 48px);
}

.footer-cohere__logo-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-cohere__logo-wrap:hover {
  opacity: 1;
}
.footer-cohere__logo-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-cohere__copyright {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-cohere__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.footer-cohere__legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cohere__legal a:hover {
  color: var(--text-primary);
}

.footer-cohere__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-cohere__lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-cohere__lang-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 14px;
}

.footer-cohere__lang-chevron {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-cohere__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-cohere__social a {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.footer-cohere__social a:hover {
  color: var(--text-primary);
}

[data-theme="light"] .footer-cohere {
  background: rgba(255, 255, 255, 0.62);
  border-top-color: rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
}

@media (max-width: 1024px) {
  .footer-cohere__top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-cohere__newsletter {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-cohere__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-cohere__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cohere__right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .footer-cohere__top {
    grid-template-columns: 1fr;
  }
}

/* Placeholder para lazy-loaded sections (evita layout shift mínimo) */
.home-below-fold-placeholder {
  min-height: 1px;
}

/* Visible SEO/user-first overview (replaces off-screen block) */
.home-overview {
  padding: clamp(32px, 4vw, 48px) var(--margin-desktop);
  position: relative;
  z-index: 2;
}

.home-overview__inner {
  position: relative;
  overflow: hidden;
  max-width: var(--container-max);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.75) 0%, rgba(6, 8, 10, 0.6) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(20px, 3.2vw, 30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.home-overview__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(var(--accent-violet-rgb), 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 100%, rgba(var(--accent-sky-rgb), 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.home-overview__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 35%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .home-overview__inner {
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.85) 0%, rgba(3, 4, 6, 0.75) 100%);
}

[data-theme="light"] .home-overview__inner {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(248, 250, 252, 0.58) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.home-overview__badgeRow {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.home-overview__badge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  border-color: rgba(var(--accent-blue-rgb), 0.30);
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(var(--accent-blue-rgb), 0.10) 0%, rgba(var(--accent-violet-rgb), 0.06) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.home-overview__title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px 0;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.02em;
}

.home-overview__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.home-overview__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .home-overview__grid {
    grid-template-columns: 1fr;
  }
}

.home-overview__cardLink {
  display: block;
  text-decoration: none;
}

.home-overview__card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(12, 14, 18, 0.6);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-overview__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-blue-rgb), 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

[data-theme="dark"] .home-overview__card {
  background: rgba(8, 10, 14, 0.55);
}

.home-overview__cardLink:hover .home-overview__card {
  transform: translateY(-1px);
  background: rgba(14, 18, 22, 0.78);
  border-color: rgba(var(--accent-blue-rgb), 0.30);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.home-overview__cardLink:hover .home-overview__card::before {
  transform: translateX(120%);
}

[data-theme="dark"] .home-overview__cardLink:hover .home-overview__card {
  background: rgba(10, 12, 16, 0.75);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.home-overview__cardHeader {
  padding: 14px 14px 6px 14px;
}

.home-overview__cardKickerRow {
  display: flex;
  justify-content: flex-start;
}

.home-overview__cardKicker {
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-color: rgba(var(--accent-blue-rgb), 0.30);
  color: var(--text-primary);
  background: rgba(var(--accent-blue-rgb), 0.10);
}

[data-theme="dark"] .home-overview__cardKicker {
  background: rgba(var(--accent-blue-rgb), 0.12);
}

.home-overview__cardTitle {
  margin: 10px 0 0 0;
  color: var(--text-primary);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.home-overview__cardDescription {
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-overview__cardContent {
  padding: 0 10px 12px 10px;
}

.home-overview__cardCta {
  justify-content: space-between;
  width: 100%;
  border: 1px solid rgba(var(--accent-blue-rgb), 0.22);
  background: rgba(var(--accent-blue-rgb), 0.10);
}

[data-theme="dark"] .home-overview__cardCta {
  background: rgba(0, 0, 0, 0.1);
}

.home-overview__links {
  position: relative;
  z-index: 1;
  margin: 14px 0 0 0;
  color: var(--text-secondary);
}

/* Logo xSingular arriba del footer (debajo de xSingular Production Stack) */
.pre-footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: clamp(40px, 5vw, 56px) var(--margin-desktop);
  border-top: 1px solid var(--grid-lines);
  background: transparent;
}
.pre-footer-logo__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.pre-footer-logo__link:hover {
  opacity: 0.85;
}
.pre-footer-logo__text {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}
.pre-footer-logo__word {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pre-footer-logo__nebula {
  position: absolute;
  /* Match header logo nebula proportions relative to font-size (19px):
     right: -18px => -0.947em, width: 70px => 3.684em, height: 40px => 2.105em, blur: 10px => 0.526em */
  right: -0.947em;
  top: 50%;
  width: 3.684em;
  height: 2.105em;
  transform: translateY(-50%) rotate(-30deg);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.38;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse,
    rgba(37, 99, 235, 0.95) 0%,
    rgba(168, 85, 247, 0.70) 34%,
    rgba(34, 211, 238, 0.22) 58%,
    rgba(37, 99, 235, 0) 76%
  );
  filter: blur(0.62em);
  transition: opacity 0.3s ease;
}
.pre-footer-logo__link:hover .pre-footer-logo__nebula {
  opacity: 0.58;
}

@media (prefers-reduced-motion: no-preference) {
  .pre-footer-logo__nebula {
    animation: pre-footer-nebula-pulse 4s ease-in-out infinite;
  }
}

@keyframes pre-footer-nebula-pulse {
  0%, 100% {
    opacity: 0.38;
    transform: translateY(-50%) rotate(-30deg) scale(1);
  }
  50% {
    opacity: 0.50;
    transform: translateY(-50%) rotate(-30deg) scale(1.05);
  }
}
.pre-footer-logo__x-wrapper {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: -0.25em;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}
.pre-footer-logo__x-icon {
  width: 100%;
  height: 100%;
  display: block;
  animation: preFooterXStrykFloat 3s ease-in-out infinite;
}
.pre-footer-logo__x-line {
  transform-origin: center;
}
.pre-footer-logo__x-line-1 {
  animation: preFooterXStrykPulse1 2s ease-in-out infinite;
}
.pre-footer-logo__x-line-2 {
  animation: preFooterXStrykPulse2 2s ease-in-out infinite 0.3s;
}
@keyframes preFooterXStrykFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-1px) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(0deg); }
  75% { transform: translateY(-1px) rotate(1deg); }
}
@keyframes preFooterXStrykPulse1 {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 0.8; transform: translate(0.3px, -0.3px); }
}
@keyframes preFooterXStrykPulse2 {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 0.8; transform: translate(-0.3px, 0.3px); }
}
.pre-footer-logo__rest {
  color: inherit;
  position: relative;
  z-index: 1;
}
.pre-footer-logo__tagline {
  margin: 0;
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
@media (prefers-reduced-motion: reduce) {
  .pre-footer-logo__x-icon,
  .pre-footer-logo__x-line-1,
  .pre-footer-logo__x-line-2 {
    animation: none;
  }
}

/* Home Page - clean titanium surface */
.home-page {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  overflow-x: hidden;
}

/* Asegurar que el footer sea el último elemento */
.home-page .footer:last-child {
  margin-bottom: 0;
}

[data-theme="light"] .home-page { background: transparent; }
[data-theme="dark"] .home-page { background: transparent; }

