/* ─── LOCAL FONTS ─── */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-v20-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans SC';
    src: url('fonts/noto-sans-sc-v40-chinese-simplified-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans SC';
    src: url('fonts/noto-sans-sc-v40-chinese-simplified-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans SC';
    src: url('fonts/noto-sans-sc-v40-chinese-simplified-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #07111f;
    --glow-blue: #0f2849;
    --text: #eef6ff;
    --muted: #98abc6;
    --line: rgba(170, 205, 255, 0.12);
    --line-strong: rgba(170, 205, 255, 0.22);
    --red: #ff4d2d;
    --blue: #09a7dd;
    --navy: #081321;
    --surface-soft: rgba(11, 23, 40, 0.72);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --radius-xl: 40px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    background:
        radial-gradient(circle at 18% 16%, rgba(9, 167, 221, 0.12), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(255, 77, 45, 0.08), transparent 22%),
        linear-gradient(180deg, var(--bg-main) 0%, #091425 48%, var(--navy) 100%);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
    --nav-height: 84px;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
.btn-primary,
.btn-secondary,
.lang-pill {
    font: inherit;
    cursor: pointer;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* ─── BACKGROUND GRID ─── */
.bg-grid {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

.bg-glow {
    display: none;
}

/* ─── NAVIGATION ─── */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.site-nav.scrolled {
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding: 8px 24px;
  border-radius: 100px;
  pointer-events: auto;
  
  /* Glassmorphism Dark Theme Default */
  background: rgba(7, 17, 31, 0.6);
  border: 1px solid rgba(170, 205, 255, 0.08);
  box-shadow: 
      0 4px 30px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  transition: 
      background 0.3s ease, 
      border-color 0.3s ease, 
      box-shadow 0.3s ease, 
      padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled .nav-inner {
  background: rgba(7, 17, 31, 0.85);
  border-color: rgba(170, 205, 255, 0.15);
  box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 6px 20px;
  min-height: 56px;
}

.logo-link img {
  width: 138px;
  height: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled .logo-link img {
  transform: scale(0.94);
}

/* The menu wrapper is transparent to layout on desktop, so the header row is
   unchanged there. On mobile it becomes the dropdown panel itself. */
.nav-menu,
.nav-menu-inner {
    display: contents;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-links {
  gap: 1rem;
}

.nav-links a {
  font-size: 0.96rem;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-links a {
  color: rgba(241, 245, 249, 0.82);
  position: relative;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2px;
    width: fit-content;
    overflow: hidden;
}

.lang-pill {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.3s ease;
}

.lang-pill[lang="zh-CN"] {
    font-family: "Noto Sans SC", sans-serif;
}

.lang-pill.is-active {
    color: #fff;
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 60px;
    height: 32px;
    background: var(--blue);
    border-radius: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.lang-slider.is-en {
    transform: translateX(60px);
}

/* ─── BUTTONS ─── */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0e315d, #155188);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(7, 28, 59, 0.35);
}

.btn-secondary {
    background: rgba(13, 28, 48, 0.72);
    border-color: var(--line);
    color: var(--text);
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ─── MENU TOGGLE ─── */
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(10, 23, 40, 0.82);
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    background: rgba(238, 246, 255, 0.9);
    transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
    top: 18px;
}

.menu-toggle span:last-child {
    top: 26px;
}

body.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
    padding: 26px 0 26px;
}

.hero-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 960px;
    gap: 40px;
}

.hero-badge {
    display: inline-flex !important;
    align-items: center;
    background: rgba(10, 23, 40, 0.72);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(170, 205, 255, 0.16);
    margin-bottom: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 10;
}

.badge-text {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    font-weight: 700;
    line-height: 1;
}

/* ─── SECTION KICKER ─── */
.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(11, 23, 40, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    color: #ff2400;
}

.section-copy h2 {
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.text-gradient {
    background: linear-gradient(90deg, #ff2600 30%, #00aeef 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
    justify-content: center;
}

.glass-card {
    background: var(--surface-soft);
    border: 1px solid rgba(170, 205, 255, 0.12);
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
}

@keyframes workflow-fade-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ─── SECTIONS ─── */
.section {
    padding: 50px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
    overflow: hidden;
    position: relative;
}

.section-copy h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    margin: 20px 0 14px;
}

.centered-copy {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ─── CONTACT FINALE ─── */
.contact-finale {
    padding: 20px 0;
}

.finale-panel {
    position: relative;
    padding: 100px 40px;
    border-radius: 36px;
    text-align: center;
    overflow: hidden;
    background: rgba(15, 20, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.finale-dynamic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.finale-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.24;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #c084fc 0%, transparent 70%);
    top: -200px;
    left: -150px;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #00f2ea 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
}

.finale-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.gradient-text-shimmer {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #fff 0%, #c084fc 50%, #00f2ea 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.finale-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.finale-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.btn-glow-large {
    display: inline-block;
    padding: 18px 48px;
    font-size: 1.25rem;
    border-radius: 100px;
    background: #fff;
    color: #000;
    font-weight: 700;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-glow-large:hover {
    background: #f8f8f8;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.32);
    transform: translateY(-4px);
}

.contact-info-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.contact-info-row strong {
    color: #fff;
}

/* ─── WECHAT WIDGET ─── */
.wechat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    justify-items: end;
    gap: 12px;
}

.wechat-trigger {
    width: 66px;
    height: 66px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #18c45f, #0fa747);
    box-shadow: 0 18px 36px rgba(15, 167, 71, 0.26);
    display: grid;
    place-items: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.wechat-trigger:hover {
    transform: scale(1.1);
}

.wechat-trigger img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wechat-panel {
    width: min(200px, calc(100vw - 28px));
    padding: 20px;
    border-radius: 28px;
    background: rgba(8, 19, 33, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    position: relative;
    backdrop-filter: blur(6px);
}

.wechat-panel h3 {
    margin: 14px 0;
    font-size: 1.4rem;
    text-align: center;
    /* The panel is white in the light theme, and the heading used to inherit
       the body's near-white colour — invisible against it. */
    color: #1f0e11;
}

.wechat-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(170, 205, 255, 0.1);
    color: var(--text);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr {
    min-height: 150px;
    padding: 14px;
    border-radius: 20px;
    background: var(--text);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 167, 71, 0.2);
    display: grid;
    place-items: center;
}

.wechat-qr img {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

/* ─── SCROLL REVEAL ─── */
.fade-in,
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.active,
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* ─── MARQUEE CLIENTS ─── */
.marquee {
    --marquee-item-width: 128px;
    --marquee-item-height: 72px;
    --marquee-duration: 28s;
    --marquee-total-width: 1024px;
    display: flex;
    align-items: center;
    block-size: calc(var(--marquee-item-height) + 40px);
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(20, 25, 40, 0.3);
    mask-image: linear-gradient(to right,
            hsl(0 0% 0% / 0),
            hsl(0 0% 0% / 1) 12%,
            hsl(0 0% 0% / 1) 88%,
            hsl(0 0% 0% / 0));
}

.marquee--9 {
    --marquee-total-width: 1152px;
    --marquee-duration: 28s;
}

.marquee__item {
    --marquee-item-offset: max(var(--marquee-total-width),
            calc(100% + var(--marquee-total-width)));
    position: absolute;
    inset-inline-start: var(--marquee-item-offset);
    inline-size: var(--marquee-item-width);
    block-size: var(--marquee-item-height);
    padding: 0;
    object-fit: contain;
    object-position: center;
    animation: marquee-go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
    will-change: transform;
}

/* One delay per item: item i starts (9-i) item-widths ahead, so the nine
   logos trail each other by exactly one slot and the loop closes seamlessly. */
.marquee--9 .marquee__item:nth-of-type(1) {
    --marquee-delay: calc(var(--marquee-duration) * (1024 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(2) {
    --marquee-delay: calc(var(--marquee-duration) * (896 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(3) {
    --marquee-delay: calc(var(--marquee-duration) * (768 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(4) {
    --marquee-delay: calc(var(--marquee-duration) * (640 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(5) {
    --marquee-delay: calc(var(--marquee-duration) * (512 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(6) {
    --marquee-delay: calc(var(--marquee-duration) * (384 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(7) {
    --marquee-delay: calc(var(--marquee-duration) * (256 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(8) {
    --marquee-delay: calc(var(--marquee-duration) * (128 / 1152 * -1));
}

.marquee--9 .marquee__item:nth-of-type(9) {
    --marquee-delay: calc(var(--marquee-duration) * -1);
}

@keyframes marquee-go {
    to {
        inset-inline-start: calc(var(--marquee-item-width) * -1);
    }
}

/* ═══════════════════════════════════════════════
   MEDIA QUERIES
═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .fade-in,
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        gap: 12px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .lang-pill {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .logo-link img {
        width: 100px;
    }

    
}

@media (max-width: 1100px) and (min-width: 561px) {
    .hero-shell {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 20px;
    }

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

@media (max-width: 860px) {

    /* `backdrop-filter` (like `transform`) makes .nav-inner a containing block
       for fixed-position descendants. Dropping the filter on mobile lets the
       menu panel resolve against the viewport again; the pill keeps an
       opaque-enough background to stay legible. */
    .nav-inner {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .site-nav.scrolled {
        backdrop-filter: none !important;
        background: rgba(7, 17, 31, 0.98) !important;
    }

    /* Mobile menu: a light dropdown that unfolds under the header bar.
       The bar itself stays visible — it is the anchor the panel hangs from.
       Every rule here is scoped to `body` so it outranks the desktop
       `.nav-menu`/`.nav-inner` rules regardless of source order. */
    body .nav-inner {
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        column-gap: 12px;
        row-gap: 0;
        min-height: 0;
        padding: 10px 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(31, 14, 17, 0.08) !important;
        box-shadow: 0 8px 30px rgba(31, 14, 17, 0.07) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Collapsed to zero height, expanded to its content height when open. */
    body .nav-menu {
        display: block;
        flex-basis: 100%;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body .nav-menu-inner {
        display: block;
    }

    body.menu-open .nav-menu {
        max-height: 420px;
    }

    body .nav-links,
    body .nav-actions {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: auto;
        min-width: 0;
        height: auto;
        background: none;
        border: 0;
        border-left: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        pointer-events: auto;
    }

    body .nav-links {
        gap: 2px;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid rgba(31, 14, 17, 0.08);
    }

    body .nav-actions {
        align-items: flex-start;
        margin-top: 6px;
        padding: 4px 4px 2px;
    }

    /* Menu links read as a left-aligned list, not as centred header chips. */
    .nav-links a {
        align-self: flex-start;
        text-align: left;
    }

    /* The close (X) lives inside .nav-inner. Lift the bar above the open
       menu panel so the X is never painted over by it. */
    body.menu-open .site-nav .nav-inner {
        z-index: 1003;
    }

    body.menu-open .site-nav {
        z-index: 1000;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border: none !important;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 12px 0;
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
        z-index: 1002;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-actions {
        width: 100%;
        max-width: 100%;
    }

    
    
    .hero-actions {
        justify-content: flex-start;
    }

    
    
    
    .marquee {
        --marquee-item-width: 116px;
        --marquee-item-height: 64px;
        --marquee-total-width: 928px;
        --marquee-duration: 26s;
        margin-top: 28px;
        mask-image: linear-gradient(to right,
                hsl(0 0% 0% / 0),
                hsl(0 0% 0% / 1) 8%,
                hsl(0 0% 0% / 1) 92%,
                hsl(0 0% 0% / 0));
    }

}

@media (max-width: 860px) and (min-width: 561px) {
    .hero-badge {
        margin-top: 100px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 40px));
    }

    .hero {
        padding: 10px 0 64px;
    }

    .hero-shell {
        gap: 22px;
    }

    .section {
        padding: 34px 0;
    }

    
    
    .hero-badge {
        padding: 6px 12px;
    }

    .badge-text {
        font-size: 0.95rem;
        letter-spacing: 0.06em;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
    }

    
    
    
    
    .wechat-widget {
        right: 14px;
        bottom: 30px;
    }

    .wechat-trigger {
        width: 58px;
        height: 58px;
    }

    .wechat-trigger img {
        width: 30px;
        height: 30px;
    }

    .gradient-text-shimmer {
        font-size: 2.6rem;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 12px;
    }

    .finale-panel {
        padding: 60px 20px;
    }

    .btn-glow-large {
        width: 100%;
        box-sizing: border-box;
    }

    .marquee {
        --marquee-item-width: 104px;
        --marquee-item-height: 56px;
        --marquee-total-width: 832px;
        --marquee-duration: 24s;
        margin-top: 24px;
        block-size: calc(var(--marquee-item-height) + 28px);
        padding: 14px 0;
    }

    .marquee__item {
        padding: 0;
    }
}

/* ─── LIGHT THEME STYLES ─── */
:root {
    --bg-dark: #ffffff;          /* Основной фон теперь белый */
    --bg-card: #ffffff;          /* Карточки чисто белые */
    --text-main: #1f0e11;        /* Текст — глубокий угольный */
    --text-muted: #1f0e11;       /* Приглушенный текст — тот же черный */
    --blue: #ff2400;             /* Синий акцент заменен на красный */
    --border-color: #1f0e11;     /* Границы теперь черные */
}

html,
body,
main {
    background: #ffffff;
    color: var(--text);
}

body {
    background: #ffffff;
}

.bg-grid,
.bg-glow,
.finale-dynamic-bg {
    display: none !important;
}

.site-nav {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.site-nav.scrolled {
    background: transparent !important;
}

.nav-inner {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(31, 14, 17, 0.06) !important;
    box-shadow: 0 4px 20px rgba(31, 14, 17, 0.04) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.site-nav.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(31, 14, 17, 0.08) !important;
    box-shadow: 0 8px 30px rgba(31, 14, 17, 0.06) !important;
}

.nav-links a {
    color: #1f0e11 !important;
    border-radius: 99px !important;
    position: relative !important;
    padding: 6px 14px !important;
}

.nav-links a:hover {
    color: var(--blue) !important;
    background: rgba(31, 14, 17, 0.05) !important;
}

.nav-links a,
.badge-text,
.contact-info-row strong,
.wechat-close {
    color: #1f0e11;
}

.section-kicker,
.hero-badge,
.lang-switch,
.btn-secondary,
.wechat-panel,
.glass-card,
.finale-panel,
.modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(31, 14, 17, 0.08) !important;
    box-shadow: 0 4px 20px rgba(31, 14, 17, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero,
.section,
.trust-section,
.contact-finale {
    background: #ffffff;
}

.section-copy,
.centered-copy {
    max-width: 900px;
}

.section-copy h2,
.gradient-text-shimmer {
    color: #1f0e11;
    background: none !important;
    -webkit-text-fill-color: initial;
}

.text-gradient {
    background: none;
    color: #1f0e11;
    -webkit-text-fill-color: initial;
}

.section-copy p,
.finale-content p,
.contact-info-row {
    color: #1f0e11 !important;
}

.btn-primary,
.btn-glow-large,
.submit-btn {
    background: #ff2400 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(255, 36, 0, 0.18) !important;
}

.btn-secondary {
    color: #1f0e11 !important;
}

.marquee {
    background: #ffffff;
    border: 1px solid rgba(31, 14, 17, 0.08);
    mask-image: none;
}

.marquee__item {
    filter: none;
}

.wechat-qr {
    background: #ffffff;
    border: 1px solid rgba(31, 14, 17, 0.08);
    box-shadow: none;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(31, 14, 17, 0.08);
    padding: 40px 0;
    font-size: 0.85rem;
    color: #1f0e11;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1f0e11;
}

.footer-brand img {
    width: 104px;
    height: auto;
}

.footer-contact {
    color: #1f0e11;
}

.footer-partner {
    text-align: center;
    color: #1f0e11;
}

#application-modal .modal-overlay {
    background: rgba(31, 14, 17, 0.28);
}

@media (max-width: 992px) {
    
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        flex-direction: column;
    }
}

/* ─── APPLICATION MODAL ─── */
#application-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#application-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 540px;
    padding: 40px;
    background: rgba(13, 28, 48, 0.72);
    border: 1px solid rgba(170, 205, 255, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

#application-modal.is-visible .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, var(--muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(238, 246, 255, 0.8);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(170, 205, 255, 0.12);
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(9, 167, 221, 0.12);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), #0b8dbb);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(9, 167, 221, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(9, 167, 221, 0.3);
}

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

.submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    filter: grayscale(0.5);
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 24px;
        max-width: 100%;
        border-radius: var(--radius-md);
    }
}

/* ─── MOBILE MENU (LIGHT THEME) ─── */
@media (max-width: 860px) {
    .site-nav.scrolled {
        background: transparent !important;
        backdrop-filter: none !important;
    }
    
    .menu-toggle {
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid #1f0e11 !important;
        box-shadow: 0 4px 12px rgba(31, 14, 17, 0.05) !important;
    }
    
    .menu-toggle span {
        background: #1f0e11 !important;
    }
    
    .nav-links,
    .nav-actions {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .nav-links a {
        color: #1f0e11 !important;
        border-bottom: 0 !important;
        border-radius: 12px !important;
        padding: 12px !important;
    }

    .nav-links a:hover {
        color: var(--blue) !important;
        background: rgba(31, 14, 17, 0.04) !important;
    }
    
}

/* ─── HERO REDESIGN ─── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
    background: #ffffff;
}

/* ===== CIRCULAR HERO BG ===== */
.circular-hero-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200vw;
    min-width: 1400px;
    height: 100%;
    margin-top: calc(2.5rem + 10px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.circular-hero-1 {
    position: absolute;
    inset: 0% 0% auto;
    width: 100%;
    height: auto;
    will-change: transform;
    animation: rotate-ccw 25s linear infinite;
}

.circular-hero-2 {
    position: absolute;
    top: calc(17rem - 15px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 120px rgba(255, 36, 0, 0.06);
    will-change: transform;
    animation: rotate-cw 25s linear infinite;
}

.circular-hero-3 {
    position: absolute;
    bottom: 34%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.circural-overlay {
    z-index: 5;
    background: #ffffff;
    width: 100%;
    height: 20%;
    position: absolute;
    inset: auto 0% 0%;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .circular-hero-1,
    .circular-hero-2 {
        animation: none;
    }
}

@media (max-width: 991px) {
    .circular-hero-bg { width: 200vw; min-width: unset; margin-top: 1.5rem; }
    .circular-hero-1 { top: 5rem; }
    .circural-overlay { height: 50%; }
}

@media (max-width: 479px) {
    .circular-hero-1 { top: 2rem; }
    .circular-hero-2 { top: 5rem; }
    .circural-overlay {
        background: transparent;
        background-image: linear-gradient(transparent, #ffffff 30%);
        height: 100%;
    }
}
/* ===== END CIRCULAR HERO ===== */

.hero-ornament {
    position: absolute;
    right: 0;
    width: 60px;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 991px) {
    .hero-ornament { display: none; }
}

.hero .hero-shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 2;
    gap: 0 !important;
    grid-template-columns: unset !important;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 20;
}

.hero-center .hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(255, 36, 0, 0.06) !important;
    border: 1px solid rgba(255, 36, 0, 0.15) !important;
    padding: 8px 20px;
    border-radius: 99px;
    margin: 0 0 32px;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.hero-center .hero-badge:hover {
    background: rgba(255, 36, 0, 0.1) !important;
}

/* Replaces the former inline <svg class="badge-dot"> ring.
   short-logo.svg is wide (134x62), so the height drives the size and the
   width follows at ~29px. Sized down 1.5x from the initial 20px. */
.badge-logo {
    height: 13.3px;
    width: auto;
    display: block;
    transform-origin: center center;
    will-change: transform;
    animation: badge-logo-breathe 1s cubic-bezier(0.25, 0.1, 0.75, 0.9) infinite alternate;
}

/* Was an opacity blink (1 -> 0.3) that made the logo flicker.
   It now eases between its full current size and one 1.5x smaller
   (1 / 1.5 = 0.667), so the badge stays solid and just breathes.

   `alternate` turns the two legs into one continuous motion: exactly one
   second down and one second back up, with no reset in between. The curve
   keeps a non-zero slope at both ends, so the logo no longer comes to a
   full stop at the smallest and largest size. */
@keyframes badge-logo-breathe {
    from { transform: scale(1); }
    to { transform: scale(0.8667); }
}

.hero-center .badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f0e11;
    letter-spacing: 0.5px;
    text-transform: none;
}

.hero-heading {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #1f0e11 !important;
    margin: 15px 0 24px 0 !important;
    letter-spacing: -0.03em !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.hero-accent {
    background: linear-gradient(135deg, #ff2400 0%, #cc1d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
    line-height: 1.7 !important;
    color: rgba(31, 14, 17, 0.6) !important;
    max-width: 620px;
    margin: 0 auto 40px auto !important;
    font-weight: 400 !important;
}

.hero .hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 0;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #ff2400;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 36, 0, 0.25);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 0, 0.35);
    background: #e62000;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: #1f0e11;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(31, 14, 17, 0.15);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-hero-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 14, 17, 0.3);
    background: rgba(31, 14, 17, 0.03);
    box-shadow: 0 4px 12px rgba(31, 14, 17, 0.08);
}

/* ===== CAPTION LINE ===== */
.caption-line-wrapper {
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.caption-line-wrapper.is-vertical {
    z-index: 15;
    flex-flow: column;
    position: relative;
    margin-top: 48px;
}

.caption-line-mask {
    width: 2.5rem;
    height: 1px;
    overflow: hidden;
}

.caption-line-mask.is-vertical {
    width: 1px;
    height: 2.5rem;
}

.caption-line-mask.is-vertical.is-hero {
    height: 4.5rem;
}

.caption-line {
    background-image: linear-gradient(90deg, #fff0, #fff);
    width: 100%;
    height: 100%;
}

.caption-line.is-vertical {
    background-image: linear-gradient(#fff0, #fff);
}

.caption-line.is-vertical.is-hero {
    background-image: linear-gradient(#ffffff00 30%, #ffffff);
}

.caption-dot {
    background-color: #ffffff;
    border-radius: 50%;
    width: 6px;
    height: 6px;
}

/* ===== HERO SCREEN COMPONENT ===== */
.hero-home-screen-component {
    z-index: 10;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    position: relative;
}

.screen-wrapper {
    justify-content: center;
    align-items: flex-start;
    width: 99vw;
    display: flex;
    position: relative;
}

.hero-home-screen-wrapper {
    z-index: 10;
    background-image: linear-gradient(261deg, #ff2400, #ff240033 80%, #ff2400);
    border-radius: 16px;
    width: 70rem;
    max-width: 90vw;
    padding: 4px;
    position: relative;
    overflow: visible;
    clip-path: inset(-9999px 0 0 0 round 16px);
}

.hero-lueur {
    object-fit: contain;
    width: 20%;
    position: static;
    inset: auto -10rem auto auto;
    pointer-events: none;
}

.hero-lueur.is-right {
    transform: rotate(180deg);
}

/* Hero responsive */
@media (max-width: 991px) {
    .screen-wrapper {
        align-items: center;
    }
    .hero-home-screen-wrapper {
        max-width: 95vw;
    }
    .circular-hero-3 {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }
    .hero .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
        width: 100%;
    }
    .hero-home-screen-wrapper {
        width: 100%;
        max-width: 100%;
    }
        .hero-home-screen-wrapper {
        border-radius: 10px;
        padding: 3px;
    }
    .circular-hero-3 {
        width: 90%;
        bottom: 5%;
    }
}

@media (max-width: 479px) {
    .caption-line-mask.is-vertical.is-hero {
        height: 3rem;
    }
        .hero-home-screen-wrapper {
        border-radius: 8px;
        padding: 2px;
    }
    .hero-lueur {
        width: 15%;
    }
}

/* ─── WHY XINKAI SECTION ─── */
.why-section {
    padding: 50px 5%;
    position: relative;
    overflow: hidden;
}

.caption-line-wrapper.is-horizontal {
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.why-section .caption-line {
    background-image: linear-gradient(90deg, transparent, #1f0e11);
}

.why-section .caption-dot {
    background-color: #1f0e11;
}

.why-heading-component {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.caption-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-main-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: transparent;
    margin: 0;
    background: linear-gradient(135deg, #ff2400 0%, #cc1d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.why-description {
    color: #1f0e11;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.why-section .caption-text {
    color: #1f0e11;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
}

.spacer-xlarge {
    width: 100%;
    padding-top: 4rem;
}

.why-grid-component {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 1.25rem;
    grid-row-gap: 1.25rem;
    align-items: start;
}

.why-grid-item {
    border-radius: var(--radius-lg);
    padding: 1px;
}
.why-grid-item:hover {
    transform: translateY(-4px);
}

.border-gradient {
    background-image: linear-gradient(135deg, rgba(255, 77, 45, 0.35), rgba(9, 167, 221, 0.35));
}

.why-grid-item-offset {
    margin-top: 2.5rem;
}

.why-grid-item-inner {
    background: #ffffff;
    border-radius: calc(var(--radius-lg) - 1px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    border: 1px solid rgba(31, 14, 17, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.why-item-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.why-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f0e11;
    letter-spacing: -0.01em;
}

.why-item-text {
    font-size: .9rem;
    line-height: 1.55;
    color: #1f0e11;
    opacity: .7;
}

/* Now real illustrations from img/ rather than inline 48x48 stroke icons.
   Their native aspect ratios differ a lot (0.89 / 0.94 / 1.58 / 1.00), so a
   fixed-height box with object-fit keeps all four cards the same height
   instead of letting each image stretch to its own width. */
.why-item-icon {
    display: block;
    width: 100%;
    height: 150px;
    max-height: 150px;
    object-fit: contain;
    object-position: center center;
    margin-top: auto;
}

@media (max-width: 991px) {
    .why-grid-component {
        grid-template-columns: 1fr 1fr;
    }
    .why-grid-item-offset {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .why-section {
        padding: 40px 5%;
    }
    .why-grid-component {
        grid-template-columns: 1fr;
    }
    .spacer-xlarge {
        padding-top: 2.5rem;
    }
}

@media (max-width: 479px) {
    .why-section {
        padding: 30px 5%;
    }
    .why-grid-item-inner {
        padding: 1.5rem;
    }
}

/* ─── METHODE SECTION ─── */
.methode-section {
    background-color: transparent;
}

.methode-section .padding-global {
    padding-left: 5%;
    padding-right: 5%;
}

.methode-section .padding-section-medium {
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.methode-section .container-large {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.methode-section .w-layout-vflex {
    flex-direction: column;
    align-items: flex-start;
    display: flex;
}

.methode-section .w-layout-grid {
    grid-row-gap: 16px;
    grid-column-gap: 16px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
}

.methode-section .w-inline-block {
    max-width: 100%;
    display: inline-block;
}

.methode-section .w-richtext:before,
.methode-section .w-richtext:after {
    content: " ";
    display: table;
}

.methode-section .w-richtext:after {
    clear: both;
}

.layout353_component {
    grid-column-gap: 5rem;
    grid-row-gap: 4rem;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    align-items: start;
    display: grid;
}

.methode-section .heading-style-h3 {
    white-space: normal;
}

/* The services heading is a long single line; the base heading-style-h3 is
   nowrap, which pushes it past the 48rem column and clips it. */
.nomad-section .heading-style-h3 {
    white-space: normal;
}

.layout353_content-left {
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    flex-flow: column;
    display: flex;
    position: sticky;
    top: 30%;
}

.layout353_content-item {
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    border: 1px solid rgba(31, 14, 17, 0.08);
    background-color: #ffffff;
    border-radius: 16px 0 0 16px;
    flex-flow: column;
    margin-bottom: 0;
    padding: 2rem;
    display: flex;
    width: 75%;
}

.methode-card-wrapper {
    background-image: linear-gradient(315deg, rgba(255, 77, 45, 0.15), rgba(9, 167, 221, 0.12));
    border-radius: 16px;
    margin-bottom: 2.5rem;
    padding: 1px;
    display: flex;
}

.methode-card-wrapper._01 {
    position: sticky;
    top: 30%;
}

.methode-card-wrapper._02 {
    position: sticky;
    top: 32%;
}

.methode-card-wrapper._03 {
    position: sticky;
    top: 34%;
}

.caption-item {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.caption-text {
    color: #1f0e11;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-decoration: none;
}

.caption-line-wrapper {
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.caption-line-wrapper.is-vertical {
    flex-flow: column;
    display: flex;
    align-items: center;
}

.caption-line-mask {
    width: 2.5rem;
    height: 1px;
    overflow: hidden;
}

.caption-line-mask.is-vertical {
    width: 1px;
    height: 2.5rem;
}

.caption-line {
    background-image: linear-gradient(90deg, transparent, #1f0e11);
    width: 100%;
    height: 100%;
}

.caption-line.is-vertical {
    background-image: linear-gradient(transparent, #1f0e11);
}

.caption-dot {
    background-color: #1f0e11;
    border-radius: 50%;
    width: 6px;
    height: 6px;
}

.heading-style-h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: transparent;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff2400 0%, #cc1d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading-style-h5 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f0e11;
    letter-spacing: -0.01em;
    margin: 0;
}

.text-color-light-grey {
    color: #1f0e11;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
    text-decoration: none;
    margin: 0;
}

.button-group {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    display: flex;
}

.button-item {
    text-decoration: none;
    position: relative;
}

.button-wrapper {
    background-image: linear-gradient(0deg, #ff4d2d, #cc1d00);
    border-radius: 150px;
    padding: 2px 1px 1px;
}

.button-inner-hover {
    background-color: #000;
    border-radius: 150px;
    box-shadow: inset 0 -10px 30px rgba(255, 77, 45, 0.8), inset 0 4px 120px rgba(255, 77, 45, 0.12);
    position: relative;
}

.button-text {
    z-index: 10;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    padding: 1.1rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    position: relative;
}

.button-bg-layer {
    background-color: #ff2400;
    border-radius: 150px;
    position: absolute;
    inset: 0%;
}

.heading-methode-wrapper {
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    grid-template-rows: auto;
    grid-template-columns: max-content 1fr;
    grid-auto-columns: 1fr;
    align-items: center;
    display: grid;
}

.methode-number {
    color: transparent;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 77, 45, 0.5);
    background: linear-gradient(135deg, #ff2400, #cc1d00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.methode-rich-text p {
    color: #1f0e11;
    margin-bottom: 1rem;
    font-size: .9rem;
    line-height: 1.55;
    opacity: .7;
}

.methode-rich-text ul {
    color: #1f0e11;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 0;
    font-size: .875rem;
    font-weight: 300;
    list-style-type: none;
}

.methode-rich-text li {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='4' fill='%23ff4d2d'/%3E%3C/svg%3E");
    background-position: 0%;
    background-repeat: no-repeat;
    background-size: auto;
    padding-left: 1.25rem;
}

.methode-rich-text strong {
    color: #1f0e11;
}

@media (max-width: 991px) {
    /* `.methode-section .w-layout-grid` has two classes, so it outranks the
       single-class `.layout353_component` rules above and kept the two-column
       desktop grid on phones — the cards ended up 160px wide and 940px tall.
       It has to be named here as well or the mobile layout never collapses. */
    .layout353_component,
    .methode-section .w-layout-grid {
        grid-column-gap: 3rem;
        grid-row-gap: 3rem;
        grid-template-rows: auto;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        min-height: auto;
    }

    .layout353_content-left,
    .methode-card-wrapper._01,
    .methode-card-wrapper._02,
    .methode-card-wrapper._03 {
        position: static;
    }

    /* On a phone the card fills the column, so the 75% inner panel left a
       stray gradient stripe down the right-hand side of every card. */
    .methode-section .layout353_content-item {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .layout353_component {
        grid-row-gap: 3rem;
        grid-template-columns: 1fr;
    }

    .layout353_content-left {
        position: static;
    }

    .layout353_content-item {
        padding: 1.5rem;
    }

    .heading-methode-wrapper {
        grid-template-columns: 1fr;
    }

    .methode-number {
        text-align: center;
        font-size: 2.5rem;
    }

    .heading-style-h3 {
        font-size: 2rem;
    }

    .heading-style-h5 {
        font-size: 1.25rem;
    }

    .padding-section-medium {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 479px) {
    .layout353_component {
        grid-template-columns: 1fr;
    }
}

/* ─── NEW SECTIONS (yeldra-style) ─── */

/* Utility */

.padding-global {
    padding-left: 5%;
    padding-right: 5%;
}
.padding-section-medium {
    padding-bottom: 5rem;
}
.container-large {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}
.max-width-large {
    width: 100%;
    max-width: 48rem;
}
.max-width-medium {
    width: 100%;
}
.max-width-medium.is-min {
    max-width: 37rem;
    margin-inline: auto;
    text-align: center;
}

/* The shared .text-color-light-grey utility sets `text-align: left`, which
   overrode the centred heading wrapper. Scoped here so the other sections
   that rely on the left-aligned utility are untouched. */
.max-width-medium.is-min .text-color-light-grey {
    text-align: center;
}

/* ─── FOR-WHO SECTION ─── */
.content-center-heading-wrapper {
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    text-align: center;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}
.content-center-heading-top-wrapper,
.vertical-caption-item {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

/* ─── NOMAD SECTION ─── */
.nomad-section {
    padding: 0;
}
.nomad-component {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4rem;
}
.nomad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    align-items: stretch;
}
.nomad-item {
    border-radius: 16px;
    padding: 1px;
    background-image: linear-gradient(135deg, rgba(255, 77, 45, 0.25), rgba(9, 167, 221, 0.25));
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nomad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.nomad-item-inner {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    border: 1px solid rgba(31, 14, 17, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.nomad-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 36, 0, 0.12), rgba(9, 167, 221, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff2400;
    flex-shrink: 0;
}
.nomad-card-icon svg {
    width: 22px;
    height: 22px;
}
.nomad-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f0e11;
    margin: 0;
    letter-spacing: -0.01em;
}
.nomad-card-text {
    color: rgba(31, 14, 17, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ─── NEW SECTIONS MEDIA QUERIES ─── */
@media (max-width: 991px) {
                .heading-style-h3 { font-size: 2.25rem; }
    .padding-section-medium { padding-top: 4rem; padding-bottom: 4rem; }
            .spacer-xlarge { padding-top: 3.5rem; }

                        .nomad-grid { grid-template-columns: repeat(2, 1fr); }
    .nomad-component { gap: 3rem; }
                                    }

@media (max-width: 767px) {
        .heading-style-h5 { font-size: 1.25rem; }
            .heading-style-h3 { font-size: 2rem; }
    .padding-section-medium { padding-top: 3rem; padding-bottom: 3rem; }
            
                        .nomad-grid { grid-template-columns: 1fr; }
    .nomad-item-inner { padding: 1.5rem; }
                                    }

@media (max-width: 479px) {
    .heading-style-h5 { font-size: 1.5rem; }
        
                }

/* ─── Expertise section (#expertise) ───
   Three sub-blocks (partners / coverage / tech) share a single vertical
   rhythm and one centred measure, so the section reads as one unit instead
   of three stacked islands. */

.geo-block,
.skills-block {
    margin-top: 3.5rem;
}

/* The `margin: 0 auto` shorthand here reset the 40px bottom margin that
   .centered-copy defines, so every heading in the section ended up jammed
   against the block below it and the two grids sat at different distances
   (36px vs 24px). One bottom margin, one distance everywhere. */
#expertise .section-copy {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

/* Every block of the section gets the same 3.5rem top rhythm — including
   the standalone partners heading, which is a direct child of the container
   and was previously sitting with no gap at all under the coverage block. */
#expertise .container > .section-copy {
    margin-top: 3.5rem;
}

/* The first block sits flush against the section's own padding instead of
   adding a second gap on top of it. Declared after the rule above so it
   wins on the partners heading when that block comes first. */
#expertise .container > *:first-child {
    margin-top: 0;
}

/* Heading to grid is one distance, taken from the heading's bottom margin. */
#expertise .geo-grid {
    margin-top: 0;
}

#expertise .section-copy h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 14px 0 0;
}

/* The heading block hands its spacing to the lead paragraph, so the lead can
   sit exactly halfway between the heading and the grid below it. */
#expertise .skills-block .centered-copy,
#expertise .geo-block .centered-copy {
    margin-bottom: 0;
}

/* Overline + heading + lead paragraph all sit on the same measure. */
#expertise .expertise-lead {
    max-width: 700px;
    margin: 24px auto;
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: center;
}

/* Countries: sized like proper tiles, on a fixed 4-column grid so the two rows
   stay exactly even (4 + 4). A flex-wrap row gave ragged widths and could leave
   a single orphan on its own line; a grid guarantees full rows at every
   breakpoint, since 8 items always divide evenly by 4, 2 and 1. */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.geo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(9, 167, 221, 0.07);
    border: 1px solid rgba(9, 167, 221, 0.18);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.geo-item:hover {
    background: rgba(9, 167, 221, 0.13);
    border-color: rgba(9, 167, 221, 0.32);
    transform: translateY(-2px);
}

.geo-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.geo-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1f0e11;
    white-space: nowrap;
}

/* ─── CAPABILITY GRID ───
   The old block was one flat row of identical chips, which gave the section no
   hierarchy at all. The twelve standards are now grouped into four named
   capability cards, so each row of chips reads as a coherent discipline. */
#expertise .capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

#expertise .capability-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(31, 14, 17, 0.08);
    border-radius: 18px;
    padding: 1.5rem 1.45rem 1.4rem;
    box-shadow: 0 1px 2px rgba(31, 14, 17, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#expertise .capability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 36, 0, 0.26);
    box-shadow: 0 12px 30px rgba(31, 14, 17, 0.07);
}

#expertise .capability-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

#expertise .capability-dot {
    flex: none;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff2400, #ff8566);
}

#expertise .capability-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #1f0e11;
}

#expertise .capability-desc {
    margin: 0 0 1.15rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(31, 14, 17, 0.58);
}

/* Tags sit right under the description rather than pinned to the card floor:
   the groups hold different numbers of standards, and bottom-aligning them
   left an empty void in the middle of the shorter cards. */
#expertise .capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#expertise .capability-tag {
    display: inline-block;
    background: #ff2400;
    border: 1px solid #ff2400;
    border-radius: 150px;
    padding: 0.36rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#expertise .capability-card:hover .capability-tag {
    background: #1f0e11;
    border-color: #1f0e11;
}

@media (max-width: 760px) {
    #expertise .capability-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .geo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .geo-grid {
        gap: 9px;
    }

    .geo-item {
        padding: 11px 14px;
        border-radius: 15px;
    }

    .geo-flag {
        font-size: 1.3rem;
    }

    .geo-name {
        font-size: 0.84rem;
    }
}

/* ═══════════════════════════════════════════════
   VS CODE HERO WINDOW  (from hero-animation-screen/)
   Styles for <body> and .hero intentionally omitted.
   box-sizing comes from the global reset above.
   ═══════════════════════════════════════════════ */
.vscode-window {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    border: 1px solid #e1e4e8;
    text-align: left;
    width: 100%;
    max-width: 650px;
}

.vscode-titlebar {
    background: #f3f3f3;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e4e8;
}

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

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.vscode-tabs {
    display: flex;
    margin-left: 15px;
    gap: 2px;
}

.vscode-tab {
    background: #ececec;
    padding: 5px 12px;
    border-radius: 4px 4px 0 0;
    color: #616161;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.vscode-tab.active {
    background: #ffffff;
    color: #1e1e1e;
    border-top: 2px solid #007acc;
}

.vscode-body {
    display: flex;
    background: #ffffff;
    min-height: 220px;
}

.vscode-sidebar {
    width: 160px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid #e1e4e8;
    padding: 10px 0;
    color: #586069;
    font-size: 11px;
}

.sidebar-title {
    padding: 0 12px 6px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #6a737d;
}

.tree-item {
    padding: 4px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item.active {
    background: #e8eaed;
    color: #032f62;
    font-weight: 500;
}

.vscode-editor {
    display: flex;
    padding: 12px;
    /* Fixed height (not min/max): the snippet is 25 lines, so a max-height would
       still let the box grow 0 -> 380px while typing — exactly the jitter this
       replaces. A fixed height keeps the window still from the first frame. */
    height: 380px;
    overflow: hidden;
    background: #ffffff;
    flex-grow: 1;
    position: relative;
    /* Fade the code out towards the bottom so the clipped tail reads as
       "more below" instead of a hard cut. */
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.line-numbers,
.code-content {
    margin: 0;
    /* `font` must come first: the shorthand resets line-height to `normal`,
       which varies with content and makes the window jump while typing. */
    font: inherit;
    line-height: 1.6;
}

.line-numbers {
    color: #a0a4a8;
    padding-right: 15px;
    user-select: none;
    text-align: right;
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 1;
}

.code-content {
    color: #24292e;
    white-space: pre;
}

/* Подсветка синтаксиса в стиле Light+ */
.keyword {
    color: #d73a49;
    font-weight: bold;
}

.string {
    color: #032f62;
}

.type {
    color: #005cc5;
}

.function {
    color: #6f42c1;
}

.number {
    color: #005cc5;
}

.comment {
    color: #6a737d;
    font-style: italic;
}

.typing-cursor {
    display: inline-block;
    width: 7px;
    height: 1.15em;
    background-color: #007acc;
    vertical-align: text-bottom;
}

.vscode-window.typing .typing-cursor {
    animation: vscode-cursor-blink 1s step-end infinite;
}

@keyframes vscode-cursor-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Status bar uses the site accent (#ff2400) instead of the VS Code blue. */
.vscode-statusbar {
    background: #ff2400;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Was the VS Code green (#28a745): green on the new red bar had almost no
   contrast. Inverted to white-on-red so the status chip stays legible. */
.status-item.success {
    background: #ffffff;
    color: #ff2400;
    padding: 0 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* ─── Integration with the existing hero screen frame ───
   The frame is a fixed 70rem track sized for the old SVG.
   Let it hug the window instead, and drop the white fade
   that would otherwise wash out the code and status bar.
   880px fits the longest line (77 chars @13px monospace) plus the
   line-number gutter, sidebar and padding, so the editor never
   scrolls sideways. */
.hero-home-screen-wrapper.is-window {
    width: min(100%, 880px);
    max-width: 94vw;
}

/* The replaced <img class="hero-home-screen"> carried `position: relative;
   z-index: 2` so it sat above .circular-hero-3 (z-index: 1).
   The <div> needs the same stacking or the ring paints over the code. */
.hero-home-screen-wrapper.is-window .vscode-window {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

/* .circular-hero-3 is the dark arch that framed the original screen mockup.
   Restored as a backdrop behind the editor: z-index 1 keeps it under the
   window (z-index 2), and a negative `top` lifts it so the arch shoulders
   frame the top of the editor instead of hiding behind it.
   `bottom: 34%` (base rule) is expressed against the wrapper height, which
   changed once the window grew, so the offset is pinned with `top` instead.
   Desktop decoration only — see the 1099px block below. */
.hero-home-screen-wrapper.is-window .circular-hero-3 {
    display: block;
    top: -61px;
    bottom: auto;
    width: 88%;
    z-index: 1;
}

/* The hero is a flex column: without an explicit order the code window
   would be hoisted above the headline on tablet and mobile. */
.hero-home-screen-component {
    order: 3;
}

/* ─── Responsive ─── */

/* The dark arch is a desktop-only flourish: below 1100px the hero is already
   tight, so drop it entirely. */
@media (max-width: 1099px) {
    .hero-home-screen-wrapper.is-window .circular-hero-3 {
        display: none;
    }
}

@media (max-width: 768px) {
    .vscode-sidebar {
        display: none;
    }

    .hero-home-screen-wrapper.is-window {
        max-width: 94vw;
    }

    /* Keep the editor compact on tablets and phones. */
    .vscode-editor {
        height: 300px;
    }
}

@media (max-width: 560px) {
    .vscode-window {
        font-size: 11px;
    }

    .vscode-tab:not(.active) {
        display: none;
    }

    .vscode-tabs {
        margin-left: 10px;
    }

    .vscode-statusbar {
        font-size: 10px;
        gap: 8px;
    }

    .vscode-editor {
        height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vscode-window.typing .typing-cursor {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════
   REQUEST MODAL — light theme
   The modal card was switched to white by the light-theme pass, but the
   inputs, labels, heading and close button kept their dark-theme colours
   (white text on white). Restyled here for the light site.
   ═══════════════════════════════════════════════ */
#application-modal .modal-overlay {
    background: rgba(20, 16, 18, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#application-modal .modal-content {
    background: #ffffff;
    border: 1px solid rgba(31, 14, 17, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(31, 14, 17, 0.16);
    padding: 36px;
}

/* The base rule painted a white gradient through -webkit-text-fill-color,
   which is invisible on a white card. */
#application-modal .modal-content h2 {
    color: #1f0e11;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

#application-modal .modal-content p {
    color: rgba(31, 14, 17, 0.62);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 24px;
}

#application-modal .form-group {
    margin-bottom: 16px;
}

#application-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(31, 14, 17, 0.75);
}

#application-modal .form-input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f0e11;
    background: #ffffff;
    border: 1px solid rgba(31, 14, 17, 0.14);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#application-modal .form-input:focus {
    background: #ffffff;
    border-color: #ff2400;
    box-shadow: 0 0 0 3px rgba(255, 36, 0, 0.12);
}

#application-modal .form-input::placeholder {
    color: rgba(31, 14, 17, 0.35);
}

#application-modal textarea.form-input {
    min-height: 108px;
    resize: vertical;
}

#application-modal .submit-btn {
    width: 100%;
    margin-top: 4px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #ff2400;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#application-modal .submit-btn:hover {
    background: #e01f00;
    transform: none;
    box-shadow: none;
}

#application-modal .submit-btn:active {
    transform: none;
}

#application-modal .submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

#application-modal .modal-close {
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    color: rgba(31, 14, 17, 0.55);
    background: rgba(31, 14, 17, 0.04);
    border: 1px solid rgba(31, 14, 17, 0.08);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

#application-modal .modal-close:hover {
    background: rgba(31, 14, 17, 0.08);
    color: #1f0e11;
    transform: none;
}

#application-modal .form-success h2 {
    color: #1f0e11;
    font-size: 1.4rem;
    margin: 12px 0 6px;
}

#application-modal .form-success p {
    color: rgba(31, 14, 17, 0.62);
    margin: 0 0 4px;
}

@media (max-width: 560px) {
    #application-modal .modal-content {
        padding: 28px 22px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE / SMALL-SCREEN FIXES
   ═══════════════════════════════════════════════════════════════ */

/* The vertical caption in the hero is a desktop decoration: its line is a
   white gradient (invisible against the light background) and on phones it
   ran straight into the code window. The dot goes with it. */
@media (max-width: 767px) {
    .hero-center .caption-line-wrapper {
        display: none;
    }
}

/* The brand badge is a decorative strip that, on a phone, pushed the headline
   down without telling the visitor anything new. Removing it frees the space
   and lets the rest of the hero start higher. */
@media (max-width: 767px) {
    .hero-center .hero-badge {
        display: none !important;
    }

    /* The badge was also what kept the headline clear of the fixed nav, so
       part of the freed space goes back as breathing room. */
    .hero {
        padding-top: 104px;
    }
}

/* The subtitle carried a 40px bottom margin and the buttons a 28px top
   margin, which added up to 68px of dead air between them on phones. */
@media (max-width: 768px) {
    .hero .hero-subtitle {
        margin-bottom: 0 !important;
    }

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

    /* …and the code window sat too far below the buttons. */
    .hero-home-screen-component {
        margin-top: 24px;
    }
}

/* The hero slides up 30px as it fades in. On a phone that shift pushed the
   buttons down into the code window, which sits right behind them. */
@media (max-width: 767px) {
    .hero-center.fade-in {
        transform: none;
    }
}

/* The why-us headline is one long line on desktop, so it carries
   `white-space: nowrap` — on phones that clipped the tail off instead of
   wrapping. */
@media (max-width: 767px) {
    .why-main-title {
        white-space: normal;
    }
}

/* Chinese line breaking: a trailing line of one or two characters reads as
   broken. `text-wrap: balance` evens the lines out; Chrome's `pretty` does
   nothing for CJK, so balance is the one that actually works.

   `balance` is capped at a handful of lines by Chrome, which is exactly the
   range where a one-character tail can appear. */
@media (max-width: 767px) {
    .hero-heading,
    .hero-subtitle,
    .why-main-title,
    .why-description,
    .why-item-title,
    .why-item-text,
    .nomad-card-title,
    .nomad-card-text,
    .methode-rich-text li,
    .heading-style-h5,
    .nomad-section .heading-style-h3,
    .nomad-section .text-color-light-grey,
    .methode-section .heading-style-h3,
    .methode-section .text-color-light-grey,
    .expertise-lead,
    .capability-title,
    .capability-desc,
    .section-copy h2,
    .section-copy p,
    .finale-content p,
    .gradient-text-shimmer,
    #application-modal h2,
    #application-modal p,
    #application-modal li {
        text-wrap: balance;
    }
}

/* ─── MOBILE SECTION SPACING ───
   The vertical caption line that opens a section is a small decorative dash.
   Its 48px top margin was tuned for the desktop row layout, where it merely
   offsets the dash next to the headline; on phones the caption and the
   headline stack, so the same margin became a 48px empty band before the
   section title. */
@media (max-width: 767px) {
    .caption-line-wrapper.is-vertical {
        margin-top: 20px;
    }
}

/* The gap in front of "合作流程" is the previous section's bottom padding
   (48px) plus this section's own top padding (64px) — 112px on a phone
   against 144px on desktop. Cutting the section's own padding to 30px brings
   the visible gap to 78px, a 30% reduction. */
@media (max-width: 767px) {
    #methode .padding-section-medium {
        padding-top: 30px;
    }
}

/* The gap in front of "标准与协议" was 80px on a phone. Lifting the section
   by 20% of that offset means trimming 16px off the section's top padding. */
@media (max-width: 560px) {
    #expertise {
        padding-top: 18px;
    }
}
