/* ============================================================================
   ProgressTerra — Единый CSS-файл
   Структура: FONTS → TOKENS → BASE → LAYOUT → COMPONENTS
   ============================================================================ */


/* === FONTS === */

/* Inter — variable font (400–700) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk — variable font (600–700), latin only */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-v22-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-v22-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* === TOKENS === */

:root {
  /* Colors */
  --color-bg-base: #0A0A0F;
  --color-bg-surface: rgba(18, 18, 31, 0.92);
  --color-bg-surface-solid: #12121F;
  --color-bg-footer: #080810;
  --color-bg-input: rgba(18, 18, 31, 0.6);

  --color-accent-primary: #00C2FF;
  --color-accent-primary-hover: #33CFFF;
  --color-accent-primary-active: #0099CC;
  --color-accent-secondary: #7B61FF;

  --color-text-primary: #F0F0F5;
  --color-text-secondary: #8A8A9A;
  --color-text-on-accent: #0A0A0F;

  --color-border-card: rgba(0, 194, 255, 0.1);
  --color-border-card-hover: rgba(0, 194, 255, 0.3);
  --color-border-input: rgba(255, 255, 255, 0.1);
  --color-border-subtle: rgba(255, 255, 255, 0.06);

  --color-success: #00E676;
  --color-error: #FF4444;
  --color-focus: #00C2FF;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --tracking-heading: -0.02em;
  --leading-body: 1.55;
  --leading-heading: 1.15;

  /* Shadows (Elevated) */
  --shadow-elevated:
    0 1px 2px rgba(0, 194, 255, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.15);

  /* Shadows (Floating) */
  --shadow-floating:
    0 2px 4px rgba(0, 194, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 32px 64px rgba(0, 0, 0, 0.2);

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

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 20px;

  /* Animation */
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --easing-default: ease-out;

  /* Layout */
  --container-max: 1200px;
  --header-height-mobile: 56px;
  --header-height-desktop: 72px;
}


/* === BASE === */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-text-primary);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

h5 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

h6 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration: underline;
    color: var(--color-accent-primary-hover);
  }
}

a:active {
  color: var(--color-accent-primary-active);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

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

@media (min-width: 768px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }
}


/* === LAYOUT === */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__header--center {
  text-align: center;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.2), transparent);
  margin: 0;
  border: none;
}

.neural-bg {
  background-image: radial-gradient(circle 1px at center, rgba(0, 194, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--easing-default),
              transform var(--duration-normal) var(--easing-default);
}

.js-ready .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .container {
    padding: 0 var(--space-xl);
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-2xl);
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}


/* === COMPONENTS === */


/* --- Buttons --- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--duration-fast) var(--easing-default),
              transform var(--duration-fast) var(--easing-default);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 4px 16px rgba(0, 194, 255, 0.3);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--easing-default);
  pointer-events: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--color-accent-primary-hover);
    transform: translateY(-1px);
  }

  .btn-primary:hover::after {
    opacity: 1;
  }
}

.btn-primary:active {
  background: var(--color-accent-primary-active);
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: rgba(0, 194, 255, 0.3);
  color: rgba(10, 10, 15, 0.5);
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: transparent;
  color: var(--color-accent-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid var(--color-accent-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-default),
              border-color var(--duration-fast) var(--easing-default),
              transform var(--duration-fast) var(--easing-default);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: rgba(0, 194, 255, 0.1);
    border-color: var(--color-accent-primary-hover);
  }
}

.btn-secondary:active {
  background: rgba(0, 194, 255, 0.2);
  transform: scale(0.98);
}

.btn-secondary:disabled {
  border-color: rgba(0, 194, 255, 0.3);
  color: rgba(0, 194, 255, 0.3);
  cursor: not-allowed;
}


/* --- Overline & Badge --- */

.overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--color-accent-secondary);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

