:root{
  --bg0: #05070c;
  --bg1: #070b14;
  --panel: rgba(10, 16, 28, 0.62);
  --panel2: rgba(10, 16, 28, 0.35);
  --border: rgba(90, 160, 255, 0.18);
  --border2: rgba(90, 160, 255, 0.28);

  --text: rgba(240, 247, 255, 0.92);
  --muted: rgba(240, 247, 255, 0.68);

  --blue: #3b82f6;
  --blue2:#60a5fa;
  --cyan:#22d3ee;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 16px;

  --font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Orbitron", "Inter", system-ui, sans-serif;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-ui);
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, rgba(59,130,246,.12), transparent 50%),
              radial-gradient(1000px 700px at 90% 20%, rgba(34,211,238,.08), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(34,211,238,.75));
  color: #061022;
  font-weight: 700;
  letter-spacing:.2px;
  box-shadow: 0 10px 30px rgba(59,130,246,.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); box-shadow: 0 14px 36px rgba(59,130,246,.25); }
.btn:active{ transform: translateY(0); }

.btn--ghost{
  background: rgba(8, 14, 26, 0.55);
  color: var(--text);
  border: 1px solid var(--border2);
  box-shadow: none;
}
.btn--small{ padding: 10px 12px; border-radius: 12px; font-weight: 700; }

