/* ==============================================
   ВЕТАИ — Ultra-Premium B2B Website
   Design System: White-first, Apple × Stripe × Linear
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  /* Core Colors */
  --white: #FFFFFF;
  --bg-section: #F7F8FA;
  --bg-subtle: #F2F4F7;
  --text-primary: #0F1728;
  --text-secondary: #4B5565;
  --text-tertiary: #7B8497;
  --border-light: #E5E7EB;
  --border-subtle: #F0F1F3;

  /* Accent Colors — used sparingly */
  --accent-primary: #5B3DF5;
  --accent-primary-hover: #4A2DE0;
  --accent-primary-light: rgba(91, 61, 245, 0.08);
  --accent-primary-glow: rgba(91, 61, 245, 0.15);
  --accent-blue: #2F80ED;
  --accent-blue-light: rgba(47, 128, 237, 0.08);
  --accent-green: #16A34A;
  --accent-green-light: rgba(22, 163, 74, 0.08);

  /* Typography */
  --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-gap: 140px;
  --container-max: 1320px;
  --container-padding: 40px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-mockup: 0 25px 80px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.1);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

::selection {
  background: var(--accent-primary);
  color: var(--white);
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Section Spacing ===== */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-section);
}

.section--subtle {
  background: var(--bg-subtle);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.h4 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
  max-width: 720px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header .subtitle {
  margin-top: 20px;
}

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

.text-center .subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(91, 61, 245, 0.25);
}

.btn--primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 8px 28px rgba(91, 61, 245, 0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}

.btn--secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-primary-light);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 16px;
}

.btn--small {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
  height: 72px;
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav__logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-primary-glow), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.06), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-primary-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero__trust-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__mockup {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mockup);
  transition: transform var(--transition-slow);
}

.hero__mockup:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Floating elements around hero mockup */
.hero__float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.hero__float--1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.hero__float--2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 2s;
}

.hero__float--3 {
  bottom: -10px;
  right: 40px;
  animation-delay: 4s;
}

