/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #020611;
  color: #ffffff;
  overflow-x: hidden;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================
   GLOBAL SECTION
========================= */
.section {
  padding: 100px 0;
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   BACKGROUND PARTICLES
========================= */
.particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: #020611;
  pointer-events: none;
}

.particles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#00d9ff 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .08;
}

.particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#8b5cf6 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: .06;
}

/* =========================
   HEADER
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(2, 6, 17, .1);
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}

header.scrolled {
  background: rgba(2, 6, 17, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .30);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 40px;
  display: block;
}

/* =========================
   MENU
========================= */
.menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.menu li a {
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  font-weight: 500;
  transition: color .25s;
  white-space: nowrap;
}

.menu li a:hover {
  color: #00d9ff;
}

/* =========================
   NAV RIGHT
========================= */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* LANG SELECT — DROPDOWN */
.lang-switch {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(0, 217, 255, .35);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}

.lang-toggle:hover,
.lang-switch.open .lang-toggle {
  border-color: #00d9ff;
  background: rgba(0, 217, 255, .06);
}

.lang-toggle svg.lang-flag {
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-toggle .lang-arrow {
  transition: transform .25s;
  opacity: .6;
}

.lang-switch.open .lang-arrow {
  transform: rotate(180deg);
}

/* DROPDOWN LIST */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  background: rgba(8, 16, 30, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 217, 255, .2);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}

.lang-switch.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .75);
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.lang-option svg {
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-option:hover {
  background: rgba(0, 217, 255, .08);
  color: #fff;
}

.lang-option.active {
  color: #00d9ff;
}

/* =========================
   HAMBURGER
========================= */
.hamb {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.hamb span {
  width: 26px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 10px;
  transition: transform .3s ease, opacity .3s ease;
  display: block;
}

.hamb.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamb.active span:nth-child(2) {
  opacity: 0;
}

.hamb.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================
   MINI TITLE
========================= */
.mini-title {
  display: block;
  color: #00d9ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 60px;
  background: url("assets/banner.png") center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(2, 6, 17, .96) 32%,
      rgba(2, 6, 17, .45) 65%,
      rgba(2, 6, 17, .97) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 620px;
}

.hero-text>span {
  color: #00d9ff;
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
  letter-spacing: .5px;
}

.hero-text h1 {
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-text p {
  color: #c6d0e6;
  line-height: 1.8;
  font-size: 17px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 36px;
  border-radius: 12px;
  border: 1px solid #00d9ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .3s, box-shadow .3s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 217, 255, .22);
}

/* =========================
   STATS STRIP
========================= */
.stats-strip {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.stats-wrapper {
  overflow: hidden;
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.stat-item span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8fa0c5;
}

.stat-item h3 {
  color: #00d9ff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

/* =========================
   PROBLEM
========================= */
.problem-section {
  padding: 100px 0;
}

.problem-top {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.problem-top h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 18px;
}

.problem-top p {
  color: #c4cde2;
  line-height: 1.8;
  font-size: 16px;
}

/* FLOW LAYOUT */
.flow-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 50px;
  align-items: center;
}

.flow-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #08101d;
  border: 1px solid rgba(0, 217, 255, .12);
  font-size: 14px;
  transition: border-color .3s, transform .3s;
}

.flow-item span {
  flex: 1;
}

.flow-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .7;
}

.flow-item:hover {
  border-color: rgba(0, 217, 255, .4);
  transform: translateY(-2px);
}

.flow-item.danger {
  justify-content: center;
  text-align: center;
  border-color: rgba(255, 100, 100, .18);
  color: #ffaaaa;
}

.flow-item.danger:hover {
  border-color: rgba(255, 100, 100, .4);
}

/* NETWORK CANVAS */
.flow-center {
  height: 280px;
  position: relative;
}

#networkCanvas {
  width: 100%;
  height: 100%;
  opacity: .9;
  filter: brightness(1.15);
}

/* FOOTER BOX */
.problem-footer-box {
  margin-top: 40px;
  text-align: center;
  color: #00d9ff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 0 14px rgba(0, 217, 255, .35);
}

/* =========================
   PARADIGM
========================= */
.paradigm-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #081226, #050913);
  position: relative;
  overflow: hidden;
}

.paradigm-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 217, 255, .07), transparent 60%);
  pointer-events: none;
}

.paradigm-title {
  text-align: center;
  color: #00d9ff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 56px;
}

.paradigm-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.paradigm-left img {
  width: 100%;
  max-width: 520px;
  display: block;
  border-radius: 16px;
}

.paradigm-right h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.paradigm-right p {
  color: #c4cde2;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 440px;
  font-size: 16px;
}

.paradigm-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 12px;
  border: 1px solid #00d9ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .3s, box-shadow .3s;
}

.paradigm-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 217, 255, .22);
}

/* =========================
   CAPABILITIES
========================= */
.cap-section {
  padding: 100px 0;
}

.cap-head {
  max-width: 860px;
  margin: 0 auto 52px;
  text-align: center;
}

.cap-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.cap-card {
  background: #060d1a;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 28px 22px;
  transition: transform .35s, border-color .35s;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, .3);
}

.cap-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 18px;
}

