:root {
  --bg: #0f0f11;
  --surface: #1b1b1f;
  --surface-2: #24242a;
  --text: #f2f2f2;
  --muted: #9ca3af;
  --accent: #06b6d4;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0,0,0,0.35);
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #17171b, #0f0f11 60%);
  color: var(--text);
  font-family: 'Space Grotesk', Inter, sans-serif;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  color: var(--text);
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 22px;
  background: rgba(15,15,17,0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav a {
  color: #d1d5db;
  font-weight: 600;
  transition: 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(6,182,212,0.18), transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 800px;
  margin: auto;
}

.accent {
  color: var(--accent);
}

.hero-badges {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.badge {
  padding: 12px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 600;
}

.hero-scroll,
.contact-cta,
.featured-cta,
.project-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-outline,
.btn-ghost,
.project-buttons a,
.project-buttons button {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.btn-outline,
.project-buttons a {
  background: var(--accent);
  color: black;
}

.btn-outline:hover,
.project-buttons a:hover {
  transform: translateY(-2px);
}

.btn-ghost,
.project-buttons button {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.btn-ghost:hover,
.project-buttons button:hover {
  border-color: var(--accent);
}

.grid-projects,
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 26px;
}

.card,
.project-tile {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.card:hover,
.project-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(6,182,212,0.4);
}

.project-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}

.project-content h3,
.card h3,
.featured-text h3 {
  margin-top: 20px;
  margin-bottom: 14px;
}

.project-content p,
.card p,
.card li,
.featured-text p,
.featured-text li {
  color: #c4c4c4;
  line-height: 1.7;
}

.card--featured {
  padding: 60px;
  border-color: rgba(6,182,212,0.35);
  box-shadow: 0 20px 50px rgba(6,182,212,0.16);
}

.featured-label {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
}

.featured-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-top: 20px;
}

.featured-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.featured-text ul {
  padding-left: 20px;
}

.featured-text li {
  margin-bottom: 10px;
}

.featured-impact {
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: rgba(6,182,212,0.08);
  border-radius: 12px;
}

.architecture-diagram {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.architecture-diagram img {
  border-radius: 14px;
}

.architecture-box {
  color: #d1d5db;
  line-height: 1.8;
}

.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

footer {
  padding: 40px;
  text-align: center;
  color: #888;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer a {
  color: var(--accent);
  margin: 0 8px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 850px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal iframe {
  width: 100%;
  height: 480px;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 32px;
  cursor: pointer;
  z-index: 2;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .featured-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 52px;
  }
}

@media (max-width: 768px) {
  nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .card--featured {
    padding: 30px;
  }

  .section {
    padding: 70px 0;
  }
}