.hero__float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hero__float-icon--green {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.hero__float-icon--blue {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.hero__float-icon--purple {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== FASIE Top Bar ===== */
.fasie-topbar {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2a52 50%, #0d1b3e 100%);
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.fasie-topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fff 0%, #fff 20%, #0074d9 20%, #0074d9 50%, #d62d20 50%, #d62d20 80%, #fff 80%);
}

.fasie-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.fasie-topbar__link {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.fasie-topbar__link:hover {
  opacity: 0.9;
}

.fasie-topbar__logo-wrap {
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

.fasie-topbar__logo {
  height: 38px;
  width: auto;
}

.fasie-topbar__content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.fasie-topbar__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.fasie-topbar__text strong {
  color: #fff;
  font-weight: 700;
}

.fasie-topbar__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.fasie-topbar__grant {
  font-size: 14px;
  font-weight: 700;
  color: #7ca0ff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.fasie-topbar__arrow {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.fasie-topbar__link:hover .fasie-topbar__arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

/* ===== Social Proof / Trust ===== */
.trust {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.trust__item {
  text-align: center;
}

.trust__value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.trust__label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== About Platform ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-mockup);
}

.about__visual img {
  width: 100%;
}

.about__text .subtitle {
  margin-top: 20px;
  margin-bottom: 32px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.about__feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about__feature-icon--purple {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

.about__feature-icon--blue {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.about__feature-icon--green {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.about__feature p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.about__feature strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Modules Grid ===== */
.modules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.module-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.module-card__icon--purple {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

.module-card__icon--blue {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.module-card__icon--green {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.module-card__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.module-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-card__img {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.module-card__img img {
  width: 100%;
  transition: transform var(--transition-slow);
}

.module-card:hover .module-card__img img {
  transform: scale(1.03);
}

/* ===== Module Cards Large ===== */
.modules__grid-large {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.module-card-large {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.module-card-large:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.module-card-large:nth-child(even) {
  direction: rtl;
}

.module-card-large:nth-child(even) > * {
  direction: ltr;
}

.module-card-large__text {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-card-large__img {
  border-left: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.module-card-large:nth-child(even) .module-card-large__img {
  border-left: none;
  border-right: 1px solid var(--border-subtle);
}

.module-card-large__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.module-card-large:hover .module-card-large__img img {
  transform: scale(1.03);
}

/* ===== Product Gallery ===== */
.gallery {
  overflow: hidden;
}

.gallery__slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
}

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

.gallery__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(300px, 70vw, 900px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-mockup);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.gallery__slide:hover {
  box-shadow: var(--shadow-elevated);
  transform: scale(1.01);
}

.gallery__slide img {
  width: 100%;
  display: block;
}

.gallery__caption {
  padding: 16px 24px;
  background: var(--bg-section);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.gallery__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.gallery__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery__btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-primary-light);
}

/* ===== Roles Section ===== */
.roles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.role-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.role-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.role-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.role-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Differentiators ===== */
.diff__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.diff__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.diff__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.diff__item-marker {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.diff__item-marker svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.diff__item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.diff__item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Timeline / Implementation ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-blue), var(--accent-green));
  border-radius: 1px;
}

.timeline__step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.timeline__marker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline__step:hover .timeline__marker {
  background: var(--accent-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(91, 61, 245, 0.3);
}

.timeline__content h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Team ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--bg-section);
  position: relative;
}

.team-card__avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-primary);
}

.team-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-card__role {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== Team Detailed ===== */
.team-detailed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-detailed__card {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 40px 44px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.team-detailed__card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.team-detailed__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-section);
  flex-shrink: 0;
}

.team-detailed__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-detailed__info {
  flex: 1;
}

.team-detailed__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.team-detailed__position {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.team-detailed__bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 640px;
}

.team-detailed__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ===== News Section ===== */
.news__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  gap: 24px;
  padding: 32px 36px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.news-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.news-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.news-card__day {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.news-card__month {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.news-card__content {
  flex: 1;
}

.news-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.news-card__tag--product {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

.news-card__tag--integration {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.news-card__tag--ai {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
}

.news-card__tag--event {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.news-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Final CTA ===== */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #0F1728, #1a1f3a);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 61, 245, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.1), transparent 70%);
  pointer-events: none;
}

.cta__inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta__inner .h2 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 20px;
}

.cta__inner .subtitle {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 auto 40px;
}

.cta__inner .btn--primary {
  box-shadow: 0 6px 24px rgba(91, 61, 245, 0.4);
}

.cta__inner .btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cta__inner .btn--secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 320px;
}

.footer__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer__grant {
  margin-bottom: 48px;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.footer__grant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d62d20 0%, #d62d20 33%, #0074d9 33%, #0074d9 66%, #d62d20 66%);
}

.footer__grant-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

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

.footer__grant-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

.footer__grant-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.footer__grant-text {
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.footer__grant-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.footer__grant-divider {
  width: 1px;
  height: 20px;
  background: var(--border-light);
  flex-shrink: 0;
}

.footer__grant-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer__grant-arrow {
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.footer__grant-link:hover .footer__grant-arrow {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Demo Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 40, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-section);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

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

.modal__form .btn {
  margin-top: 8px;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --section-gap: 100px;
    --container-padding: 24px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .modules__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles__grid {
    grid-template-columns: 1fr;
  }

  .diff__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .team-detailed__card {
    padding: 32px;
    gap: 28px;
  }

  .team-detailed__avatar {
    width: 100px;
    height: 100px;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
    --container-padding: 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .nav__cta .btn--small {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  .hero__float {
    display: none;
  }

  .fasie-topbar__text {
    display: none;
  }

  .fasie-topbar__divider {
    display: none;
  }

  .fasie-topbar__logo {
    height: 28px;
  }

  .fasie-topbar__logo-wrap {
    padding: 6px 10px;
  }

  .fasie-topbar__link {
    gap: 16px;
    padding: 14px 0;
  }

  .fasie-topbar__grant {
    font-size: 12px;
    white-space: normal;
  }

  .modules__grid {
    grid-template-columns: 1fr;
  }

  .module-card-large {
    grid-template-columns: 1fr;
  }

  .module-card-large:nth-child(even) {
    direction: ltr;
  }

  .module-card-large__text {
    padding: 28px 24px;
  }

  .module-card-large__img {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    max-height: 300px;
  }

  .module-card-large:nth-child(even) .module-card-large__img {
    border-right: none;
    border-top: 1px solid var(--border-subtle);
  }

  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .gallery__slide {
    width: 85vw;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .cta-section {
    padding: 80px 0;
  }

  .team-detailed__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .team-detailed__avatar {
    width: 90px;
    height: 90px;
  }

  .team-detailed__tags {
    justify-content: center;
  }

  .news-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .news-card__date {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 6px 14px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .trust__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .timeline__step {
    gap: 20px;
  }

  .timeline__marker {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .timeline::before {
    left: 20px;
  }
}

/* ===== Utility ===== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-32 { margin-top: 32px; }
.max-w-640 { max-width: 640px; }
.max-w-800 { max-width: 800px; }

/* Mobile responsive styles for footer grant */
@media (max-width: 900px) {
  .footer__grant-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer__grant-divider {
    display: none;
  }
}
@media (max-width: 600px) {
  .footer__grant-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .footer__grant-logo {
    height: 32px;
  }
  .footer__grant-title {
    white-space: normal;
  }
}

/* ===== History Timeline ===== */
.history-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.ht-item {
  display: grid;
  grid-template-columns: 140px 60px 1fr;
  gap: 0;
  position: relative;
  min-height: 80px;
}

.ht-item__left {
  display: flex;
  justify-content: flex-end;
  padding-right: 24px;
  padding-top: 6px;
}

.ht-item__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

.ht-item__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ht-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
}

.ht-item__icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.ht-item__icon--big {
  width: 48px;
  height: 48px;
}

.ht-item__icon--big svg {
  width: 22px;
  height: 22px;
}

.ht-item__line {
  flex: 1;
  width: 2px;
  background: var(--border-light);
  margin: 4px 0;
  min-height: 24px;
}

.ht-item__line--last {
  display: none;
}

.ht-item__right {
  padding: 0 0 48px 24px;
}

.ht-item__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ht-item__tag--research {
  background: rgba(91, 61, 245, 0.08);
  color: var(--accent-primary);
}

.ht-item__tag--event {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.ht-item__tag--partner {
  background: rgba(47, 128, 237, 0.08);
  color: var(--accent-blue);
}

.ht-item__tag--pilot {
  background: rgba(22, 163, 74, 0.08);
  color: var(--accent-green);
}

.ht-item__tag--commercial {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ht-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ht-item__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.ht-item__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.ht-item__link:hover {
  gap: 8px;
  color: var(--accent-primary-hover);
}

/* Type-specific icon colors */
.ht-item--research .ht-item__icon {
  border-color: rgba(91, 61, 245, 0.2);
  background: rgba(91, 61, 245, 0.04);
}
.ht-item--research .ht-item__icon svg { color: var(--accent-primary); }
.ht-item--research .ht-item__line { background: linear-gradient(to bottom, rgba(91, 61, 245, 0.25), var(--border-light)); }

.ht-item--event .ht-item__icon {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}
.ht-item--event .ht-item__icon svg { color: #d97706; }

.ht-item--partner .ht-item__icon {
  border-color: rgba(47, 128, 237, 0.25);
  background: rgba(47, 128, 237, 0.05);
}
.ht-item--partner .ht-item__icon svg { color: var(--accent-blue); }

.ht-item--pilot .ht-item__icon {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.06);
}
.ht-item--pilot .ht-item__icon svg { color: var(--accent-green); }

.ht-item--commercial .ht-item__icon {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.1);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}
.ht-item--commercial .ht-item__icon svg { color: #15803d; }
.ht-item--commercial .ht-item__line { background: linear-gradient(to bottom, rgba(22, 163, 74, 0.3), var(--border-light)); }

/* Milestone item — highlighted */
.ht-item--milestone .ht-item__right {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.04), rgba(22, 163, 74, 0.02));
  border: 1px solid rgba(22, 163, 74, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px 28px 24px;
  margin-bottom: 20px;
  position: relative;
}

.ht-item--milestone .ht-item__right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #16a34a, #22c55e);
  border-radius: 3px 0 0 3px;
}

/* ===== News Filters ===== */
.news-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.news-filter {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-filter:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.news-filter--active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--white);
}

/* ===== News Cards — upgraded with icons ===== */
.news-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.news-card__icon-wrap svg {
  width: 20px;
  height: 20px;
}

.news-card__icon-wrap--product {
  background: var(--accent-primary-light);
}
.news-card__icon-wrap--product svg { stroke: var(--accent-primary); }

.news-card__icon-wrap--integration {
  background: var(--accent-blue-light);
}
.news-card__icon-wrap--integration svg { stroke: var(--accent-blue); }

.news-card__icon-wrap--ai {
  background: rgba(245, 158, 11, 0.08);
}
.news-card__icon-wrap--ai svg { stroke: #d97706; }

.news-card__icon-wrap--event {
  background: var(--accent-green-light);
}
.news-card__icon-wrap--event svg { stroke: var(--accent-green); }

.news-card--hidden {
  display: none !important;
}

/* ===== Responsive History Timeline ===== */
@media (max-width: 768px) {
  .ht-item {
    grid-template-columns: 0 44px 1fr;
  }
  .ht-item__left {
    display: none;
  }
  .ht-item__right {
    padding-bottom: 36px;
  }
  .ht-item__right::after {
    content: attr(data-date);
  }
}

@media (max-width: 480px) {
  .ht-item {
    grid-template-columns: 0 36px 1fr;
  }
  .ht-item__icon {
    width: 36px;
    height: 36px;
  }
  .ht-item__icon svg {
    width: 16px;
    height: 16px;
  }
  .ht-item__title {
    font-size: 15px;
  }
  .news-filters {
    gap: 6px;
  }
  .news-filter {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* ===== ФСИ Grant Items ===== */
.ht-item--fsi .ht-item__icon {
  border-color: rgba(13, 27, 62, 0.3);
  background: rgba(13, 27, 62, 0.06);
}
.ht-item--fsi .ht-item__icon svg { color: #0d1b3e; }
.ht-item--fsi .ht-item__line { background: linear-gradient(to bottom, rgba(13, 27, 62, 0.25), var(--border-light)); }

.ht-item__tag--fsi {
  background: rgba(13, 27, 62, 0.1);
  color: #0d1b3e;
}

.ht-item__fsi-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2a52 100%);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.ht-item__fsi-logo {
  height: 22px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 2px 4px;
}

.ht-item__fsi-badge span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.ht-item__details {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.ht-item__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 13px;
  gap: 12px;
}

.ht-item__detail-row + .ht-item__detail-row {
  border-top: 1px solid var(--border-subtle);
}

.ht-item__detail-label {
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.ht-item__detail-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* ФСИ milestone card */
.ht-item--fsi.ht-item--milestone .ht-item__right {
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.04), rgba(13, 27, 62, 0.02));
  border: 1px solid rgba(13, 27, 62, 0.12);
}

.ht-item--fsi.ht-item--milestone .ht-item__right::before {
  background: linear-gradient(to bottom, #0d1b3e, #1a2a52);
}
