/* ===========================
   SEI Brand Tokens & Reset
   =========================== */
:root {
  --bg: #0B0F14;
  --panel: #0F1621;
  --card: #121B28;
  --text: #E6EDF6;
  --muted: #A7B0BF;
  --primary: #58D5FF;
  --accent: #8EF5A3;
  
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-height: 1.55;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow-glow: 0 0 20px rgba(88, 213, 255, 0.15);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===========================
   Sticky Glassy Navigation
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 22, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(88, 213, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

nav a:hover {
  background: rgba(88, 213, 255, 0.1);
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(88, 213, 255, 0.2);
}

nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  padding: 0.5rem 1rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--panel) 0%, var(--card) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 213, 255, 0.05) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .crest {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(88, 213, 255, 0.3));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subhead {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Buttons
   =========================== */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(88, 213, 255, 0.4);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn.secondary {
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(88, 213, 255, 0.1);
  box-shadow: 0 0 20px rgba(88, 213, 255, 0.2);
}

/* ===========================
   Sections & Containers
   =========================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

.about, .updates, .back-site, .contact, .projects {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Cards
   =========================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(88, 213, 255, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  border-color: rgba(88, 213, 255, 0.3);
}

.card h2, .card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===========================
   Project Cards
   =========================== */
.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(88, 213, 255, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  border-color: rgba(88, 213, 255, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(88, 213, 255, 0.1);
}

.project-card-content {
  padding: 1.5rem;
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-card .status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status.active {
  background: rgba(142, 245, 163, 0.15);
  color: var(--accent);
}

.status.coming-soon {
  background: rgba(167, 176, 191, 0.15);
  color: var(--muted);
}

/* ===========================
   Update Posts
   =========================== */
.update-post {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.update-post:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.update-post h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.update-post time {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.update-post p {
  color: var(--text);
}

/* ===========================
   KPI & Highlight Text
   =========================== */
.kpi {
  font-weight: 700;
  color: var(--accent);
  padding: 1rem;
  background: rgba(142, 245, 163, 0.1);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
  margin-top: 3rem;
}

.faq h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.faq h3 {
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.faq p {
  color: var(--muted);
  padding-left: 1rem;
  border-left: 2px solid rgba(88, 213, 255, 0.2);
}

/* ===========================
   Forms
   =========================== */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem 0;
}

form label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid rgba(88, 213, 255, 0.2);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 1rem;
  transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 213, 255, 0.1);
}

form textarea {
  resize: vertical;
  min-height: 150px;
}

form button[type="submit"],
form input[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  align-self: flex-start;
}

form button[type="submit"]:hover,
form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(88, 213, 255, 0.4);
}

form button[type="submit"]:focus-visible,
form input[type="submit"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===========================
   Footer
   =========================== */
footer {
  background: var(--panel);
  border-top: 1px solid rgba(88, 213, 255, 0.1);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--primary);
}

footer a:hover {
  color: var(--accent);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subhead {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .card, .project-card-content, .update-post {
    padding: 1.5rem;
  }
}

/* ===========================
   Utility Classes
   =========================== */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===========================
   Accessibility
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===========================
   Print Styles
   =========================== */
@media print {
  header {
    position: static;
  }
  
  .btn, .cta-buttons {
    display: none;
  }
}