.header{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,7,12,.70), rgba(5,7,12,.35));
  border-bottom: 1px solid rgba(90,160,255,.12);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand__logo{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(90,160,255,.25);
  background: rgba(0,0,0,.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  object-fit: cover;
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{
  font-family: var(--font-display);
  letter-spacing:.6px;
  font-weight: 700;
  font-size: 14px;
}
.brand__tag{ font-size: 12px; color: var(--muted); }

.nav__links{
  display:flex;
  gap: 14px;
  align-items:center;
}
.nav__links a{
  font-weight: 600;
  color: rgba(240,247,255,.82);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.nav__links a:hover{
  background: rgba(90,160,255,.08);
  border-color: rgba(90,160,255,.14);
}

.nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(90,160,255,.22);
  background: rgba(10, 16, 28, 0.55);
  color: var(--text);
}
.nav__toggle span{
  display:block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: rgba(240,247,255,.84);
  border-radius: 999px;
}

.hero{
  padding: 72px 0 36px;
  position: relative;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 28px;
  align-items: start;
}
.eyebrow{
  color: rgba(96,165,250,.95);
  font-weight: 600;
  letter-spacing: .4px;
  margin: 0 0 14px;
}
.hero__title{
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.glow{
  background: linear-gradient(90deg, rgba(96,165,250,1), rgba(34,211,238,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(59,130,246,.25);
}
.hero__subtitle{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.hero__cta{ display:flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.hero__meta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.meta{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.40);
  border: 1px solid rgba(90,160,255,.14);
}
.meta__kpi{ display:block; font-weight: 800; }
.meta__label{ display:block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.hero__panel{ position: relative; }
.hero__note{
  margin: 12px 0 0;
  color: rgba(240,247,255,.56);
  font-size: 12px;
}

.panel{
  border-radius: var(--radius);
  border: 1px solid rgba(90,160,255,.18);
  background: linear-gradient(180deg, rgba(10,16,28,.64), rgba(10,16,28,.34));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__top{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(90,160,255,.14);
  background: rgba(8, 12, 22, 0.65);
}
.dot{ width:10px; height:10px; border-radius:999px; opacity:.9; }
.dot--red{ background:#ff4d4d; }
.dot--yellow{ background:#ffcc00; }
.dot--green{ background:#22c55e; }
.panel__title{
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .8px;
  color: rgba(240,247,255,.72);
}

.panel__body{ padding: 16px; }
.chip{
  display:inline-flex;
  padding: 8px 10px;
  margin: 0 8px 10px 0;
  border-radius: 999px;
  border: 1px solid rgba(90,160,255,.18);
  background: rgba(90,160,255,.08);
  color: rgba(240,247,255,.86);
  font-weight: 600;
  font-size: 12px;
}
.terminal{
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(90,160,255,.16);
  background: rgba(0,0,0,.22);
}
.terminal p{ margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 12px; }
.terminal__prompt{ color: rgba(34,211,238,.95); }
.terminal__line{ color: rgba(240,247,255,.70); margin-left: 14px; }

.panel__actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.section{
  padding: 56px 0;
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section__title{
  margin:0;
  font-family: var(--font-display);
  letter-spacing: .6px;
  font-size: 22px;
}
.section__desc{
  margin:0;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  font-size: 14px;
}

.grid{
  display:grid;
  gap: 14px;
}
.grid--3{ grid-template-columns: repeat(3, 1fr); }

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(90,160,255,.16);
  background: linear-gradient(180deg, rgba(10,16,28,.55), rgba(10,16,28,.28));
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.card h3{ margin:0 0 8px; font-size: 16px; }
.card p{ margin:0 0 12px; color: var(--muted); line-height:1.6; font-size: 13px; }
.card--highlight{
  border-color: rgba(34,211,238,.22);
  background: radial-gradient(600px 240px at 10% 20%, rgba(34,211,238,.10), transparent 55%),
              linear-gradient(180deg, rgba(10,16,28,.55), rgba(10,16,28,.28));
}

.list{
  margin:0;
  padding-left: 18px;
  color: rgba(240,247,255,.78);
  font-size: 13px;
}
.list li{ margin: 6px 0; }

.work{
  border-radius: var(--radius);
  border: 1px solid rgba(90,160,255,.16);
  overflow:hidden;
  background: rgba(10,16,28,.35);
  transition: transform .15s ease, border-color .15s ease;
  display:block;
}
.work:hover{ transform: translateY(-2px); border-color: rgba(34,211,238,.28); }
.work__thumb{
  height: 150px;
  position: relative;
  background:
    radial-gradient(500px 260px at 10% 20%, rgba(59,130,246,.26), transparent 55%),
    radial-gradient(500px 260px at 90% 30%, rgba(34,211,238,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.work__shine{
  position:absolute; inset:-40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-30%) rotate(15deg);
  animation: shine 6.5s ease-in-out infinite;
}
@keyframes shine{
  0%, 60% { transform: translateX(-40%) rotate(15deg); opacity:.0; }
  70% { opacity:.8; }
  100% { transform: translateX(30%) rotate(15deg); opacity:0; }
}
.work__badge{
  position:absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(240,247,255,.92);
  background: rgba(8,14,26,.55);
  border: 1px solid rgba(90,160,255,.16);
}
.work__meta{ padding: 14px 16px 16px; }
.work__meta h3{ margin:0 0 6px; font-size: 15px; }
.work__meta p{ margin:0; color: var(--muted); font-size: 13px; line-height:1.5; }

.about{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: start;
}
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.stat{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(90,160,255,.14);
  background: rgba(10,16,28,.35);
}
.stat__num{ display:block; font-family: var(--font-display); letter-spacing:.6px; font-size: 18px; }
.stat__label{ display:block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.swatches{ display:flex; gap: 10px; margin-top: 10px; }
.swatch{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(90,160,255,.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.swatch--1{ background: #060912; }
.swatch--2{ background: #0b1530; }
.swatch--3{ background: #3b82f6; }
.swatch--4{ background: #22d3ee; }

.form{
  border-radius: var(--radius);
  border: 1px solid rgba(90,160,255,.16);
  background: linear-gradient(180deg, rgba(10,16,28,.55), rgba(10,16,28,.28));
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.form label{ display:block; }
.form span{ display:block; font-size: 12px; color: rgba(240,247,255,.70); margin-bottom: 8px; font-weight: 600; }
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
input, select, textarea{
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(90,160,255,.16);
  background: rgba(0,0,0,.18);
  color: rgba(240,247,255,.92);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(34,211,238,.38);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
textarea{ resize: vertical; }

.form__actions{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.form__hint{
  margin:0;
  color: rgba(240,247,255,.55);
  font-size: 12px;
}

.footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(90,160,255,.12);
  background: rgba(5,7,12,.45);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__name{
  font-family: var(--font-display);
  letter-spacing:.6px;
  font-weight: 700;
}
.footer__small{ display:block; margin-top: 4px; color: rgba(240,247,255,.55); font-size: 12px; }
.footer__links{ display:flex; gap: 12px; flex-wrap: wrap; }
.footer__links a{
  color: rgba(240,247,255,.70);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.footer__links a:hover{
  background: rgba(90,160,255,.08);
  border-color: rgba(90,160,255,.14);
}

/* Background visuals */
.bg{ position: fixed; inset: 0; z-index: -1; pointer-events:none; }
.bg__grid{
  position:absolute; inset:-20%;
  background-image:
    linear-gradient(rgba(90,160,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,160,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(58deg) translateY(-12%);
  filter: blur(0.2px);
  opacity: .45;
}
.bg__orb{
  position:absolute;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  filter: blur(50px);
  opacity: .35;
}
.bg__orb--1{ background: rgba(59,130,246,.55); left: -180px; top: -140px; }
.bg__orb--2{ background: rgba(34,211,238,.38); right: -240px; top: 140px; width: 620px; height: 620px; }
.bg__orb--3{ background: rgba(96,165,250,.28); left: 20%; bottom: -320px; width: 760px; height: 760px; }

/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .section__head{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 720px){
  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav__links{
    position: absolute;
    right: 20px;
    top: 68px;
    width: min(320px, calc(100% - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(90,160,255,.16);
    background: rgba(5,7,12,.72);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open{ display:flex; }
  .nav__links a{ padding: 12px; }
  .form__row{ grid-template-columns: 1fr; }
}

/* Smooth anchor scrolling */
html{
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* offsets sticky header */
}

@keyframes sectionFlashAll{
  0%{
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(34,211,238,0);
  }
  15%{
    filter: brightness(1.25) saturate(1.35);
    box-shadow:
      0 0 0 6px rgba(34,211,238,0.20),
      0 0 40px rgba(34,211,238,0.18);
  }
  30%{
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(34,211,238,0);
  }
  55%{
    filter: brightness(1.25) saturate(1.35);
    box-shadow:
      0 0 0 6px rgba(34,211,238,0.20),
      0 0 40px rgba(34,211,238,0.18);
  }
  75%{
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(34,211,238,0);
  }
  100%{
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(34,211,238,0);
  }
}

.section.flash-target{
  border-radius: var(--radius);
  will-change: filter, box-shadow;
}

.section.flash{
  animation: sectionFlashAll 900ms ease-out 1;
}

/* Base: visible (at the top) */
.header{
  position: sticky;
  top: 0;
  z-index: 30;

  background: linear-gradient(180deg, rgba(5,7,12,.70), rgba(5,7,12,.35));
  border-bottom: 1px solid rgba(90,160,255,.12);
  backdrop-filter: blur(14px);

  transform-origin: top center;

  /* Slow + clean animation */
  transition:
    background 520ms cubic-bezier(.2,.8,.2,1),
    border-color 520ms cubic-bezier(.2,.8,.2,1),
    backdrop-filter 520ms cubic-bezier(.2,.8,.2,1),
    transform 520ms cubic-bezier(.2,.8,.2,1);
  will-change: background, border-color, backdrop-filter, transform;
}

/* When scrolling down: transparent + minimized */
.header.nav--scrolled{
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  transform: scale(0.96);
}

/* Optional: tighter padding when minimized */
.header.nav--scrolled .nav{
  padding: 10px 0; /* default is 14px 0 */
  transition: padding 520ms cubic-bezier(.2,.8,.2,1);
}