@media (min-width: 1200px) {
  .overline {
    font-size: 12px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(0, 194, 255, 0.15);
  color: var(--color-accent-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--radius-pill);
}


/* --- Header --- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: transparent;
  transition: background var(--duration-normal) var(--easing-default);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header--scrolled {
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-floating);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img,
.header__logo svg {
  height: calc(var(--header-height-mobile) - 10px);
  width: auto;
  display: block;
  filter: brightness(0) invert(0.94);
}

.header__burger {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  position: relative;
  transition: background var(--duration-fast) var(--easing-default);
}

.header__burger-line::before,
.header__burger-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform var(--duration-fast) var(--easing-default);
}

.header__burger-line::before {
  top: -7px;
}

.header__burger-line::after {
  top: 7px;
}

.header__nav-desktop {
  display: none;
}

.header__cta-desktop {
  display: none;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85vw;
  max-width: 360px;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(12px);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 250ms var(--easing-default);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height-mobile);
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--easing-default);
}

.mobile-nav__overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: 24px;
  padding: 0;
  margin: var(--space-xs) var(--space-sm);
}

.mobile-nav__close:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.mobile-nav__list {
  flex: 1;
  overflow-y: auto;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--space-lg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-nav__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.mobile-nav__cta {
  margin: var(--space-lg);
}

.mobile-nav__cta .btn-primary {
  width: 100%;
}

/* Desktop header */
@media (min-width: 1200px) {
  .header {
    height: var(--header-height-desktop);
    padding: 0;
    justify-content: center;
  }

  .header__inner {
    max-width: var(--container-max);
  }

  .header__logo img,
  .header__logo svg {
    height: calc(var(--header-height-desktop) - 10px);
  }

  .header__burger {
    display: none;
  }

  .header__nav-desktop {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .header__nav-link {
    position: relative;
    padding: 0 var(--space-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: var(--header-height-desktop);
  }

  .header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--color-accent-primary);
    transform: scaleX(0);
    transition: transform var(--duration-fast) var(--easing-default);
  }

  .header__nav-link:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
  }

  @media (hover: hover) and (pointer: fine) {
    .header__nav-link:hover::after {
      transform: scaleX(1);
    }
  }

  .header__cta-desktop {
    display: block;
  }

  .header__cta-desktop .btn-primary {
    height: 40px;
    padding: 0 20px;
  }
}


/* --- Hero --- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-height-mobile) var(--space-md) var(--space-xl);
  overflow: hidden;
  background: var(--color-bg-base);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 16px;
  color: var(--color-text-primary);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-xl);
}

.hero__cta {
  width: 85%;
  max-width: 320px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 12px;
  animation: hero-pulse 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(-45deg);
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (min-width: 1200px) {
  .hero {
    padding: var(--header-height-desktop) 0 var(--space-xl);
    align-items: flex-start;
    text-align: left;
  }

  .hero__bg {
    mask-image: radial-gradient(ellipse 80% 70% at 45% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 45% 50%, black 30%, transparent 70%);
  }

  .hero__content {
    max-width: 55%;
    padding-left: calc((100% - var(--container-max)) / 2);
    margin-left: 0;
  }

  .hero__title {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  }

  .hero__subtitle {
    font-size: 18px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
  }

  .hero__cta {
    width: auto;
    padding: 0 32px;
  }

  .hero__scroll-hint {
    left: calc((100% - var(--container-max)) / 2 + 30px);
    transform: none;
  }
}

/* Stagger animation for hero content */
.hero__title,
.hero__subtitle,
.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-appear 500ms var(--easing-default) forwards;
}

.hero__title {
  animation-delay: 100ms;
}

.hero__subtitle {
  animation-delay: 200ms;
}

.hero__cta {
  animation-delay: 300ms;
}

@keyframes hero-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- Cards --- */

.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--easing-default),
              transform var(--duration-fast) var(--easing-default);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-elevated);
  opacity: 1;
  transition: opacity var(--duration-fast) var(--easing-default);
  pointer-events: none;
  z-index: -1;
}

.card:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: var(--color-border-card-hover);
    transform: translateY(-2px);
  }
}

.card:active {
  transform: translateY(0);
}

.card > picture {
  display: contents;
}

.card__image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.card__content {
  padding: var(--space-lg);
}

.card__title {
  margin-bottom: var(--space-sm);
}

.card__subtitle {
  font-size: 14px;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-primary);
  text-decoration: none;
}

/* Product card (horizontal layout on mobile) */
.card--product {
  display: flex;
  flex-direction: row;
}

