:root {
  /* Default theme is DARK */
  --bg: #050916;
  --bg2: #070d1f;
  --card: #0b1228;
  --card2: #0a1024;
  --border: rgba(255, 255, 255, .07);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, .72);
  --muted2: rgba(234, 240, 255, .55);
  --accent: #1fb6ff;
  --accent2: #6a5cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
}

html[data-theme="light"] {
  --bg: #f6f8ff;
  --bg2: #eef2ff;
  --card: #ffffff;
  --card2: #ffffff;
  --border: rgba(10, 16, 36, .10);
  --text: #0b1228;
  --muted: rgba(11, 18, 40, .72);
  --muted2: rgba(11, 18, 40, .55);
  --shadow: 0 18px 50px rgba(11, 18, 40, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(31, 182, 255, .16), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(106, 92, 255, .18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2) 35%, var(--bg) 100%);

  color: var(--text);
}

html[data-theme="light"] .topbar {
  background: rgba(246, 248, 255, .75);
  border-bottom: 1px solid rgba(10, 16, 36, .10);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Maintenance overlay */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .50);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 18px;
}

.maintenance-card {
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(12, 20, 46, .95), rgba(8, 13, 30, .95));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.maintenance-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.maintenance-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.hint {
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
}

kbd {
  font: inherit;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 22, .55);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .header {
  background: rgba(255, 255, 255, .75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.brand-text {
  margin: 0;
  line-height: 1;
}

/* logo theme control */
.brand .logo-light,
.brand .logo-dark {
  display: none;
}

/* dark theme */
html[data-theme="dark"] .brand .logo-dark {
  display: block;
}

/* light theme */
html[data-theme="light"] .brand .logo-light {
  display: block;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  position: relative;

  background:
    radial-gradient(circle at 30% 30%, rgba(31, 182, 255, .9), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(106, 92, 255, .9), transparent 55%),
    linear-gradient(135deg, rgba(31, 182, 255, .2), rgba(106, 92, 255, .25));

  border: 1px solid rgba(255, 255, 255, .12);

  box-shadow:
    0 4px 12px rgba(31, 182, 255, .25),
    inset 0 0 10px rgba(255, 255, 255, .08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);

  box-shadow:
    10px 4px 0 rgba(106, 92, 255, .9),
    6px 12px 0 rgba(31, 182, 255, .9);
}

.brand-text {
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 500;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 182, 255, .35);
  background: linear-gradient(135deg,
      rgba(31, 182, 255, .08),
      rgba(106, 92, 255, .08));
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border-color: rgba(31, 182, 255, .25);
  background: linear-gradient(135deg, rgba(31, 182, 255, .22), rgba(106, 92, 255, .18));
}

.btn-ghost {
  background: rgba(255, 255, 255, .02);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.icon-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(234, 240, 255, .85);
  border-radius: 99px;
}

/* Mobile nav */
.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(5, 9, 22, .82);
  backdrop-filter: blur(12px);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
}

.mobile-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -40px -40px auto -40px;
  height: 420px;
  background:
    radial-gradient(700px 340px at 35% 35%, rgba(31, 182, 255, .22), transparent 60%),
    radial-gradient(720px 360px at 70% 15%, rgba(106, 92, 255, .22), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: 13px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(31, 182, 255, .10);
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -1.1px;
}

.hero .accent {
  background: linear-gradient(90deg, var(--accent), #8b7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metric {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  border-radius: 16px;
  padding: 12px 12px;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.metric-label {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(0px);
  opacity: .9;
}

.orb-a {
  left: -30px;
  top: 0;
  background: radial-gradient(circle at 30% 30%, rgba(31, 182, 255, .35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(106, 92, 255, .25), transparent 55%);
}

.orb-b {
  right: -40px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(106, 92, 255, .33), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(31, 182, 255, .22), transparent 60%);
}

.hero-card {
  width: min(420px, 100%);
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 16px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-badge {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #3dffb4;
  box-shadow: 0 0 0 6px rgba(61, 255, 180, .10);
}

.hero-card-body .line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .05);
  margin: 10px 0;
}

.w60 {
  width: 60%;
}

.w80 {
  width: 80%;
}

.w90 {
  width: 90%;
}

.spacer {
  height: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chips span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12px;
}

.metric-row {
  margin-bottom: 10px;
}

.metric-row span {
  font-size: 12px;
  color: var(--muted2);
  display: block;
  margin-bottom: 4px;
}

.bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 20px;
  animation: loadBar 1.6s ease;
}

@keyframes loadBar {
  from {
    width: 0
  }
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Cards */
.grid {
  display: grid;
  gap: 14px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

.card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(31, 182, 255, .08);
  border: 1px solid rgba(31, 182, 255, .18);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.card-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted2);
}

.card-list li {
  margin: 6px 0;
}

/* Strip */
.strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.strip-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.strip-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-title {
  font-weight: 700;
  font-size: 13px;
}

.strip-desc {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 2px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.media-card {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
  box-shadow: var(--shadow);
}

.about-copy h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.about-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.about-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 14px;
}

.about-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tick {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(31, 182, 255, .25), rgba(106, 92, 255, .18));
  border: 1px solid rgba(255, 255, 255, .10);
  margin-top: 2px;
  position: relative;
}

.tick:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 6px;
  height: 9px;
  border-right: 2px solid rgba(234, 240, 255, .95);
  border-bottom: 2px solid rgba(234, 240, 255, .95);
  transform: rotate(40deg);
}

.about-title {
  font-weight: 700;
  font-size: 14px;
}

.about-desc {
  color: var(--muted2);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.5;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  padding: 12px;
  text-align: center;
}

.stat-value {
  font-weight: 800;
  font-size: 20px;
}

.stat-label {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 2px;
}

.note {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, .02);
  padding: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Projects */
.project {
  padding: 0;
  overflow: hidden;
}

.project-thumb {
  height: 170px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 14px 16px 16px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tags span {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: stretch;
}

.form label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.form span {
  font-size: 12px;
  color: var(--muted2);
}

input,
textarea {
  width: 100%;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  transition: border-color .12s ease, background .12s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(31, 182, 255, .35);
  background: rgba(31, 182, 255, .04);
}

textarea {
  resize: none;
}

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

.form button {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-info h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-title {
  font-weight: 700;
  font-size: 13px;
}

.info-desc {
  color: var(--muted2);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.45;
}

.info-desc a {
  color: var(--text);
  font-weight: 500;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
  margin: 14px 0;
}

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

.leader {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(31, 182, 255, .22);
  background: linear-gradient(135deg, rgba(31, 182, 255, .16), rgba(106, 92, 255, .12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.leader-name {
  font-weight: 700;
}

.leader-role {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 1px;
}

/* Footer */
.footer {
  padding: 34px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-brand p {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-col {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted2);
}

/* Map Card - Same size as form */

.map-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.map-header h3 {
  margin: 0;
  font-size: 16px;
}

.map-header p {
  margin: 6px 0 0;
  color: var(--muted2);
  font-size: 13px;
}


.map-card iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 44px;
  }

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

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

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

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

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .nav {
    display: none;
  }

  .icon-btn {
    display: flex;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

/* Theme toggle */
.theme-toggle .theme-ic {
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 520px) {
  .theme-toggle .theme-txt {
    display: none;
  }
}