.cap-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cap-card p {
  font-size: 13px;
  color: #8fa0c5;
  line-height: 1.65;
}

/* =========================
   CONTACT
========================= */
.contact-section {
  padding: 100px 0;
}

.contact-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.contact-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-head p {
  color: #c4cde2;
  line-height: 1.75;
  font-size: 16px;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* FLOAT LABEL GROUP */
.input-group {
  position: relative;
  padding-top: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 10px 4px;
  color: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .3s;
  display: block;
}

.input-group textarea {
  resize: vertical;
  min-height: 110px;
  margin-bottom: 28px;
}

.input-group label {
  position: absolute;
  left: 4px;
  top: 30px;
  color: #6a7fa8;
  font-size: 14px;
  pointer-events: none;
  transition: top .25s, font-size .25s, color .25s;
}

/* Float up when focused or has value */
.input-group input:focus+label,
.input-group textarea:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:not(:placeholder-shown)+label,
.input-group input:valid+label,
.input-group textarea:valid+label {
  top: 4px;
  font-size: 11px;
  color: #00d9ff;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #00d9ff;
}

/* SUBMIT BUTTON */
.contact-btn {
  width: 100%;
  margin-top: 8px;
  padding: 17px;
  border-radius: 12px;
  border: 1px solid #00d9ff;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .3s, box-shadow .3s, transform .3s, opacity .3s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-btn:hover:not(:disabled) {
  background: rgba(0, 217, 255, .08);
  box-shadow: 0 0 28px rgba(0, 217, 255, .18);
  transform: translateY(-2px);
}

.contact-btn:disabled {
  pointer-events: none;
  opacity: .65;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 217, 255, .4);
  border-top-color: #00d9ff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin .7s linear infinite;
}

.contact-btn.loading .btn-spinner {
  display: block;
}

.contact-btn.loading .btn-text {
  opacity: .7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   FIELD ERRORS
========================= */
.field-error {
  display: block;
  font-size: 11.5px;
  color: #ff7070;
  margin-top: 5px;
  min-height: 16px;
  transition: opacity .2s;
}

.input-group.has-error input,
.input-group.has-error textarea {
  border-color: rgba(255, 100, 100, .55);
}

.input-group.has-error label {
  color: #ff7070;
}

.input-group.has-error input:focus+label,
.input-group.has-error textarea:focus+label {
  color: #ff7070;
}

/* =========================
   FORM RESULT BANNER
========================= */
.form-result {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: none;
  align-items: center;
  gap: 12px;
  animation: fadeInUp .4s ease;
}

.form-result.success {
  display: flex;
  background: rgba(0, 217, 120, .07);
  border: 1px solid rgba(0, 217, 120, .25);
  color: #4dffa6;
}

.form-result.error {
  display: flex;
  background: rgba(255, 80, 80, .07);
  border: 1px solid rgba(255, 80, 80, .25);
  color: #ff8080;
}

.form-result svg {
  flex-shrink: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* =========================
   FOOTER
========================= */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-social {
  text-align: center;
  margin-bottom: 48px;
}

.footer-social p {
  color: #8fa0c5;
  margin-bottom: 22px;
  font-size: 14px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 217, 255, .15);
  color: #fff;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.social-icons a:hover {
  border-color: #00d9ff;
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(0, 217, 255, .25);
}

.social-icons svg {
  fill: currentColor;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot img {
  height: 30px;
  display: block;
}

.foot p {
  font-size: 14px;
  color: #8fa0c5;
}

/* =========================
   RESPONSIVE — TABLET (≤1200px)
========================= */
@media (max-width: 1200px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   RESPONSIVE — TABLET (≤1024px)
========================= */
@media (max-width: 1024px) {

  .paradigm-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .paradigm-left {
    order: 2;
  }

  .paradigm-right {
    order: 1;
  }

  .paradigm-right p {
    margin: 0 auto 26px;
  }

  .paradigm-left img {
    max-width: 400px;
    margin: 0 auto;
  }

}

/* =========================
   RESPONSIVE — MEDIUM (≤900px)
========================= */
@media (max-width: 900px) {

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow-center {
    order: 2;
    height: 220px;
  }

  .flow-col.left {
    order: 1;
  }

  .flow-col.right {
    order: 3;
  }

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

}

/* =========================
   RESPONSIVE — MOBILE (≤768px)
========================= */
@media (max-width: 768px) {

  /* Show hamburger, hide menu */
  .hamb {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 17, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .menu.active {
    max-height: 420px;
    padding: 20px 0 28px;
  }

  .menu li {
    width: 100%;
    text-align: center;
  }

  .menu li a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* Stats carousel on mobile */
  .stats-grid {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: scrollStats 18s linear infinite;
  }

  .stat-item {
    min-width: 220px;
  }

}

@keyframes scrollStats {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   RESPONSIVE — SMALL (≤600px)
========================= */
@media (max-width: 600px) {

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text h2 {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 15px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-head h2 {
    font-size: 30px;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }

  .problem-top h2 {
    font-size: 30px;
  }

  .paradigm-title {
    font-size: 16px;
  }

  .paradigm-right h3 {
    font-size: 24px;
  }

}