/* =====================
   01. TOKENS
===================== */

:root {
  --bg: #04070d;
  --bg-2: #0b1320;

  --text: #e8edf5;
  --text-2: #b0bac8;
  --text-3: #7b8798;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);

  --accent-blue: #3aa7e2;
  --accent-green: #b7f13d;
  --accent-green-2: #99eb45;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --blur: blur(18px);
}

/* =====================
   02. LIGHT THEME
===================== */

html[data-theme="light"] {
  --bg: #edf4fa;
  --bg-2: #dbe7f2;

  --text: #0b1b2e;
  --text-2: #43566d;
  --text-3: #667a92;

  --line: rgba(22, 42, 68, 0.08);
  --line-2: rgba(22, 42, 68, 0.14);

  --shadow: 0 18px 42px rgba(31, 58, 97, 0.08);
}

/* =====================
   03. BASE
===================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  appearance: none;
  -webkit-appearance: none;
}

/* =====================
   04. BACKGROUND
===================== */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__gradient,
.page-bg__grid,
.page-bg__grid-hotspot,
.page-bg__glow,
.page-bg__cursor,
.page-bg__vignette {
  position: absolute;
  inset: 0;
}

.page-bg__gradient {
  background:
    radial-gradient(circle at 12% 16%, rgba(183, 241, 61, 0.12), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(58, 167, 226, 0.12), transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(58, 167, 226, 0.08), transparent 26%),
    linear-gradient(180deg, #02050a 0%, #08111d 100%);
}

html[data-theme="light"] .page-bg__gradient {
  background:
    radial-gradient(circle at 12% 16%, rgba(183, 241, 61, 0.08), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(58, 167, 226, 0.08), transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(58, 167, 226, 0.06), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eaf1f7 100%);
}

.page-bg__grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 1;
}

html[data-theme="light"] .page-bg__grid {
  background-image:
    linear-gradient(rgba(22,42,68,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,42,68,0.06) 1px, transparent 1px);
}

.page-bg__grid-hotspot {
  opacity: 0.12;
}

.page-bg__glow {
  filter: blur(34px);
  border-radius: 999px;
}

.page-bg__glow--1 {
  inset: auto auto 58% 60%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(58,167,226,0.14) 0%, rgba(58,167,226,0.05) 34%, rgba(58,167,226,0) 72%);
}

.page-bg__glow--2 {
  inset: 68% auto auto -6%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(183,241,61,0.08) 0%, rgba(183,241,61,0.03) 34%, rgba(183,241,61,0) 72%);
}

.page-bg__cursor {
  width: 360px;
  height: 360px;
  margin-left: -180px;
  margin-top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58,167,226,0.14) 0%, rgba(58,167,226,0.05) 42%, rgba(58,167,226,0) 72%);
  opacity: 0.55;
  filter: blur(10px);
  transform: translate(-9999px, -9999px);
  transition: transform 0.08s linear;
}

html[data-theme="light"] .page-bg__cursor {
  background: radial-gradient(circle, rgba(58,167,226,0.10) 0%, rgba(58,167,226,0.04) 42%, rgba(58,167,226,0) 72%);
  opacity: 0.42;
}

.page-bg__vignette {
  background:
    linear-gradient(180deg, rgba(3,8,20,0.08) 0%, rgba(3,8,20,0) 18%, rgba(3,8,20,0) 78%, rgba(3,8,20,0.18) 100%),
    linear-gradient(90deg, rgba(2,8,20,0.14) 0%, rgba(2,8,20,0) 12%, rgba(2,8,20,0) 88%, rgba(2,8,20,0.10) 100%);
}

html[data-theme="light"] .page-bg__vignette {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 78%, rgba(219,230,240,0.14) 100%),
    linear-gradient(90deg, rgba(232,240,248,0.14) 0%, rgba(232,240,248,0) 12%, rgba(232,240,248,0) 88%, rgba(232,240,248,0.10) 100%);
}

