﻿:root {
  --bg: #e6edf6;
  --bg-soft: #dde7f3;
  --surface: #f7fbff;
  --text: #102843;
  --muted: #475f7e;
  --line: rgba(16, 40, 67, 0.18);
  --accent: #1a4f88;
  --primary: #f5ad2f;
  --primary-dark: #dc9419;
  --shadow: 0 14px 36px rgba(14, 33, 54, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #f2f6fc 0%, #e7eef7 45%, #dce6f2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.background-shape {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  z-index: -1;
}

.background-shape-1 {
  top: -200px;
  left: -120px;
  background: #89b3e0;
}

.background-shape-2 {
  bottom: -220px;
  right: -120px;
  background: #ffdca0;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 246, 253, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand-logo {
  width: 48px;
  height: auto;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(19, 62, 112, 0.16);
  border-radius: 10px;
  padding: 3px;
}

.brand-text {
  color: #133e70;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.96rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: #60799b;
}

h1,
h2,
h3 {
  margin: 0;
  color: #153f72;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.14rem;
}

.lead {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.13rem);
  line-height: 1.65;
}

.hero {
  padding: 50px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-tars {
  width: min(230px, 78%);
  filter: drop-shadow(0 12px 22px rgba(17, 38, 62, 0.2));
}

.hero-tars-secondary {
  position: absolute;
  right: 5%;
  bottom: -8px;
  width: min(160px, 50%);
  filter: drop-shadow(0 10px 18px rgba(17, 38, 62, 0.16));
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.header-btn {
  color: #18273b;
  background: linear-gradient(180deg, #ffd988, var(--primary));
  border: 1px solid #ecb953;
  box-shadow: 0 10px 18px rgba(245, 173, 47, 0.28);
}

.btn-primary:hover,
.header-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffe09a, var(--primary-dark));
}

.btn-outline {
  color: #153f72;
  border: 1px solid rgba(21, 63, 114, 0.3);
  background: #f8fbff;
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 63, 114, 0.5);
}

.header-btn {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-btn-outline {
  color: #1a3f6d;
  background: #f4f8fd;
  border: 1px solid rgba(26, 63, 109, 0.3);
  box-shadow: none;
}

.header-btn-outline:hover {
  transform: translateY(-1px);
  background: #eef4fb;
}

.section {
  padding: 34px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.function-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.function-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.function-card li + li {
  margin-top: 8px;
}

.functions-cta {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  background: linear-gradient(180deg, #edf4fc, #e3edf8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
}

.functions-video-wrap {
  flex: 0 0 460px;
  min-width: 300px;
  max-width: 460px;
}

.functions-demo-card {
  background: #f7fbff;
  border: 1px solid rgba(21, 63, 114, 0.22);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.functions-demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(9, 24, 44, 0.18);
}

.functions-demo-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.functions-thumb-link {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(21, 63, 114, 0.25);
}

.functions-thumb-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.functions-thumb-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 34, 0.1), rgba(6, 18, 34, 0.25));
}

.functions-thumb-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(16, 40, 67, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(7, 22, 40, 0.34);
  clip-path: polygon(39% 31%, 39% 69%, 72% 50%);
  transition: transform 0.24s ease, background 0.24s ease;
}

.functions-demo-card:hover .functions-thumb-link img {
  transform: scale(1.04);
}

.functions-demo-card:hover .functions-thumb-link::after {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(22, 54, 88, 0.95);
}

.functions-video-btn {
  margin-top: 12px;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  min-width: 170px;
}

.functions-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.benefits-box {
  width: min(500px, 100%);
  background: #f6faff;
  border: 1px solid rgba(21, 63, 114, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  margin: auto 0;
}

.benefits-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: #184173;
}

.benefits-box ul {
  margin: 0;
  padding-left: 18px;
  color: #456183;
  line-height: 1.4;
}

.benefits-box li + li {
  margin-top: 4px;
}

.functions-side-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 34px;
}

.functions-side img {
  width: 86px;
  height: auto;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 40, 0.74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.video-modal.active {
  display: flex;
}

.video-box {
  width: min(980px, 100%);
  background: #071e3a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px;
}

.video-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f0f5fc;
  margin-bottom: 8px;
}

.video-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.close-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 10px;
}

.section-audience {
  padding-bottom: 56px;
}

.academy-back {
  padding: 0 0 56px;
}

.academy-back-wrap {
  display: flex;
  justify-content: center;
}

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

.audience-grid p {
  margin: 12px 0 20px;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.64;
}

.audience-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.audience-visual img {
  width: 100%;
  height: auto;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .hero-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 220px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 40px;
    padding: 2px;
  }

  .brand-text {
    font-size: 0.79rem;
  }

  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .header-btn {
    font-size: 0.66rem;
    padding: 9px 12px;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .lead {
    font-size: 1rem;
  }

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

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

  .hero-visual {
    min-height: 190px;
  }

  .hero-tars {
    width: min(170px, 58%);
  }

  .hero-tars-secondary {
    width: min(120px, 40%);
    right: 3%;
  }

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

  .functions-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    text-align: center;
    gap: 8px;
  }

  .functions-side img {
    width: 74px;
  }

  .functions-video-wrap {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .functions-side {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    align-self: start;
  }

  .functions-side-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  .benefits-box {
    margin: 0;
    width: 100%;
    text-align: left;
  }

  .benefits-title {
    text-align: left;
  }

  .benefits-box ul {
    text-align: left;
  }

  .audience-visual {
    grid-template-columns: 1fr 1fr;
  }

  .audience-visual img:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 140px;
  }
}
