:root {
  --bg: #071320;
  --bg-soft: rgba(10, 27, 43, 0.82);
  --panel: rgba(9, 27, 44, 0.78);
  --panel-strong: rgba(11, 32, 52, 0.96);
  --border: rgba(104, 177, 255, 0.12);
  --text: #edf4ff;
  --muted: #99afc6;
  --primary: #59d7ff;
  --primary-2: #92f4ff;
  --accent: #dfff69;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(82, 146, 222, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 146, 222, 0.08) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(39, 115, 188, 0.22), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(58, 145, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #081523 0%, #07111c 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  min-height: 100vh;
}

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

.app-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 16px 22px;
  background: rgba(7, 20, 33, 0.75);
  border: 1px solid rgba(116, 174, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  color: var(--primary);
  letter-spacing: -1px;
  font-size: 0.85rem;
}

.brand-text {
  letter-spacing: 0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

.panel-grid,
.section-block,
.contact-panel {
  background: linear-gradient(180deg, rgba(13, 32, 50, 0.9), rgba(8, 24, 38, 0.82));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  margin-top: 22px;
  padding: 44px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 22%, rgba(89, 215, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #85c8ff;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #03111c;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 36px rgba(89, 215, 255, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(132, 180, 226, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats > div {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(115, 177, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats strong {
  display: block;
  font-size: 1.3rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.feature-card,
.nav-card,
.project-card,
.contact-panel {
  position: relative;
  overflow: hidden;
}

.glow-card {
  background: linear-gradient(180deg, rgba(11, 29, 46, 0.9), rgba(8, 25, 41, 0.88));
  border: 1px solid rgba(103, 175, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 45px rgba(0, 0, 0, 0.26);
}

.glow-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(114, 189, 255, 0.12), transparent 60%);
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 172px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-card h3,
.section-head h2,
.contact-panel h3 {
  margin: 0;
}

.feature-card p,
.section-head p,
.contact-panel p,
.card-meta,
.project-card p {
  color: var(--muted);
}

.feature-card p {
  margin: 12px 0 0;
  line-height: 1.75;
}

.feature-card a {
  margin-top: 18px;
  color: #7fe7ff;
  font-weight: 700;
}

.section-block {
  margin-top: 26px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(126, 176, 224, 0.12);
}

.section-head h2 {
  font-size: 2rem;
}

.section-head p {
  margin: 0;
  max-width: 600px;
  line-height: 1.7;
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nav-card,
.project-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  min-height: 128px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 27, 42, 0.92), rgba(7, 23, 36, 0.88));
  border: 1px solid rgba(106, 176, 255, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(114, 205, 255, 0.32);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.2rem;
  color: #061420;
  background: linear-gradient(135deg, #96f2ff, #5fc8ff);
}

.card-content {
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title-row h3 {
  margin: 0;
  font-size: 1rem;
}

.card-arrow {
  color: #7fe7ff;
  opacity: 0.9;
}

.card-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.card-tag {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(118, 192, 255, 0.1);
  color: #8ddfff;
  font-size: 0.76rem;
  font-weight: 700;
}

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

.project-card {
  min-height: 150px;
  flex-direction: column;
  gap: 14px;
}

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

.project-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 255, 105, 0.12);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.project-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.project-card p {
  margin: 0;
  line-height: 1.8;
}

.project-link {
  margin-top: auto;
  color: #8fe9ff;
  font-weight: 700;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: rgba(9, 27, 44, 0.6);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-sep {
  opacity: 0.35;
}

.footer-submit {
  color: #7fe7ff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-submit:hover {
  color: var(--primary-2);
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px;
  }

  .section-head,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 8px;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .section-block {
    padding: 22px 16px;
  }

  .feature-card,
  .nav-card,
  .project-card,
  .contact-panel {
    border-radius: 18px;
  }
}