/* =====================
   05. TOP CONTROLS
===================== */

.top-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
  color: var(--text);
}

.theme-toggle__icon {
  font-size: 16px;
  line-height: 1;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

/* =====================
   06. LAYOUT
===================== */

.site-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 16px 40px;
}

.hero-section {
  margin-bottom: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.about-grid {
  display: grid;
  gap: 16px;
}

.about-grid--top {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin-bottom: 16px;
}

.about-grid--bottom {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

/* =====================
   07. PANELS
===================== */

.panel {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    rgba(13, 24, 40, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

html[data-theme="light"] .panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.54) 100%),
    rgba(255,255,255,0.78);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
}

.panel--strong {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%),
    rgba(14, 25, 42, 0.84);
}

html[data-theme="light"] .panel--strong {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.62) 100%),
    rgba(255,255,255,0.90);
}

.panel--reveal {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.panel--reveal:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(58, 167, 226, 0.08);
}

.panel__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.24) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

html[data-theme="light"] .panel__shade {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(14,24,40,0.08) 100%);
}

.panel--reveal:hover .panel__shade {
  opacity: 1;
}

.panel__action {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.panel--reveal:hover .panel__action {
  opacity: 1;
  transform: translateY(0);
}

.panel__action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.panel__action-arrow {
  transition: transform 160ms ease;
}

.panel--reveal:hover .panel__action-arrow {
  transform: translateX(3px);
}

/* =====================
   08. TYPO
===================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(183,241,61,0.10);
  border: 1px solid rgba(183,241,61,0.24);
  color: var(--accent-green);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--text);
  text-wrap: balance;
}

.section-title--sm {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.02;
}

.section-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

/* =====================
   09. HERO
===================== */

.hero-card__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card__head {
  display: grid;
  gap: 16px;
}

.hero-title {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(54px, 5.8vw, 80px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.075em;
  color: var(--text);
}

.hero-copy {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.hero-lead {
  margin: 0;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 600;
}

.hero-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-3);
}

.hero-list {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding-left: 18px;
}

.hero-list li {
  font-size: 15px;
  line-height: 1.46;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* =====================
   10. BUTTONS
===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn__arrow {
  transition: transform 160ms ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--primary {
  color: #09111a;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  box-shadow:
    0 16px 30px rgba(58,167,226,0.16),
    0 0 18px rgba(183,241,61,0.10);
}

.btn--secondary {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--line-2);
}

/* =====================
   11. MEDIA PLACEHOLDER
===================== */

.hero-media-card,
.about-card--media {
  min-height: 100%;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background:
    radial-gradient(circle at 22% 20%, rgba(183,241,61,0.16), transparent 36%),
    radial-gradient(circle at 78% 72%, rgba(58,167,226,0.18), transparent 38%),
    linear-gradient(135deg, rgba(18,31,48,0.82), rgba(10,20,34,0.94));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: inherit;
}

html[data-theme="light"] .media-placeholder {
  background:
    radial-gradient(circle at 22% 20%, rgba(183,241,61,0.10), transparent 36%),
    radial-gradient(circle at 78% 72%, rgba(58,167,226,0.12), transparent 38%),
    linear-gradient(135deg, rgba(236,244,250,0.96), rgba(226,236,245,0.98));
}

.media-placeholder__label {
  font-size: 13px;
  color: var(--text-3);
}

.media-placeholder__title {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.media-placeholder--portrait {
  min-height: 100%;
}

.media-placeholder--yacht {
  min-height: 240px;
}

/* =====================
   12. ABOUT
===================== */

.about-card__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card__inner--compact {
  padding-top: 22px;
}

.about-card__copy {
  display: grid;
  gap: 12px;
}

.about-card--ai .about-card__inner {
  justify-content: space-between;
}

.about-card--experience .section-title,
.about-card--philosophy .section-title {
  max-width: 14ch;
}

.about-card__media {
  min-height: 240px;
}

/* industries */

.industry-block {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.industry-block__line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-2);
}

.industry-block__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent-green);
  font-weight: 600;
}

