:root {
  --bg: #020617;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: #0f172a;
  --surface-soft: rgba(15, 23, 42, 0.5);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.12);
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-text: #67e8f9;
  --button-text: #020617;
  --header-bg: rgba(2, 6, 23, 0.85);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-soft: rgba(226, 232, 240, 0.72);
  --text: #0f172a;
  --muted: #334155;
  --subtle: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --accent: #0891b2;
  --accent-soft: rgba(8, 145, 178, 0.12);
  --accent-text: #0e7490;
  --button-text: #ffffff;
  --header-bg: rgba(248, 250, 252, 0.88);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: 220px;
  max-width: 48vw;
  height: auto;
  display: block;
}

.logo .logo-light {
  display: none;
}

.logo .logo-dark {
  display: block;
}

:root[data-theme="dark"] .logo .logo-dark {
  display: block;
}

:root[data-theme="dark"] .logo .logo-light {
  display: none;
}

:root[data-theme="light"] .logo .logo-dark {
  display: none;
}

:root[data-theme="light"] .logo .logo-light {
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

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

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-soft);
  border-radius: 50%;
  filter: blur(100px);
  top: -200px;
  right: -150px;
  animation: dataGlow 7s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  animation: fadeUp 0.7s ease both;
}

h1 {
  font-size: 68px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -3px;
  animation: fadeUp 0.7s ease 0.08s both;
}

h1 span {
  display: block;
  color: var(--accent);
}

.hero p {
  margin-top: 28px;
  color: var(--muted);
  font-size: 20px;
  max-width: 650px;
  line-height: 1.8;
  animation: fadeUp 0.7s ease 0.16s both;
}

.buttons {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.24s both;
}

.btn {
  padding: 16px 28px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--button-text);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-text);
}

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

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

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: dataScan 3.8s ease-in-out infinite;
}

.stat-card h3 {
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--subtle);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

section {
  padding: 100px 0;
  scroll-margin-top: 96px;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 52px;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-title p {
  color: var(--subtle);
  max-width: 700px;
  margin: auto;
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.card-icon::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: dataPulse 2.6s ease-in-out infinite;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.reveal-item:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-item:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-item:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-item:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-item:nth-child(6) {
  transition-delay: 0.4s;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
  line-height: 1.8;
}

.tools-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.tool {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.tool h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: var(--accent);
}

.tool p {
  color: var(--subtle);
  font-size: 15px;
}

.detail-grid,
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.detail-card,
.sector-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.detail-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-card h3,
.sector-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.detail-card p,
.sector-item p {
  color: var(--muted);
  line-height: 1.8;
}

.sector-tags {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.sector-tags-track {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  min-width: max-content;
  animation: keywordMarquee 42s linear infinite;
}

.sector-tags:hover .sector-tags-track {
  animation-play-state: paused;
}

.sector-tags-track span {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dataGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
}

@keyframes dataScan {
  0%,
  35% {
    transform: translateX(-100%);
  }

  70%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes dataPulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes keywordMarquee {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.cta {
  text-align: center;
  padding: 120px 0;
}

.cta h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 24px;
}

.cta p {
  max-width: 800px;
  margin: auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--subtle);
}

.footer-actions {
  margin-top: 16px;
}

.text-button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 22px;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions .btn {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

@media(max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 52px;
  }

  .section-title h2,
  .cta h2 {
    font-size: 40px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    display: none;
  }

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

@media(max-width: 600px) {
  h1 {
    font-size: 42px;
  }

  .hero p,
  .cta p {
    font-size: 17px;
  }

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

  .cookie-actions,
  .cookie-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
