/* DVAi Design System & Styles */
:root {
  --color-primary: #0065A8;
  --color-primary-hover: #005ee9;
  --color-accent: #44CDBA;
  --color-text: #333333;
  --color-text-light: #838383;
  --color-text-dark: #000000;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f8;
  --color-border: #e5eaee;
  --color-danger: #c2372b;
  --color-success: #0a8a3a;
  --font-family: 'Inter', Arial, sans-serif;
  --max-width: 1200px;
  /* Typography scale */
  --fs-h1: 52px;    /* Section main title */
  --fs-h2: 42px;    /* Section title */
  --fs-h2-sm: 32px; /* Section title — tablet/mobile */
  --fs-display: 28px; /* Quote, feature card title, popup title */
  --fs-h3: 22px;    /* Card title */
  --fs-h4: 16px;    /* Subtitle / strong text */
  --fs-body: 16px;  /* Body text */
  --fs-small: 14px; /* Secondary text */
  --fs-tiny: 13px;  /* Caption */
}

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

html, body { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.15; color: var(--color-text-dark); }
h1 { font-size: var(--fs-h1); letter-spacing: -1.5px; }
h2 { font-size: var(--fs-h2); letter-spacing: -1px; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.3px; font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.section-header h2 { margin: 0; max-width: 680px; }
.section-header p { font-size: 16px; font-weight: 400; color: var(--color-text); max-width: 450px; line-height: 1.55; margin: 0; text-align: left; }

/* ===== HEADER / NAV ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#header.scrolled { border-bottom-color: var(--color-border); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: block; }
.logo img { width: 88px; height: auto; }
.nav-list { display: flex; gap: 28px; align-items: center; }
.nav-link { font-size: 14px; color: var(--color-text); font-weight: 400; transition: color 0.2s; }
.nav-link:hover { color: var(--color-primary); }

.header-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 24px; border: 1px solid var(--color-text-dark); border-radius: 5px; font-size: 14px; font-weight: 500; color: var(--color-text-dark); background: none; cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--color-text-dark); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: #000; transition: all 0.3s; display: block; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: #111; z-index: 998; padding: 40px 20px;
  flex-direction: column; gap: 24px; overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu .nav-link { color: #fff; font-size: var(--fs-h3); font-weight: 500; }
.mobile-menu .nav-link:hover { color: var(--color-accent); }

/* ===== HERO ===== */
#hero {
  padding-top: 64px;
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
  height: 100vh;
  display: flex;
  align-items: stretch;
}
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.hero-top { position: relative; z-index: 2; max-width: 660px; padding-top: 60px; }
.hero-headline { font-size: clamp(36px, 3.8vw, 48px); font-weight: 500; color: var(--color-text-dark); letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 0; }
.hero-danger { text-decoration: underline; text-decoration-color: #e74c3c; text-underline-offset: 4px; text-decoration-thickness: 3px; }
.hero-headline .typed-word { color: var(--color-text-dark); }
.typed-cursor { display: inline; margin-left: 2px; animation: blink 1s infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

.hero-sub { font-size: var(--fs-small); color: var(--color-text-light); line-height: 1.65; max-width: 540px; margin-top: 20px; }
.hero-image { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 100%; z-index: 1; pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; z-index: 2; margin-top: auto; padding-bottom: 40px; }
.stat-item { display: flex; flex-direction: column; padding: 20px 0 0; text-align: left; border-top: 1px solid var(--color-text-dark); }
.stat-value { font-size: 42px; font-weight: 700; color: var(--color-text-dark); line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 16px; color: var(--color-text-dark); margin-top: 10px; line-height: 1.45; }

/* ===== INTRO ===== */
#intro { background: linear-gradient(to bottom, var(--color-bg) 90%, #001320 90%); padding: 0; position: relative; z-index: 2; }
.intro-text { font-size: 32px; font-weight: 400; line-height: 1.35; color: var(--color-text-dark); max-width: 1160px; margin-bottom: 80px; }
.intro-text em { font-style: normal; color: var(--color-primary); }
.intro-macbook { display: flex; justify-content: center; padding: 0 5%; margin-bottom: 0; position: relative; z-index: 3; }
.intro-macbook img { width: 90%; max-width: 1200px; height: auto; display: block; position: relative; z-index: 3; margin-bottom: -50px; }

/* ===== MASKING DEMO ===== */
#masking { background: #001320; color: #fff; padding: 80px 0 0; }
.masking-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
.masking-title { font-size: var(--fs-h1); font-weight: 500; color: #fff; letter-spacing: -1.5px; line-height: 1.15; margin: 0; flex-shrink: 0; }
.masking-sub { font-size: var(--fs-small); color: rgba(255,255,255,0.7); line-height: 1.65; max-width: 360px; padding-top: 8px; }

.masking-cta-bar { background: #001320; padding: 32px 0 48px; }
.masking-cta-inner { display: flex; align-items: center; gap: 16px; background: var(--color-primary); border-radius: 8px; padding: 20px 28px; }
.masking-cta-icon { font-size: var(--fs-h3); color: #fff; flex-shrink: 0; }
.masking-cta-text { font-size: 16px; color: #fff; font-weight: 500; flex: 1; }
.masking-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 28px; background: #fff; color: var(--color-text-dark); border: none; border-radius: 5px; font-weight: 500; font-size: 14px; cursor: pointer; transition: background 0.2s; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.masking-cta:hover { background: #f0f0f0; color: var(--color-text-dark); }

/* ===== ЧТО ЗАЩИЩАЕМ ===== */
#what-we-protect { background: #001320; overflow: hidden; }
.wwp-inner { padding: 60px 0 70px; }
.wwp-title { font-size: var(--fs-h2); font-weight: 500; color: #fff; letter-spacing: -1px; margin: 0 0 36px; padding: 0 20px; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.wwp-marquee { width: 100%; overflow: hidden; }
.wwp-track { display: flex; gap: 14px; animation: wwp-scroll 30s linear infinite; width: max-content; }
.wwp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 40px; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; flex-shrink: 0; border: none; }
.wwp-chip:nth-child(10n+1) { background: #1a6b5a; }
.wwp-chip:nth-child(10n+2) { background: #2a5a9f; }
.wwp-chip:nth-child(10n+3) { background: #1a6b5a; }
.wwp-chip:nth-child(10n+4) { background: #2a5a9f; }
.wwp-chip:nth-child(10n+5) { background: rgba(255,255,255,0.12); }
.wwp-chip:nth-child(10n+6) { background: #2a5a9f; }
.wwp-chip:nth-child(10n+7) { background: #1a6b5a; }
.wwp-chip:nth-child(10n+8) { background: rgba(255,255,255,0.12); }
.wwp-chip:nth-child(10n+9) { background: #2a5a9f; }
.wwp-chip:nth-child(10n+10) { background: #1a6b5a; }
.wwp-chip svg { flex-shrink: 0; stroke: currentColor; }
@keyframes wwp-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== EFFICIENCY STAT ===== */
#efficiency { background: #fff; padding: 80px 0; }
.eff-row { display: flex; align-items: center; gap: 60px; }
.eff-left { display: flex; align-items: baseline; position: relative; }
.eff-prefix { font-size: 42px; font-weight: 700; -webkit-text-stroke: 1.5px #a8d4f0; -webkit-text-fill-color: transparent; color: transparent; margin-right: 12px; position: relative; }
.eff-prefix-fill { position: absolute; left: 0; top: 0; font-size: inherit; font-weight: inherit; color: #0065A8; -webkit-text-stroke: 0; -webkit-text-fill-color: #0065A8; clip-path: inset(100% 0 0 0); }
.eff-number {
  font-size: 150px; font-weight: 700; line-height: 1;
  -webkit-text-stroke: 1.5px #a8d4f0;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}
.eff-number-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  font-size: inherit; font-weight: inherit; line-height: inherit;
  color: #0065A8; -webkit-text-stroke: 0; -webkit-text-fill-color: #0065A8;
  clip-path: inset(100% 0 0 0);
}
.eff-arrow { width: 40px; height: auto; margin-left: 8px; align-self: flex-start; margin-top: 10px; }
.eff-right { flex: 1; }
.eff-desc { font-size: var(--fs-h2); font-weight: 500; color: var(--color-text-dark); line-height: 1.2; letter-spacing: -1px; }
.eff-highlight { color: #0065A8; }

/* ===== QUOTE ===== */
#quote { background: #fff; padding: 60px 0 80px; }
.quote-row { max-width: 900px; margin: 0 auto; display: flex; gap: 18px; align-items: flex-start; }
.quote-icon { flex-shrink: 0; padding-top: 6px; }
.quote-body { flex: 1; }
.quote-text { font-size: var(--fs-display); font-weight: 500; line-height: 1.25; color: #000; letter-spacing: -0.5px; margin-bottom: 40px; }
.quote-hl { color: #0065A8; }
.quote-hidden { clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
.quote-text span.ql { opacity: 0; display: inline; transition: opacity 0.4s ease; }
.quote-text span.ql.vis { opacity: 1; }
.quote-author-row { display: flex; align-items: center; gap: 16px; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.quote-author-row.quote-author-in { opacity: 1; transform: translateY(0); }
.quote-photo { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; }
.quote-author-name { font-size: var(--fs-h4); font-weight: 600; color: #333; }
.quote-author-role { font-size: var(--fs-small); color: #838383; line-height: 1.1; font-weight: 500; }

/* ===== SOLUTIONS ===== */
#solutions { background: #fff; }
.solutions-header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.solutions-title { font-size: var(--fs-h2); font-weight: 500; color: #1a2332; line-height: 1.15; margin: 0; letter-spacing: -1px; }
.solutions-desc { font-size: var(--fs-body); font-weight: 500; color: #1a2332; line-height: 1.6; margin: 0; padding-top: 8px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 0;
}
.solution-card.muted { opacity: 0.5; }
.solution-card.available { border-color: #ccc; }
.sol-icon { margin-bottom: 20px; }
.sol-title { font-size: var(--fs-h3); font-weight: 700; color: #1a2332; margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.3px; }
.sol-subtitle { font-size: var(--fs-small); color: #555; line-height: 1.5; margin: 0 0 20px; }
.sol-features { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sol-feature { font-size: var(--fs-small); color: #333; line-height: 1.4; padding-left: 22px; position: relative; }
.sol-feature::before { content: '✓'; position: absolute; left: 0; top: 0; color: #0065A8; font-weight: 700; font-size: var(--fs-small); }
.sol-btn { display: block; width: 100%; padding: 14px 20px; border-radius: 8px; font-size: var(--fs-small); font-weight: 600; text-align: center; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.sol-btn-dark { background: #1a2332; color: #fff; border: none; }
.sol-btn-dark:hover { background: #243147; }
.sol-btn-outline { background: #fff; color: #0065A8; border: 1.5px solid #0065A8; }


/* ===== HOW IT WORKS ===== */
#how-it-works { background: #DDEDFA; }
#how-it-works .section-header h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -1px; }

/* Flow diagram */
.hiw-diagram-abs { position: relative; width: calc(100% + 40px); max-width: 1200px; margin: 30px -20px 0; height: 480px; overflow: visible; border-radius: 8px; }
.hiw-llm-pill { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #E4E9ED; border-radius: 3px; font-size: var(--fs-tiny); font-weight: 500; color: #333; background: #fff; box-sizing: border-box; }
/* Diagram text classes (use token scale) */
.hiw-zone-label { font-size: var(--fs-tiny); font-weight: 600; color: #fff; }
.hiw-actor-name { font-size: var(--fs-h4); font-weight: 700; color: #1a2332; }
.hiw-actor-sub { font-size: var(--fs-tiny); color: #888; }
.hiw-card-label { font-size: var(--fs-tiny); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.hiw-card-label--red { color: #e74c3c; }
.hiw-card-label--blue { color: #0064A7; }
.hiw-card-body { font-size: var(--fs-small); color: #333; line-height: 1.5; }
.hiw-box-title { font-size: var(--fs-h4); font-weight: 600; color: #1a2332; }
.hiw-box-sub { font-size: var(--fs-tiny); color: #888; margin-top: 4px; }
.hiw-plus { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #e0e0e0; align-items: center; justify-content: center; font-size: var(--fs-small); color: #888; flex-shrink: 0; }
.hiw-step-badge { width: 22px; height: 22px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; font-size: var(--fs-tiny); font-weight: 700; color: #fff; z-index: 10; }
.hiw-llm-pill svg, .hiw-llm-pill img { flex-shrink: 0; border-radius: 4px; }

/* Info blocks */
.hiw-info-blocks { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; margin-top: 20px; width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
.hiw-info-card { background: #eef3f8; border-radius: 16px; padding: 32px 36px 40px; }
.hiw-info-title { font-size: var(--fs-h3); font-weight: 700; color: #1a2332; margin-bottom: 24px; letter-spacing: -0.3px; }
.hiw-guarantees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.hiw-guarantee-item { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body); color: #1a2332; line-height: 1.5; font-weight: 500; }
.hiw-check-icon { width: 26px; height: 26px; border: 2px solid #0065A8; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; background: transparent; }
.hiw-check-icon svg { width: 14px; height: 14px; stroke: #0065A8; }
.hiw-steps-list { display: flex; flex-direction: column; gap: 16px; }
.hiw-step-item { display: flex; align-items: flex-start; gap: 14px; font-size: var(--fs-body); color: #1a2332; line-height: 1.5; font-weight: 500; }
.hiw-step-num { width: 30px; height: 30px; background: #1a2332; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.hiw-steps-footer { margin-top: 20px; font-size: var(--fs-small); color: #8a9bb5; }
.hiw-mobile-flow { display: none; }


/* ===== FEATURES ===== */
.feat-section { background: #0f1923; min-height: 400vh; position: relative; z-index: 1; }
.feat-container { position: sticky; top: 70px; max-width: var(--max-width); margin: 0 auto; padding: 30px 20px 40px; height: calc(100vh - 70px); box-sizing: border-box; overflow: hidden; }
.feat-slide { overflow: visible; }
.feat-text { transition: none; }
.feat-title { color: #fff; font-size: var(--fs-h2); font-weight: 500; margin-bottom: 50px; letter-spacing: -1px; }
.feat-slider { position: relative; }
.feat-slides { display: grid; }
.feat-slide { grid-area: 1 / 1; display: flex; align-items: center; gap: 40px; pointer-events: none; }
.feat-slide .feat-img { opacity: 0; transition: opacity 0.5s ease; }
.feat-slide.active { pointer-events: auto; }
.feat-slide.active .feat-img { opacity: 1; }
.feat-img { flex: 0 0 58%; max-width: 680px; border-radius: 12px; overflow: hidden; }
.feat-img img { width: 100%; height: auto; display: block; }
.feat-text { flex: 1; padding-right: 50px; will-change: transform, opacity; }
.feat-text h3 { color: #fff; font-size: var(--fs-display); font-weight: 600; line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.5px; }
.feat-text p { color: rgba(255,255,255,0.65); font-size: var(--fs-body); line-height: 1.6; }
/* Navigation: vertical line indicators */
.feat-nav { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.feat-nav-item { width: 3px; height: 20px; border-radius: 2px; border: none; background: rgba(255,255,255,0.2); cursor: pointer; padding: 0; transition: height 0.4s ease, background 0.4s ease; }
.feat-nav-item.active { height: 40px; background: #fff; }

/* ===== SECURITY ===== */
#security { background: var(--color-bg-alt); position: relative; z-index: 2; }
.sec-main-title { margin-bottom: 32px; }
.sec-grid { display: grid; grid-template-columns: 0.9fr 1.1fr 0.9fr; gap: 12px; align-items: stretch; }
.sec-card { background: linear-gradient(135deg, #b9d4ec 0%, #d6e4f1 55%, #eaf1f8 100%); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.sec-card h4 { color: #1a2332; line-height: 1.35; position: relative; z-index: 2; }
.sec-big { padding: 22px 0 22px 22px; flex-direction: row; align-items: flex-start; gap: 0; }
.sec-big h4 { flex: 1 1 auto; max-width: 55%; line-height: 1.25; padding-top: 2px; }
.sec-big-illus { width: 160px; max-width: 45%; height: auto; object-fit: contain; align-self: center; margin-left: auto; }
.sec-mid { display: grid; grid-template-rows: 1fr 1fr 0.85fr; gap: 12px; }
.sec-mid-bot { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.sec-h { flex-direction: row; align-items: center; gap: 14px; padding: 14px 18px; }
.sec-h-icon { flex-shrink: 0; width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sec-h-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.sec-h h4 { font-size: var(--fs-small); line-height: 1.3; min-width: 0; }

/* ===== DEMO FORM ===== */
#demo-form { background: #fff; color: var(--color-text); position: relative; z-index: 2; }
.demo-card { background: #F0F5FA; border-radius: 6px; overflow: hidden; }
.demo-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.demo-left { padding: 70px 40px 70px 60px; }
.demo-title { font-size: 48px; font-weight: 500; color: var(--color-text-dark); line-height: 1.1; letter-spacing: -1px; margin: 0 0 20px; max-width: 595px; }
.demo-title-hl { color: var(--color-primary); }
.demo-inside-label { font-size: 22px; font-weight: 700; color: var(--color-text-dark); margin-bottom: 10px; }
.demo-benefits { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.demo-benefits li { display: flex; align-items: center; gap: 9px; font-size: 16px; color: var(--color-text); }
.demo-benefits li::before { content: ''; display: inline-block; width: 24px; height: 24px; background: url('/images/tild6166-6435-4739-a438-326231303062__check.svg') no-repeat center/contain; flex-shrink: 0; }
.demo-form-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.demo-form-row input[type="email"] { flex: 1; min-width: 0; padding: 0 16px; height: 45px; border: none; border-radius: 3px; font-size: 16px; outline: none; background: #fff; }
.demo-form-row input[type="email"]:focus { background: #fff; }
.demo-submit { padding: 0 28px; height: 45px; background: #333; color: #fff; border: none; border-radius: 3px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.demo-submit:hover { background: #555; }
.demo-submit:disabled { background: #c5cdd6; cursor: not-allowed; }
#demo-form .cb-group { display: flex; align-items: flex-start; gap: 8px; max-width: 530px; }
#demo-form .cb-group input { margin-top: 3px; accent-color: var(--color-primary); }
#demo-form .cb-group label { font-size: 14px; color: var(--color-text-light); line-height: 1.5; }
#demo-form .cb-group a { color: var(--color-primary); text-decoration: none; border-bottom: 1px solid var(--color-primary); }
.demo-right { display: flex; align-items: center; }
.demo-right img { width: 420px; height: auto; display: block; }
.form-status { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.form-status.ok { color: var(--color-success); }
.form-status.err { color: var(--color-danger); }

/* ===== TRAINING ===== */
#training { background: var(--color-bg-alt); position: relative; z-index: 2; }
#training h2 { font-size: 48px; font-weight: 500; letter-spacing: -2px; line-height: 1.1; }
.training-header-row { display: grid; grid-template-columns: 595px 1fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.training-stat-text { font-size: 16px; color: var(--color-text-light); line-height: 1.6; }
.training-sub-title { font-size: 48px; font-weight: 500; letter-spacing: -2px; line-height: 1.1; margin-bottom: 32px; max-width: 500px; }

.training-quote { max-width: 900px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 80px; padding-top: 20px; margin-left: 160px; }
.training-quote-icon { flex-shrink: 0; padding-top: 6px; }
.training-quote-body { flex: 1; }
.training-quote-text { font-size: 32px; font-weight: 500; line-height: 1.25; color: #000; letter-spacing: -0.5px; margin-bottom: 20px; }
.training-quote-source { display: flex; flex-direction: column; gap: 4px; }
.training-quote-source span:first-child { font-size: 18px; color: var(--color-text-dark); }
.training-quote-source span { font-size: 14px; color: var(--color-text-light); }
.training-quote-btn { display: inline-block; margin-top: 16px; padding: 10px 24px; background: var(--color-primary); color: #fff; border-radius: 4px; font-size: 14px; text-decoration: none; transition: background 0.2s; }
.training-quote-btn:hover { background: #1557b0; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 80px; }
.skill-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; min-height: 280px; }
.skill-card-icon { width: 24px; height: 24px; margin-bottom: 12px; }
.skill-card h4 { font-size: 22px; font-weight: 600; margin-bottom: auto; }
.skill-card p { font-size: 16px; font-weight: 500; color: var(--color-text-light); line-height: 1.2; margin-top: 40px; }

.training-outcomes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.outcome-stat-card { background: #E8F0F8; border-radius: 12px; padding: 30px; position: relative; overflow: hidden; min-height: 200px; }
.outcome-stat-value { font-size: 48px; font-weight: 500; letter-spacing: -2px; line-height: 1.1; color: var(--color-text-dark); }
.outcome-stat-label { font-size: 16px; font-weight: 500; color: var(--color-text); margin-top: 12px; max-width: 200px; line-height: 1.2; }
.outcome-stat-image { position: absolute; bottom: 0; right: 0; width: 156px; }
.outcome-benefits-center { display: flex; flex-direction: column; gap: 20px; }
.outcome-benefit-card { background: #fff; border-radius: 12px; padding: 24px; display: flex; align-items: center; gap: 16px; flex: 1; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.outcome-benefit-icon { flex-shrink: 0; width: 48px; height: 48px; }
.outcome-benefit-card p { font-size: 16px; font-weight: 500; line-height: 1.2; }

/* ===== CONTACT / POPUP FORMS ===== */
#contact { background: var(--color-bg); position: relative; z-index: 2; overflow: hidden; padding-bottom: 0; }
.contact-bg { position: absolute; inset: 0; pointer-events: none; background: url('/images/tild3966-6633-4036-b665-373934303563___.png') left bottom / contain no-repeat; }
.contact-layout { display: grid; grid-template-columns: 438px 1fr; gap: 60px; align-items: start; position: relative; z-index: 1; padding-bottom: 80px; }
#contact h2 { font-size: 48px; font-weight: 500; letter-spacing: -2px; line-height: 1.1; }
#contact h2 em { font-style: italic; color: var(--color-primary); }
.contact-right form { background: #fff; padding: 36px; border-radius: 6px; }
.form-field label { display: block; font-size: 14px; font-weight: 500; color: var(--color-text-dark); margin-bottom: 6px; }
.contact-method-row { display: flex; gap: 8px; margin-bottom: 10px; }
.contact-method-option { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 20px; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.contact-method-option:has(input:checked) { border-color: rgba(0,101,168,0.4); background: rgba(0,101,168,0.1); }
.contact-method-option input { accent-color: var(--color-primary); }
.radio-group { display: flex; flex-direction: column; gap: 6px; }
.radio-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio-group input[type="radio"] { accent-color: var(--color-primary); }
.checkbox-group { display: flex; flex-direction: column; gap: 6px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox-group input[type="checkbox"] { accent-color: var(--color-primary); }

.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.active { display: flex; }
.popup-dialog { background: #fff; border-radius: 3px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; padding: 40px; }
.popup-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: var(--color-bg-alt); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: var(--fs-h3); color: var(--color-text-light); transition: background 0.2s; }
.popup-close:hover { background: var(--color-border); }
.popup-dialog h3 { font-size: var(--fs-display); font-weight: 500; margin-bottom: 8px; letter-spacing: -1px; }
.popup-dialog .popup-desc { font-size: 14px; color: var(--color-text-light); margin-bottom: 24px; line-height: 1.5; }

.form-field { margin-bottom: 16px; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="password"], .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 3px;
  font-size: 14px; outline: none; transition: border-color 0.2s; background: #fff; color: var(--color-text-dark);
}
.form-field input[type="text"]:focus, .form-field input[type="email"]:focus, .form-field input[type="tel"]:focus, .form-field textarea:focus { border-color: var(--color-primary); }
.form-field textarea { resize: vertical; min-height: 80px; }

.messenger-types { display: flex; gap: 8px; margin-bottom: 12px; }
.messenger-type { flex: 1; padding: 10px 8px; border: 1px solid var(--color-border); border-radius: 3px; background: #fff; cursor: pointer; text-align: center; font-size: 14px; transition: border-color 0.2s, background 0.2s; }
.messenger-type:hover { border-color: var(--color-primary); }
.messenger-type.active { border-color: var(--color-primary); background: rgba(0,101,168,0.05); color: var(--color-primary); font-weight: 500; }


.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
.consent-row input { margin-top: 3px; accent-color: var(--color-primary); }
.consent-row span { font-size: 13px; color: var(--color-text-light); line-height: 1.5; }
.consent-row a { color: var(--color-primary); text-decoration: underline; }

.btn-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; padding: 0 40px;
  background: var(--color-text); color: #fff; border: none; border-radius: 5px;
  font-weight: 500; font-size: 16px; cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: #555; }

.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--color-text); margin-bottom: 6px; }

.pf-radio-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-radio-item { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--color-border); border-radius: 3px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--color-text); transition: border-color 0.15s, background 0.15s; }
.pf-radio-item:hover { border-color: var(--color-primary); }
.pf-radio-item input { position: absolute; opacity: 0; pointer-events: none; }
.pf-radio-item:has(input:checked) { border-color: var(--color-primary); background: rgba(0,101,168,0.06); color: var(--color-primary); }

.pf-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pf-check-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 3px; cursor: pointer; font-size: 13px; color: var(--color-text); transition: border-color 0.15s, background 0.15s; }
.pf-check-item:hover { border-color: var(--color-primary); }
.pf-check-item input { accent-color: var(--color-primary); flex-shrink: 0; }
.pf-check-item:has(input:checked) { border-color: var(--color-primary); background: rgba(0,101,168,0.04); }

/* ===== FOOTER ===== */
#footer { background: #f6f7f8; color: var(--color-text); padding: 60px 0 40px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { width: 109px; margin-bottom: 16px; }
.footer-desc { font-size: 31px; font-weight: 700; line-height: 1.2; color: var(--color-text-dark); }
.footer-col h4 { font-size: 20px; font-weight: 700; color: var(--color-text-dark); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--color-text); line-height: 1.6; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-primary); }
.footer-tg { display: inline-block; margin-top: 12px; }
.footer-tg img { width: 44px; height: 44px; }

/* ===== ANIMATIONS ===== */
.dvai-pre { opacity: 0; transform: translate3d(0, 56px, 0) scale(0.97); filter: blur(8px); transition: opacity 650ms cubic-bezier(0.22,1,0.36,1), transform 650ms cubic-bezier(0.22,1,0.36,1), filter 650ms cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform, filter; }
.dvai-pre.dvai-in { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .dvai-pre, .dvai-pre.dvai-in { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; } }

/* ===== RESPONSIVE ===== */

/* --- Tablet ≤1024px --- */
@media (max-width: 1024px) {
  /* Nav → hamburger */
  .nav-list { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  #hero { height: auto; min-height: 100vh; }
  .hero-top { max-width: 100%; }
  .hero-image { position: relative; left: auto; transform: none; width: 100%; height: 300px; margin-top: 20px; }
  .hero-inner { padding-bottom: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Intro */
  .intro-text { font-size: 24px; }
  .intro-macbook { margin-top: 40px; }

  /* Masking */
  .masking-header { flex-direction: column; gap: 16px; }
  .masking-title { font-size: 34px; }
  .masking-cta-inner { flex-direction: column; text-align: center; }

  /* Efficiency */
  .eff-row { flex-direction: column; gap: 30px; }
  .eff-number { font-size: 100px; }
  .eff-prefix { font-size: 30px; }
  .eff-desc { font-size: 28px; }

  /* Quote */
  .quote-row { flex-direction: column; gap: 12px; }
  .quote-text { font-size: 24px; }

  /* Solutions */
  .solutions-header { grid-template-columns: 1fr; gap: 16px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }

  /* How-it-works */
  #how-it-works { overflow: hidden; }
  .hiw-diagram-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
  .hiw-diagram-abs { min-width: 1200px; }
  .hiw-info-blocks { grid-template-columns: 1fr; }
  .hiw-guarantees-grid { grid-template-columns: 1fr 1fr; }

  /* Features */
  .feat-section { min-height: 300vh; }
  .feat-slide { flex-direction: column; gap: 20px; }
  .feat-img { flex: none; max-width: 100%; }
  .feat-text { padding-right: 0; }
  .feat-title { font-size: var(--fs-display); }
  .feat-text h3 { font-size: var(--fs-h3); }

  /* Security */
  .sec-grid { grid-template-columns: 1fr; }
  .sec-big { flex-direction: column; padding: 22px; }
  .sec-big h4 { max-width: 100%; }
  .sec-big-illus { width: 100%; max-width: 200px; }
  .sec-mid { grid-template-rows: auto; }
  .sec-mid-bot { grid-template-columns: 1fr; }

  /* Demo form */
  .demo-layout { grid-template-columns: 1fr; }
  .demo-left { padding: 40px 24px; }
  .demo-title { font-size: 34px; }
  .demo-right { justify-content: center; }
  .demo-right img { max-width: 100%; }
  .demo-form-row { flex-direction: column; }
  .demo-submit { width: 100%; }

  /* Training */
  .training-header-row { grid-template-columns: 1fr; }
  #training h2 { font-size: 34px; }
  .training-sub-title { font-size: 34px; }
  .training-quote { margin-left: 0; margin-bottom: 40px; }
  .training-quote-text { font-size: 24px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { min-height: auto; padding: 20px; }
  .training-outcomes { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-bg { display: none; }
  #contact h2 { font-size: 36px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Mobile ≤640px --- */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  h2 { font-size: var(--fs-h2-sm); letter-spacing: -1px; }
  .section-header { margin-bottom: 30px; flex-direction: column; }

  /* Hero */
  .hero-headline { font-size: 30px; }
  .hero-image { height: 240px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .stat-value { font-size: 32px; }
  .stat-label { font-size: 14px; }

  /* Intro */
  .intro-text { font-size: 20px; line-height: 1.4; }
  .intro-macbook { margin-top: 40px; }

  /* Masking */
  .masking-title { font-size: 26px; }
  .doc-contract { padding: 20px; }

  /* Efficiency */
  .eff-number { font-size: 80px; }
  .eff-prefix { font-size: 24px; }
  .eff-desc { font-size: 22px; }
  .eff-arrow { width: 30px; }

  /* Quote */
  .quote-text { font-size: 20px; }
  .quote-photo { width: 50px; height: 50px; }

  /* Solutions */
  .solutions-grid { grid-template-columns: 1fr; }

  /* How-it-works: vertical diagram on mobile */
  .hiw-diagram-wrap { display: none; }
  .hiw-mobile-flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0 0 30px; }
  .hmf-zone { width: 100%; border: 1.5px dashed #8a95a0; border-radius: 6px; padding: 20px 16px; background: rgba(255,255,255,0.6); position: relative; }
  .hmf-badge { display: inline-block; padding: 8px 16px; border-radius: 3px; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; }
  .hmf-badge--dark { background: #1a2332; }
  .hmf-actor { font-size: 16px; font-weight: 700; color: #1a2332; margin-bottom: 12px; }
  .hmf-actor span { display: block; font-size: 13px; color: #888; font-weight: 400; margin-top: 2px; }
  .hmf-card { border-radius: 3px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: #333; }
  .hmf-card-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
  .hmf-card--red { border: 1px solid #FD4640; background: #fff; }
  .hmf-card--blue { border: 1px solid #0064A7; background: #fff; }
  .hmf-card--grey { border: 1px solid #E5EAEE; background: #fff; }
  .hmf-zone--dvai { border: none; padding: 12px 16px; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .hmf-logo { width: 60px; }
  .hmf-box { display: flex; align-items: center; gap: 12px; background: #f4f6f8; border: 1px solid #dde2e8; border-radius: 10px; padding: 16px; width: 100%; }
  .hmf-box strong { font-size: 15px; }
  .hmf-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
  .hmf-pills .hiw-llm-pill { font-size: 12px; padding: 6px 8px; }
  .hmf-arrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
  .hmf-step { width: 24px; height: 24px; border-radius: 50%; background: #333; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
  .hiw-info-blocks { width: 100%; margin-left: 0; margin-right: 0; }
  .hiw-guarantees-grid { grid-template-columns: 1fr; }

  /* Features: horizontal swipe carousel */
  .feat-section { min-height: auto; }
  .feat-container { position: static; height: auto; padding: 60px 0 60px; overflow: visible; }
  .feat-title { font-size: 24px; margin-bottom: 24px; padding: 0 16px; }
  .feat-slider { overflow: visible; }
  .feat-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 0; scrollbar-width: none; }
  .feat-slides::-webkit-scrollbar { display: none; }
  .feat-slide { flex: 0 0 100%; scroll-snap-align: start; flex-direction: column; gap: 16px; display: flex; padding: 0 16px; box-sizing: border-box; pointer-events: auto; opacity: 1; }
  .feat-slide .feat-img { opacity: 1; }
  .feat-slide .feat-text { transform: none !important; visibility: visible !important; }
  .feat-img { flex: none; max-width: 100%; }
  .feat-text { padding-right: 0; transform: none !important; visibility: visible !important; }
  .feat-text h3 { font-size: 20px; }
  .feat-text p { font-size: 14px; }
  .feat-nav { position: static; transform: none; flex-direction: row; justify-content: center; margin-top: 20px; padding: 0 16px; }
  .feat-nav-item { width: 20px; height: 3px; }
  .feat-nav-item.active { width: 40px; height: 3px; }

  /* Security */
  .sec-mid { grid-template-columns: 1fr; }

  /* Demo form */
  .demo-left { padding: 30px 16px; }
  .demo-title { font-size: 26px; }
  .demo-inside-label { font-size: 16px; }

  /* Training */
  #training h2 { font-size: 26px; }
  .training-sub-title { font-size: 26px; }
  .training-quote-text { font-size: 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card p { margin-top: 16px; }
  .outcome-stat-card { min-height: auto; padding: 24px; }
  .outcome-stat-value { font-size: 36px; }
  .outcome-benefit-card { flex-direction: column; align-items: flex-start; }

  /* Contact */
  #contact h2 { font-size: 28px; }
  .contact-right form { padding: 24px 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-desc { font-size: 22px; }

  /* Popup */
  .popup-dialog { padding: 28px 20px; }
  .pf-check-grid { grid-template-columns: 1fr; }
}

/* --- Small mobile ≤480px --- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  h2 { font-size: var(--fs-display); }
  .hero-headline { font-size: 26px; }
  .hero-sub { font-size: 13px; }
  .stat-value { font-size: 28px; }
  .intro-text { font-size: 18px; }
  .eff-number { font-size: 60px; }
  .eff-prefix { font-size: 20px; }
  .eff-desc { font-size: 20px; }
  .masking-title { font-size: 22px; }
  .quote-text { font-size: 18px; }
  .feat-title { font-size: 20px; }
  .feat-text h3 { font-size: 18px; }
  .demo-title { font-size: 24px; }
}