.industry-block__divider {
  color: rgba(183,241,61,0.5);
}

/* =====================
   13. RESPONSIVE
===================== */

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid--top,
  .about-grid--bottom {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(42px, 7vw, 64px);
  }

  .media-placeholder--portrait {
    min-height: 360px;
  }
}

@media (max-width: 760px) {

  .site-shell {
  padding: 14px 12px 28px;
 }

  .hero-grid,
  .about-grid {
    gap: 14px;
  }

  .hero-card__inner,
  .about-card__inner {
    padding: 18px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(34px, 10vw, 48px);
    line-height: 0.9;
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.34;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .media-placeholder,
  .media-placeholder--yacht,
  .media-placeholder--portrait {
    min-height: 220px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-title--sm {
    font-size: 24px;
  }

  .section-text,
  .hero-text,
  .hero-list li {
    font-size: 14px;
  }

  .panel__action {
    opacity: 1;
    transform: none;
  }

  .panel__shade {
    opacity: 0.72;
  }
}
/* =====================
   13. PRODUCTS
===================== */

.products-section {
  margin-top: 18px;
}

.products-head {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  max-width: 920px;
}

.products-title {
  max-width: 12ch;
}

.products-lead {
  max-width: 760px;
}

.products-grid {
  display: grid;
  gap: 16px;
}

.products-grid--top {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  margin-bottom: 16px;
}

.products-grid--bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  min-height: 100%;
}

.product-card__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.product-card__copy {
  display: grid;
  gap: 14px;
}

.product-card--radar .section-title {
  max-width: 10ch;
}

.product-card--workshop .section-title {
  max-width: 12ch;
}

.product-card--mini .section-title {
  max-width: 12ch;
}

.product-card__lead {
  max-width: 42ch;
}

.product-card__blocks {
  display: grid;
  gap: 12px;
}

.product-info {
  display: grid;
  gap: 6px;
}

.product-info__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.product-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(183,241,61,0.10);
  border: 1px solid rgba(183,241,61,0.24);
  color: var(--accent-green);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card--mini .product-card__inner {
  min-height: 100%;
}

html[data-theme="light"] .product-info__label {
  background: rgba(22,42,68,0.04);
}

/* products responsive */
@media (max-width: 1080px) {
  .products-grid--top,
  .products-grid--bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .products-section {
    margin-top: 14px;
  }

  .products-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .product-card__inner {
    padding: 18px;
    gap: 16px;
  }
}
/* =====================
   EXIT
===================== */

.exit-section {
  margin-top: 18px;
}

.exit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: stretch;
}

.exit-stack {
  display: grid;
  gap: 16px;
}

.exit-card {
  min-height: 100%;
}

.exit-card__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exit-card__inner--compact {
  padding-top: 20px;
}

.exit-card__copy {
  display: grid;
  gap: 12px;
}

.exit-card--marathon {
  display: flex;
  flex-direction: column;
}

.exit-card__media {
  min-height: 260px;
}

.media-placeholder--marathon {
  min-height: 260px;
}

.exit-card--ai .exit-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.exit-ai__copy {
  display: grid;
  gap: 12px;
}

.exit-ai__stack {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  padding-top: 2px;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.tg-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-topic {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.exit-card--telegram:hover .tg-topic {
  border-color: var(--line-2);
}

html[data-theme="light"] .stack-pill,
html[data-theme="light"] .tg-topic {
  background: rgba(22,42,68,0.04);
}

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

  .exit-card--ai .exit-card__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .exit-section {
    margin-top: 14px;
  }

  .exit-grid,
  .exit-stack {
    gap: 14px;
  }

  .exit-card__inner {
    padding: 18px;
  }

  .exit-card__media,
  .media-placeholder--marathon {
    min-height: 220px;
  }

  .tg-topics {
    gap: 8px;
  }

  .tg-topic {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
}