:root {
  --bg: #020617;
  --border: #1f2937;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-strong: #06b6d4;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #0b1120 0, transparent 55%),
    radial-gradient(circle at 80% 20%, #0f172a 0, transparent 55%),
    radial-gradient(circle at bottom, #020617 0, #000 70%);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; }
.brand { display: flex; min-width: 0; }
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo-image {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo:hover { text-decoration: none; }
.brand-bridge-logo { width: auto; height: 32px; flex-shrink: 0; }
.brand-text-block { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.brand-name {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}
.brand-tagline {
  margin-top: 5px;
  font-size: 0.9rem;
}
.nav-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.nav-links a { padding: 0.35rem 0.7rem; color: var(--muted); border: 1px solid transparent; border-radius: var(--radius-pill); text-decoration: none; }
.nav-links a:hover { color: var(--text); background: rgba(15, 23, 42, 0.8); border-color: rgba(148, 163, 184, 0.4); }
.nav-demos {
  padding: 0.4rem 0.9rem !important;
  color: #020617 !important;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent !important;
  box-shadow: 0 10px 28px rgba(8, 47, 73, 0.55);
}
.nav-demos:hover {
  color: #020617 !important;
  filter: brightness(1.08);
  text-decoration: none;
}
.nav-demos[aria-current="page"] {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45), 0 10px 28px rgba(8, 47, 73, 0.55);
}
.nav-cta { padding: 0.4rem 0.9rem !important; color: #020617 !important; font-weight: 600; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-radius: var(--radius-pill); box-shadow: 0 10px 28px rgba(8, 47, 73, 0.55); }

main { padding-bottom: 4rem; }
section { padding: 3rem 0; }
section:first-of-type { padding-top: 2.6rem; }
section:last-of-type { padding-bottom: 4rem; }
.section-label { margin-bottom: 0.4rem; color: var(--muted); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.section-title { margin: 0 0 1.4rem; font-size: clamp(1.35rem, 2vw, 1.75rem); }

.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr); gap: 2.4rem; align-items: center; }
.hero-title { margin: 0 0 0.8rem; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; }
.hero-title span { color: transparent; background: linear-gradient(135deg, var(--accent), #a855f7); -webkit-background-clip: text; background-clip: text; }
.hero-subtitle { max-width: 36rem; margin-bottom: 1.4rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.hero-subtitle strong { color: var(--text); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.6rem; }
.pill { padding: 0.25rem 0.7rem; color: var(--muted); font-size: 0.75rem; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(148, 163, 184, 0.38); border-radius: var(--radius-pill); }
a.pill { display: inline-flex; align-items: center; justify-content: center; color: var(--text); font-weight: 500; text-decoration: none; cursor: pointer; }
a.pill:hover { color: var(--text); text-decoration: none; border-color: rgba(148, 163, 184, 0.7); background: rgba(15, 23, 42, 1); }
.hero-actions .pill { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.hero-actions .btn {
  min-height: 2.75rem;
  line-height: 1.25;
  box-sizing: border-box;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.6rem 1.1rem; color: var(--text); font-size: 0.85rem; font-weight: 500; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(148, 163, 184, 0.5); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { color: #020617; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border: none; box-shadow: var(--shadow-lg); }
.btn-demos {
  color: #020617;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  box-shadow: var(--shadow-lg);
}
.btn-demos:hover {
  color: #020617;
  filter: brightness(1.08);
}
.btn .icon { display: inline-flex; align-items: center; font-size: 0.95rem; line-height: 1; }
.hero-side-card { padding: 1.1rem 1.1rem 1.2rem; background: radial-gradient(circle at top left, #0f172a, #020617 55%); border: 1px solid rgba(15, 23, 42, 0.9); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-side-title { margin-bottom: 0.6rem; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 0.9rem; }
.metric { padding: 0.65rem 0.75rem; font-size: 0.78rem; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 14px; }
.metric-label { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.metric-value { margin-top: 0.1rem; font-size: 0.95rem; }
.metric-value strong { font-size: 1.1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; font-size: 0.72rem; }
.hero-badges span { padding: 0.3rem 0.6rem; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(56, 189, 248, 0.4); border-radius: var(--radius-pill); }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.help-card { padding: 0.95rem 1rem; color: var(--muted); font-size: 0.9rem; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(31, 41, 55, 0.9); border-radius: var(--radius-lg); }
.help-card h3 { margin: 0 0 0.35rem; color: var(--text); font-size: 0.95rem; }
.help-card ul { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }
.help-card li { margin-bottom: 0.3rem; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.project-card { position: relative; overflow: hidden; padding: 0.95rem 1rem; color: var(--muted); font-size: 0.9rem; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(148, 163, 184, 0.35); border-radius: var(--radius-lg); }
.project-pill { display: inline-block; margin-bottom: 0.45rem; padding: 0.2rem 0.55rem; color: var(--muted); font-size: 0.7rem; border: 1px solid rgba(148, 163, 184, 0.4); border-radius: var(--radius-pill); }
.project-card h3 { margin: 0 0 0.35rem; color: var(--text); font-size: 0.95rem; }
.project-card h2 { margin: 0 0 0.35rem; color: var(--text); font-size: 0.95rem; }
.project-card p { margin: 0; font-size: 0.85rem; line-height: 1.55; }
.work-intro { max-width: 42rem; margin: 0 0 1.6rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.work-card-actions { margin-top: 0.9rem; }
.work-status { margin-top: 0.9rem; color: var(--muted); font-size: 0.8rem; font-style: italic; }

.about-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr); gap: 2.2rem; align-items: flex-start; }
.about-text { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.about-text p { margin-top: 0; margin-bottom: 0.9rem; }
.about-text strong { color: var(--text); }
.about-card { padding: 0.95rem 1rem; color: var(--muted); font-size: 0.85rem; line-height: 1.7; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(148, 163, 184, 0.4); border-radius: var(--radius-lg); }
.about-card strong { color: var(--text); }

.contact-card { padding: 1.3rem 1.2rem; font-size: 0.9rem; background: radial-gradient(circle at top right, #0f172a, #020617 55%); border: 1px solid rgba(30, 64, 175, 0.8); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.contact-card > p { max-width: 48rem; color: var(--muted); line-height: 1.6; }
.contact-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; margin-bottom: 0.8rem; }
.contact-item { color: var(--muted); font-size: 0.85rem; }
.contact-label { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-value { font-size: 0.9rem; }
footer { padding: 1.1rem 0 1.6rem; color: var(--muted); font-size: 0.78rem; text-align: center; border-top: 1px solid rgba(15, 23, 42, 0.9); }

@media (max-width: 768px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side-card { order: -1; }
  .about-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  header .shell { padding-inline: 1.6rem; }
  .nav { padding: 0.9rem 0; }
  .nav-links { row-gap: 0.4rem; justify-content: flex-start; }
  .brand-logo-image {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .brand-bridge-logo { height: 28px; }
  .brand-name { font-size: 0.95rem; }
  .brand-tagline { font-size: 0.75rem; }
  .nav-links { gap: 0.35rem; }
  .hero-metric-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn, .btn-primary, .hero-actions .pill { width: 100%; justify-content: center; }
}
