:root {
  --bg: #0f172a;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-3: #34d399;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 34%),
    radial-gradient(circle at 80% 15%, rgba(167, 139, 250, 0.24), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #111827 55%, #020617 100%);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logo-mark::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 4px solid white;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
  border-radius: 8px;
}

.logo-mark::after {
  content: "✓";
  position: absolute;
  right: 7px;
  bottom: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-3);
  color: #052e1a;
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.brand-text strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

nav a,
.dropdown-toggle,
.text-button {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  transition: 180ms ease;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

nav a:hover,
nav a.active,
.dropdown:hover .dropdown-toggle,
.dropdown-toggle:focus,
.text-button:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "⌄";
  margin-left: 7px;
  font-size: 0.9em;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 50px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: 180ms ease;
  z-index: 10;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  border-radius: 14px;
  padding: 11px 12px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bae6fd;
  border: 1px solid rgba(186, 230, 253, 0.28);
  background: rgba(14, 165, 233, 0.08);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
}

h1 span {
  background: linear-gradient(90deg, #f8fafc, #bae6fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro,
.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.intro {
  margin-bottom: 34px;
}

.component-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
}

.component-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.component-button:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
}

.component-button b {
  font-size: 1.08rem;
}

.component-button span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  font-size: 1.25rem;
}

.visual-card {
  min-height: 520px;
  border-radius: 42px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.blueprint {
  height: 100%;
  min-height: 464px;
  border-radius: 30px;
  padding: 26px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    rgba(15, 23, 42, 0.48);
  background-size: 34px 34px;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  text-align: center;
}

.blueprint strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.blueprint p {
  color: var(--muted);
  max-width: 340px;
  line-height: 1.6;
}

.page-title {
  max-width: 820px;
  margin-bottom: 36px;
}

.page-title small,
.detail-copy small {
  display: inline-block;
  color: #bae6fd;
  font-weight: 800;
  margin-bottom: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.project-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.24);
  backdrop-filter: blur(18px);
}

.project-image {
  min-height: 210px;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.36), transparent 24%),
    linear-gradient(135deg, rgba(56,189,248,0.34), rgba(167,139,250,0.28));
}

.project-content {
  padding: 24px;
}

.project-content h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.project-content p,
.detail-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 750;
  border-bottom: 1px solid rgba(224,242,254,0.45);
  padding-bottom: 4px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  margin-top: 28px;
}

.detail-image {
  min-height: 390px;
  display: grid;
  place-items: center;
  font-size: 8rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.36), transparent 24%),
    linear-gradient(135deg, rgba(56,189,248,0.34), rgba(167,139,250,0.28));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
}

.detail-copy {
  padding: 34px;
  border-radius: 36px;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.detail-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.feature-list {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 22px;
}

footer {
  color: rgba(203, 213, 225, 0.82);
  margin-top: 68px;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 950px) {
  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 26px, 1180px);
    padding-top: 20px;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 40px;
  }

  nav {
    justify-content: flex-start;
  }

  .dropdown-menu {
    left: 0;
    right: auto;
  }

  .component-buttons,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .visual-card,
  .detail-copy {
    padding: 18px;
    border-radius: 28px;
  }
}


/* Homepage news section */
.news-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
  padding: 30px;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.news-person {
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.38), transparent 18%),
    linear-gradient(135deg, rgba(56,189,248,0.34), rgba(167,139,250,0.30));
  display: grid;
  place-items: center;
  position: relative;
}

.news-person::before {
  content: "";
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(248,250,252,0.82);
  position: absolute;
  top: 90px;
}

.news-person::after {
  content: "";
  width: 260px;
  height: 260px;
  border-radius: 42% 42% 18% 18%;
  background: rgba(248,250,252,0.72);
  position: absolute;
  top: 250px;
}

.news-person span {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: 28px;
  color: rgba(15,23,42,0.76);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.72);
  padding: 10px 14px;
  border-radius: 999px;
}

.news-content {
  padding: 18px 6px;
}

.news-content h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.news-meta {
  color: #bae6fd;
  font-weight: 800;
  margin-bottom: 16px;
}

.news-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.news-form {
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
}

.news-form h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  color: var(--muted);
  font-weight: 650;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.62);
  color: var(--text);
  font: inherit;
}

.form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.submit-button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(56,189,248,0.22);
}

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

@media (max-width: 950px) {
  .news-box {
    grid-template-columns: 1fr;
  }

  .news-person {
    min-height: 360px;
  }

  .news-person::before {
    top: 54px;
  }

  .news-person::after {
    top: 210px;
  }
}



/* Dynamic private project loading */
.loading-message,
.error-message {
  color: var(--muted);
  line-height: 1.7;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}

.error-message {
  color: #fecaca;
}

.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.project-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.36), transparent 24%),
    linear-gradient(135deg, rgba(56,189,248,0.34), rgba(167,139,250,0.28));
}
