* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #030712;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: #38bdf8;
}

.menu {
  display: flex;
  gap: 30px;
  color: #cbd5e1;
  font-size: 15px;
}

.menu a:hover {
  color: #38bdf8;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle:hover {
  color: #38bdf8;
  border-color: rgba(56,189,248,.45);
}

.nav-cta {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-cta:hover {
  opacity: .88;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  top: 76px;
  right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - 76px);
  background: rgba(5, 12, 30, 0.97);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,.1);
  z-index: 49;
  transform: translateX(100%);
  transition: transform .32s ease;
  padding: 36px 28px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer nav a {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  color: #cbd5e1;
}

.mobile-drawer nav a:hover {
  background: rgba(56,189,248,.1);
  color: #38bdf8;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0,0,0,.5);
}

.drawer-overlay.open {
  display: block;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,.35), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,.22), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(14,165,233,.18), transparent 35%);
  animation: glowMove 12s ease-in-out infinite alternate;
}

@keyframes glowMove {
  from {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 2%, 0) scale(1.08);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}

.hero-text {
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 999px;
  background: rgba(56,189,248,.08);
  color: #bae6fd;
  margin-bottom: 26px;
  font-size: 14px;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: .96;
  letter-spacing: -4px;
  margin: 0 0 28px;
}

.lead {
  font-size: 21px;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 720px;
  margin-bottom: 36px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  box-shadow: 0 20px 50px rgba(37,99,235,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(37,99,235,.5);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.1);
}

/* TECH CARD */
.tech-card {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(2,6,23,.85));
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
}

.orbit {
  position: absolute;
  inset: 45px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 30px #38bdf8;
}

.orbit::before {
  top: -7px;
  left: 50%;
}

.orbit::after {
  bottom: -7px;
  right: 28%;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.core {
  position: absolute;
  inset: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 34px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 80px rgba(56,189,248,.55);
}

/* SECTIONS */
section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -2px;
  margin: 0 0 18px;
}

.section-sub {
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 42px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  display: block;
  cursor: pointer;
  padding: 30px;
  border-radius: 26px;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(255,255,255,.09);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
  border-color: rgba(56,189,248,.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(37,99,235,.18), 0 0 0 1px rgba(56,189,248,.12);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 23px;
}

.card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

/* CONTACT */
.contact-box {
  padding: 50px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.20), transparent 35%),
    linear-gradient(135deg, #0f172a, #020617);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

/* ===== FOOTER ===== */

footer{
  background:#020617;
  border-top:1px solid rgba(255,255,255,.08);
  padding:45px 0 25px;
  color:#94a3b8;
}

.footer-grid{
  display:grid;
  grid-template-columns:300px 170px 170px 230px;
  justify-content:center;
  gap:50px;
  align-items:start;
}

.footer-brand{
  max-width:320px;
}

.footer-text{
  margin-top:18px;
  line-height:1.5;
  font-size:15px;
  color:#94a3b8;
}

.footer-column{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-column h4{
  margin:0 0 10px;
  color:#fff;
  font-size:16px;
  font-weight:700;
}

.footer-column a,
.footer-column span{
  color:#94a3b8;
  text-decoration:none;
  font-size:15px;
  line-height:1.5;
}

.footer-column a:hover{
  color:#38bdf8;
}

.footer-bottom{
  margin-top:40px;
  padding-top:25px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:#64748b;
  font-size:14px;
}

.footer-bottom span{
  display:block;
  margin-top:8px;
}

@media (max-width:900px){

  .footer-grid{
    grid-template-columns:1fr;
    gap:40px;
  }

  .footer-brand{
    max-width:100%;
  }
}


/* INTERNAL PAGES */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-content {
  padding: 90px 0;
}

.page-content h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.5px;
  margin: 0 0 18px;
}

.page-content p {
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 850px;
  margin: 0 0 26px;
}

.page-cta {
  padding: 90px 0;
}

.page-cta-box {
  padding: 50px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.20), transparent 35%),
    linear-gradient(135deg, #0f172a, #020617);
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(72px, 12vw, 150px);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .menu,
  .hide-mobile {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    letter-spacing: -2px;
  }

  .tech-card {
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  section {
    padding: 75px 0;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .contact-box {
    padding: 32px;
  }
}