*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #f9fafb;
  background: #000000;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(249, 250, 251, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(249, 250, 251, 0.7);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 0.9rem;
  font-style: italic;
}

.logo span {
  color: inherit;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding-bottom: 0.1rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-content {
  display: flex;
  justify-content: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-photo-wrap {
  display: flex;
  justify-content: flex-start;
}

.hero-photo {
  width: min(260px, 35vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(249, 250, 251, 0.9);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.hero-text {
  max-width: 640px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #f9fafb;
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.08s ease-out;
}

.btn.primary {
  background: transparent;
  color: #f9fafb;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(249, 250, 251, 0.18);
}

.btn.secondary {
  background: transparent;
  color: #f9fafb;
  border-color: rgba(249, 250, 251, 0.5);
}

.btn.secondary:hover {
  background: rgba(249, 250, 251, 0.08);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  padding: 0 0 3rem;
}

.card {
  background: #020617;
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 0.9rem;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.card-link {
  font-size: 0.9rem;
  color: #93c5fd;
}

.page {
  padding: 3.2rem 0 3rem;
}

.page h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.lead {
  margin-top: 0;
  margin-bottom: 1.8rem;
  max-width: 48rem;
  color: #e5e7eb;
}

.text-block {
  margin-bottom: 2rem;
}

.text-block h2 {
  margin-bottom: 0.4rem;
}

.place {
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #1f2933;
}

.place h2 {
  margin-bottom: 0.3rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.article-card {
  background: #020617;
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.article-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.article-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.simulation-panel {
  margin-top: 1rem;
  background: #020617;
  border-radius: 1rem;
  padding: 1rem 1rem 1.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.places-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}

.places-list a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.22);
  text-decoration: none;
  font-size: 0.95rem;
}

.places-list a:hover {
  background: rgba(249, 250, 251, 0.08);
}

canvas {
  width: 100%;
  max-width: 640px;
  display: block;
  border-radius: 0.7rem;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #0b1120 70%, #020617 100%);
}

.sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.sim-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
}

input[type="range"] {
  width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-top: 1rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
}

.site-footer {
  border-top: 1px solid rgba(249, 250, 251, 0.08);
  padding: 1.3rem 0 1.6rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .main-nav {
    font-size: 0.8rem;
    gap: 0.7rem;
  }

  .header-content {
    padding: 0.7rem 0;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .hero-photo-wrap {
    justify-content: center;
  }

  .page {
    padding-top: 2.4rem;
  }
}

