/* ==========================================================================
   Skybær Labs — shared site styles
   Palette lifted directly from the under-construction artwork so the whole
   site reads as one continuous piece of work.
   ========================================================================== */

:root {
  --bg-top: #040a1c;
  --bg-bottom: #06153b;
  --panel: #0a1a3d;
  --panel-raised: #0e2148;
  --border: #1c3564;
  --border-soft: #142a54;
  --blue: #5b94ff;
  --blue-light: #8fc4ff;
  --blue-pale: #cfe1ff;
  --white: #f5f8ff;
  --muted: #9fb3d9;
  --muted-dim: #6f85ad;
  --amber: #f5a524;
  --amber-soft: #f5a52433;
  --sidebar-w: 268px;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(ellipse 900px 500px at 12% 8%, #12356a55, transparent 60%),
    radial-gradient(ellipse 800px 600px at 88% 15%, #0f5c5233, transparent 55%),
    linear-gradient(to bottom, var(--bg-top) 0%, var(--bg-bottom) 100%);
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/stars.png");
  background-repeat: repeat;
  background-size: 480px 480px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

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

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

/* ---------- Layout shell ---------- */

.shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, #071230 0%, #050d24 100%);
  border-right: 1px solid var(--border-soft);
  padding: 28px 20px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #eef3fb 65%, #e2eaf7 100%);
  box-shadow:
    0 0 0 2px #0a1a3d,
    0 0 0 3px #2a4b8a55,
    0 0 20px 4px #6fa8ff4d,
    0 0 44px 14px #3f7ee62e;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.brand .logo-badge {
  width: 42px;
  height: 42px;
}

.brand-text { line-height: 1.15; }

.brand-text .name {
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 15.5px;
}

.brand-text .name .sky { color: var(--blue-light); }

.brand-text .sub {
  display: block;
  font-size: 11px;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  padding: 16px 10px 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-pale);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link:hover {
  background: var(--panel-raised);
  color: var(--white);
}

.nav-link.active {
  background: linear-gradient(90deg, #14306022, #14306000);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--blue);
}

.nav-link .soon-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 10px 4px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--muted-dim);
}

.sidebar-footer a {
  color: var(--blue-light);
}

/* ---------- Mobile top bar / toggle ---------- */

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #050d24ee;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar .brand { border: none; padding: 0; margin: 0; }
.topbar .brand .logo-badge { width: 34px; height: 34px; }
.topbar .brand-text .name { font-size: 14px; }

.nav-toggle {
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; color: var(--blue-light); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.65);
  z-index: 15;
}

/* ---------- Main content ---------- */

.main {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 40px 90px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding-bottom: 40px;
}

.hero .logo-badge {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
}

.hero .wordmark {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 18px 0 14px;
}

.hero .wordmark .sky { color: var(--blue-light); }
.hero .wordmark .rest { color: var(--white); }

.hero .tagline {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--white);
  margin: 0 0 6px;
}

.hero .subline {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 30px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
}

.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 84px;
}

.tech-badge .ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
}

.tech-badge svg { width: 22px; height: 22px; color: var(--blue-light); }
.tech-badge span { font-size: 12px; color: var(--muted); }

/* ---------- Section headings ---------- */

.section { margin-top: 64px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Project card grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(160deg, var(--panel) 0%, #081226 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card .ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-raised);
}

.card .ring svg { width: 20px; height: 20px; color: var(--blue-light); }

.pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
  white-space: nowrap;
}

.card h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.card .card-link svg { width: 14px; height: 14px; }

/* ---------- About / blurb ---------- */

.about-blurb {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--blue-pale);
}

.about-blurb strong { color: var(--white); }

/* ---------- Contact strip ---------- */

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(120deg, #0d234f 0%, #0a1a3d 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.contact-strip .label {
  font-size: 12px;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.contact-strip .email {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--blue);
  color: var(--white);
  background: linear-gradient(90deg, #1c3f8c, #14306a);
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.12); }

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--blue-pale);
}

/* ---------- Coming soon page ---------- */

.coming-soon {
  text-align: center;
  padding: 60px 0 20px;
}

.coming-soon .ring-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.coming-soon .ring-lg svg { width: 36px; height: 36px; color: var(--blue-light); }

.coming-soon .pill {
  display: inline-flex;
  margin-bottom: 16px;
}

.coming-soon h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 10px;
}

.coming-soon .lede {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.preview-list {
  max-width: 520px;
  margin: 0 auto 40px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.preview-list .cap {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  margin-bottom: 12px;
}

.preview-list ul { margin: 0; padding: 0; list-style: none; }

.preview-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
  color: var(--blue-pale);
}

.preview-list li:first-child { border-top: none; padding-top: 0; }

.preview-list li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--amber);
}

/* ---------- Simple page header (about/contact) ---------- */

.page-head { margin-bottom: 36px; }

.page-head .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 10px;
}

.page-head h1 { font-size: clamp(26px, 4vw, 32px); margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; font-size: 14.5px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.info-card .cap {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  margin-bottom: 8px;
}

.info-card .val { font-size: 15px; font-weight: 600; color: var(--white); }
.info-card .val a { color: var(--blue-light); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.tag {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--blue-pale);
  background: var(--panel-raised);
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  color: var(--muted-dim);
  font-size: 12.5px;
  padding: 30px 40px 50px;
}

.site-footer a { color: var(--blue-light); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar { display: flex; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 20px 0 40px rgba(0,0,0,0.4);
  }

  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-backdrop { display: block; }

  .container { padding: 40px 22px 70px; }
}

@media (max-width: 520px) {
  .contact-strip { flex-direction: column; align-items: flex-start; }
  .badge-row { gap: 14px; }
  .tech-badge { width: 70px; }
}