.card--product .card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* Case card */
.card--case .card__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.card__metric {
  display: flex;
  flex-direction: column;
}

.card__metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-success);
}

.card__metric-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

@media (min-width: 1200px) {
  .card__image {
    max-height: 240px;
  }

  .card__content {
    padding: var(--space-xl);
  }

  .card--product .card__content {
    padding: var(--space-xl);
  }

  .card--case .card__metrics {
    flex-direction: row;
    gap: var(--space-lg);
  }
}


/* --- Platforms --- */

.platforms {
  position: relative;
}

.platforms__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.platforms__connection {
  display: none;
}

@media (min-width: 768px) {
  .platforms__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .platforms__grid > :last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-lg) / 2);
    justify-self: center;
  }
}

@media (min-width: 1200px) {
  .platforms__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platforms__grid > :last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  .platforms__connection {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed rgba(0, 194, 255, 0.1);
    pointer-events: none;
    z-index: 0;
  }
}


/* --- Products --- */

.products__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}


/* --- Services & Accordion --- */

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

.accordion {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 var(--space-lg);
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.accordion__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
  font-size: 20px;
  transition: transform var(--duration-normal) var(--easing-default);
}

.accordion--open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--easing-default);
}

.accordion__body-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .services__grid .accordion:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-md) / 2);
    justify-self: center;
  }
}

@media (min-width: 1200px) {
  .services__grid {
    gap: var(--space-lg);
  }

  .services__grid .accordion:last-child:nth-child(odd) {
    max-width: calc(50% - var(--space-lg) / 2);
  }

  .accordion {
    border-radius: var(--radius-lg);
  }

  .accordion__body {
    max-height: none;
    overflow: visible;
  }

  .accordion__icon {
    display: none;
  }

  .accordion__trigger {
    cursor: default;
    padding: var(--space-xl) var(--space-xl) var(--space-sm);
  }

  .accordion__body-inner {
    padding: 0 var(--space-xl) var(--space-xl);
    font-size: 16px;
  }

  @media (hover: hover) and (pointer: fine) {
    .accordion {
      transition: border-color var(--duration-fast) var(--easing-default),
                  transform var(--duration-fast) var(--easing-default);
    }

    .accordion:hover {
      border-color: var(--color-border-card-hover);
      transform: translateY(-2px);
    }
  }
}


/* --- Cases --- */

.cases__carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
}

.cases__carousel::-webkit-scrollbar {
  display: none;
}

.cases__item {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.cases__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.cases__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.cases__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: background var(--duration-fast) var(--easing-default),
              width var(--duration-fast) var(--easing-default),
              height var(--duration-fast) var(--easing-default);
}

.cases__dot:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.cases__dot--active::after {
  width: 8px;
  height: 8px;
  background: var(--color-accent-primary);
}

/* Mobile: full image, no crop */
.card--case .card__image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.card__links {
  font-size: 14px;
}

/* Tablet+: horizontal layout, image left */
@media (min-width: 768px) {
  .card--case {
    display: flex;
    flex-direction: row;
  }

  .card--case .card__image {
    width: 40%;
    height: auto;
    min-height: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .card--case .card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .cases__carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .cases__item {
    flex: none;
  }

  .cases__dots {
    display: none;
  }

  .card--case .card__image {
    min-height: 260px;
  }
}


/* --- Company Projects --- */

.company-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.project-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-elevated);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

.project-card__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(123, 97, 255, 0.15);
  color: var(--color-accent-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(123, 97, 255, 0.3);
  margin-bottom: var(--space-lg);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.project-card__image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.project-card__image img:first-child {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.project-card__logo {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.project-card__title {
  margin-bottom: var(--space-sm);
}

.project-card__description {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-card__features {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-card__features li {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  padding-left: var(--space-lg);
  position: relative;
}

.project-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-primary);
}

.project-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card__cta {
  text-decoration: none;
}

.project-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
}

.project-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.project-card__stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent-primary);
  letter-spacing: -0.02em;
}

.project-card__stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.project-card__footnote {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .project-card {
    padding: var(--space-xl);
  }

  .project-card__content {
    flex-direction: row;
    align-items: flex-start;
  }

  .project-card__image {
    width: 40%;
    min-width: 280px;
  }

  .project-card__info {
    flex: 1;
    align-items: flex-start;
  }

  .project-card__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-card__logo {
    height: 28px;
  }
}

