﻿:root {
  --bg: #060913;
  --bg-soft: #0d1429;
  --panel: rgba(14, 23, 45, 0.82);
  --panel-2: rgba(16, 27, 54, 0.92);
  --line: rgba(135, 170, 255, 0.22);
  --text: #edf2ff;
  --muted: #a9b5d7;
  --teal: #28d7c5;
  --orange: #ff8e2b;
  --pink: #ff4f9d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 20%, rgba(40, 215, 197, 0.15), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(255, 79, 157, 0.18), transparent 32%),
    linear-gradient(145deg, #050812, #070f20 38%, #09152d 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.35;
  z-index: -3;
}

.halo {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.24;
  pointer-events: none;
  z-index: -2;
}

.halo-left {
  left: -140px;
  top: -80px;
  background: var(--teal);
}

.halo-right {
  right: -160px;
  bottom: -120px;
  background: var(--pink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 19, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #091329;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  background: linear-gradient(145deg, var(--teal), #95f7e9);
}

.topbar nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
}

#lang-select {
  border: 1px solid rgba(120, 160, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(12, 20, 44, 0.95), rgba(9, 16, 35, 0.9));
  color: var(--text);
  padding: 9px 40px 9px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  appearance: none;
  box-shadow:
    0 12px 28px rgba(6, 9, 19, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 42px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 18px;
  background-repeat: no-repeat;
  min-width: 170px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#lang-select:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 215, 197, 0.55);
  box-shadow:
    0 14px 32px rgba(6, 9, 19, 0.55),
    0 0 22px rgba(40, 215, 197, 0.2);
}

#lang-select:focus {
  outline: none;
  border-color: rgba(255, 142, 43, 0.7);
  box-shadow:
    0 16px 36px rgba(6, 9, 19, 0.6),
    0 0 24px rgba(255, 142, 43, 0.25);
}

#lang-select option {
  color: #0a1024;
  font-weight: 600;
}

.section {
  padding: 56px 0;
}

#projects {
  position: relative;
}

#projects::before {
  content: "";
  position: absolute;
  inset: 12% 8% 8% 8%;
  background:
    radial-gradient(circle at 15% 10%, rgba(40, 215, 197, 0.12), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(255, 142, 43, 0.1), transparent 55%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.hero {
  padding-top: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.kicker {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
}

h3 {
  font-size: 2rem;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-main {
  color: #06111d;
  background: linear-gradient(135deg, var(--orange), #ffd247);
  box-shadow: 0 14px 32px rgba(255, 142, 43, 0.35);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel,
.system-card,
.project-card,
.video-card,
.action-card,
.ai-shell,
.trust-item {
  background: linear-gradient(155deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 20px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 40px rgba(6, 9, 19, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.stat {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--teal);
}

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

.trust-grid,
.videos-grid,
.systems-grid,
.projects-grid,
.action-grid,
.shorts-grid {
  display: grid;
  gap: 18px;
}

.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.systems-grid,
.videos-grid,
.projects-grid,
.action-grid,
.shorts-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trust-item,
.system-card,
.project-card,
.video-card,
.action-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.project-card {
  min-height: 200px;
  border: 1px solid rgba(120, 160, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(12, 20, 44, 0.95), rgba(9, 16, 35, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(40, 215, 197, 0.14), transparent 55%);
  box-shadow:
    0 22px 55px rgba(6, 9, 19, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.project-card::before {
  inset: -70% auto auto -70%;
  background: radial-gradient(circle, rgba(40, 215, 197, 0.14), transparent 70%);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(40, 215, 197, 0.62);
  box-shadow:
    0 26px 70px rgba(6, 9, 19, 0.6),
    0 0 32px rgba(40, 215, 197, 0.2);
}

.trust-item::before,
.system-card::before,
.project-card::before,
.video-card::before,
.action-card::before {
  content: "";
  position: absolute;
  inset: -80% auto auto -80%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 70%);
  pointer-events: none;
}

.trust-item p,
.system-card p,
.video-card p,
.action-card p {
  color: var(--muted);
}

.video-card {
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.video-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.shorts-grid .video-thumb {
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 215, 197, 0.62);
}

.video-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #b8c6eb;
}

.ai-shell {
  padding: 16px;
}

.ai-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(3, 9, 20, 0.5);
}

.chat-history {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.msg.user {
  margin-left: auto;
  background: rgba(40, 215, 197, 0.18);
  border: 1px solid rgba(40, 215, 197, 0.34);
}

.msg.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.chat-controls {
  display: flex;
  gap: 8px;
}

.chat-controls input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.chat-controls button {
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff8e2b, #ffd447);
  color: #0a1024;
  cursor: pointer;
}

.quick-prompts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-prompts button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.86rem;
}

.action-card {
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 142, 43, 0.72);
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #07152c;
  background: linear-gradient(140deg, var(--teal), #92fff1);
  margin-bottom: 10px;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--teal);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}


.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.btn-main {
  color: #0b0f1d;
}

.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(12, 20, 44, 0.98), rgba(9, 16, 35, 0.9));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 215, 197, 0.6);
  box-shadow:
    0 18px 40px rgba(6, 9, 19, 0.6),
    0 0 24px rgba(40, 215, 197, 0.2);
}

.music-toggle:focus-visible {
  outline: 2px solid rgba(255, 142, 43, 0.9);
  outline-offset: 3px;
}

.music-toggle.is-off {
  color: #b8c6eb;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(6, 9, 19, 0.55);
}

.music-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.music-toggle .music-off {
  display: none;
}

.music-toggle.is-off .music-off {
  display: block;
}

.music-toggle.is-off .music-on {
  display: none;
}
