/* =========================================
   ТАКТ — landing styles
   ========================================= */

:root {
  --bg: #0a0f1c;
  --bg-elev: #0f1729;
  --bg-card: #131c33;
  --bg-card-hover: #182241;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf5;
  --text-dim: #8b95ad;
  --text-muted: #5d6680;
  --accent: #4d8dff;
  --accent-soft: #2e5cc7;
  --accent-glow: rgba(77, 141, 255, 0.18);
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.nav__cta {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: #6ba2ff;
  transform: translateY(-1px);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(77, 141, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 141, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 141, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(77, 141, 255, 0.08);
  border: 1px solid rgba(77, 141, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 141, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(77, 141, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 141, 255, 0); }
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.accent {
  background: linear-gradient(135deg, #4d8dff 0%, #8eb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(77, 141, 255, 0.5);
}

.btn--primary:hover {
  background: #6ba2ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(77, 141, 255, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat__num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================
   SECTIONS GENERIC
   ========================================= */
.section {
  padding: 120px 0;
  position: relative;
}

.section--dark {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(77, 141, 255, 0.25);
  border-radius: 4px;
}

.section h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.section__lead {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* =========================================
   PAINS
   ========================================= */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pain {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.pain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pain:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.pain:hover::before {
  opacity: 1;
}

.pain__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 141, 255, 0.1);
  color: var(--accent);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pain h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

/* =========================================
   HOW
   ========================================= */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}

.how-card:hover {
  border-color: rgba(77, 141, 255, 0.4);
  transform: translateY(-2px);
}

.how-card__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.how-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.how-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* =========================================
   BENEFITS
   ========================================= */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px 48px;
}

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

.benefit__mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(77, 141, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
}

.benefit h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* =========================================
   USE CASES
   ========================================= */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.case:hover {
  border-color: rgba(77, 141, 255, 0.3);
  transform: translateY(-2px);
}

.case__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(77, 141, 255, 0.08);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.case h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.kii-note {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(77, 141, 255, 0.06);
  border: 1px solid rgba(77, 141, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.kii-note strong {
  color: var(--text);
  font-weight: 700;
}

.kii-note__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(77, 141, 255, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

/* =========================================
   TRUST / PATENT
   ========================================= */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.trust__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}

.trust__item:hover {
  border-color: rgba(77, 141, 255, 0.3);
  transform: translateY(-2px);
}

.trust__big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(77, 141, 255, 0.15), rgba(77, 141, 255, 0.05));
  border: 1px solid rgba(77, 141, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.trust__item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* =========================================
   TEAM
   ========================================= */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.team__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.team__card:hover {
  border-color: rgba(77, 141, 255, 0.3);
  transform: translateY(-4px);
}

.team__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}

.team__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(19, 28, 51, 0.4) 100%);
  pointer-events: none;
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02) saturate(0.95);
  transition: transform 0.6s ease;
}

.team__card:hover .team__photo img {
  transform: scale(1.03);
}

.team__info {
  padding: 28px 28px 32px;
}

.team__info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.team__role {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

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

/* =========================================
   CONTACT
   ========================================= */
.contact {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(77, 141, 255, 0.1), transparent 60%),
    var(--bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__text h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 20px;
}

.contact__text p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 36px;
}

.contact__list {
  list-style: none;
}

.contact__list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  align-items: center;
  font-size: 15px;
}

.contact__list li:last-child {
  border-bottom: 1px solid var(--border);
}

.contact__list span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

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

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.contact__form input,
.contact__form textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
}

.contact__note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand img {
  height: 40px;
  margin-bottom: 10px;
}

.footer__brand p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer__meta {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .nav__links a:not(.nav__cta) {
    display: none;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 32px;
  }

  .section {
    padding: 80px 0;
  }

  .section__head {
    margin-bottom: 48px;
  }

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

  .contact__form {
    padding: 28px 22px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__meta {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .pain, .how-card, .case, .trust__item {
    padding: 24px;
  }

  .team__info {
    padding: 22px;
  }

  .contact__list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.nav__links a.is-active {
  color: var(--text);
}

.nav__links a.is-active.nav__cta {
  background: #6ba2ff;
}

/* Selection */
::selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-card-hover);
}