@media (min-width: 1200px) {
  .project-card {
    padding: var(--space-2xl);
  }

  .project-card__image {
    width: 38%;
    min-width: 360px;
  }

  .project-card__stat-number {
    font-size: 36px;
  }

  .project-card__description {
    font-size: 16px;
  }

  .project-card__features li {
    font-size: 15px;
  }

  .project-card__logo {
    height: 32px;
  }
}


/* --- Partnership --- */

.partnership {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.partnership__text {
  color: var(--color-text-secondary);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.partnership__cta {
  width: 100%;
}

.partnership__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.partnership__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 255, 0.08);
  animation: ring-pulse 4s ease-in-out infinite;
}

.partnership__ring:nth-child(1) {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  animation-delay: 0s;
}

.partnership__ring:nth-child(2) {
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  animation-delay: 1s;
}

.partnership__ring:nth-child(3) {
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  animation-delay: 2s;
}

@keyframes ring-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.partnership__cta-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
}

.partnership .section__header,
.partnership .partnership__text,
.partnership .partnership__cta {
  position: relative;
  z-index: 1;
}

@media (min-width: 1200px) {
  .partnership__cta {
    width: auto;
    padding: 0 var(--space-xl);
  }

  .partnership__ring:nth-child(1) {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
  }

  .partnership__ring:nth-child(2) {
    width: 500px;
    height: 500px;
    margin: -250px 0 0 -250px;
  }

  .partnership__ring:nth-child(3) {
    width: 700px;
    height: 700px;
    margin: -350px 0 0 -350px;
  }
}


/* --- FAQ --- */

.faq__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.faq__category-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-secondary);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.faq__cta-wrap {
  text-align: center;
  margin-top: var(--space-2xl);
}

.faq .accordion__body-inner a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq .accordion__body-inner a:hover {
  color: var(--color-accent-secondary);
}

/* Desktop: FAQ accordions stay clickable (override services desktop behavior) */
@media (min-width: 1200px) {
  .faq .accordion__body {
    max-height: 0;
    overflow: hidden;
  }

  .faq .accordion--open .accordion__body {
    /* max-height set by JS */
  }

  .faq .accordion__icon {
    display: flex;
  }

  .faq .accordion__trigger {
    cursor: pointer;
    padding: 0 var(--space-lg);
  }

  .faq .accordion__body-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 14px;
  }

  @media (hover: hover) and (pointer: fine) {
    .faq .accordion:hover {
      transform: none;
    }
  }
}


/* --- Contact --- */

.contact__centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  max-width: 560px;
  margin: 0 auto;
}

.contact__subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
}

.contact__email-btn {
  font-size: 18px;
  text-decoration: none;
}


/* --- Footer --- */

.footer {
  background: var(--color-bg-footer);
  padding: var(--space-xl) var(--space-md);
}

.footer__section {
  border-top: 1px solid var(--color-border-subtle);
}

.footer__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.footer__section-title:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.footer__section-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 16px;
  transition: transform var(--duration-normal) var(--easing-default);
}

.footer__section--open .footer__section-icon {
  transform: rotate(45deg);
}

.footer__links {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-normal) var(--easing-default);
}

.footer__section--open .footer__links {
  max-height: 300px;
}

.footer__link {
  display: block;
  height: 40px;
  line-height: 40px;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    color: var(--color-accent-primary);
  }
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
}

.footer__logo {
  height: 24px;
}

.footer__logo-img,
.footer__logo svg {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.54);
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-text-secondary);
}

@media (min-width: 1200px) {
  .footer {
    padding: var(--space-2xl) 0;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
  }

  .footer__section {
    border-top: none;
  }

  .footer__section-title {
    cursor: default;
    height: auto;
    margin-bottom: var(--space-md);
  }

  .footer__section-icon {
    display: none;
  }

  .footer__links {
    max-height: none;
    overflow: visible;
  }

  .footer__bottom {
    max-width: var(--container-max);
    margin: var(--space-xl) auto 0;
    flex-direction: row;
    justify-content: space-between;
  }
}
