/*
  REQUIRED HTML CLASS CHANGES:
  1. Add .hero class to the hero section (already present)
  2. Add .section class to all content sections (already present)
  3. Add .card class to .contact-box
  4. Wrap section headings + content in a .section-content wrapper for consistent max-width
     (alternative: apply .container class to hero-inner and section content divs)
  5. Add .bullet-list class to the "What tends to be explored" <ul> for distinct styling
  6. No other HTML changes required; CSS handles the rest.
*/

:root {
  --bg: #08101a;
  --bg-secondary: #0f1a2e;
  --text: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-tertiary: rgba(255, 255, 255, 0.60);
  --border: rgba(116, 255, 199, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent: #74ffc7;
  --accent-rgb: 116, 255, 199;
  --max: 1100px;
  --narrow: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.25px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
}

/* Container & Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: var(--narrow);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 16, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-secondary);
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--accent);
  background: rgba(116, 255, 199, 0.08);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 16, 26, 0.75) 0%, rgba(15, 26, 46, 0.60) 50%, rgba(8, 16, 26, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse 900px 600px at 20% 10%,
    rgba(116, 255, 199, 0.08) 0%,
    transparent 40%
  ),
  radial-gradient(
    ellipse 800px 550px at 80% 25%,
    rgba(155, 123, 255, 0.06) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 40px 0;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 600;
  color: var(--text);
}

.lead {
  margin: 0 0 16px;
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-secondary);
  max-width: 70ch;
  line-height: 1.7;
}

.micro {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}

.section:first-of-type {
  border-top: none;
}

.section.alt {
  background: linear-gradient(
    180deg,
    rgba(116, 255, 199, 0.03) 0%,
    rgba(155, 123, 255, 0.02) 100%
  );
}

/* Headings */
h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 600;
  color: var(--text);
}

h3 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  font-weight: 500;
  color: var(--text);
}

h3:first-child {
  margin-top: 0;
}

/* Paragraphs */
p {
  margin: 0 0 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Lists */
ul {
  margin: 20px 0 0;
  padding-left: 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}

ul li {
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}

ul li:hover {
  transform: translateX(4px);
}

/* Bullet List (specific to "What tends to be explored") */
.bullet-list {
  padding-left: 28px;
}

.bullet-list li {
  list-style-type: disc;
  color: var(--text-secondary);
}

/* Details List */
.details-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(116, 255, 199, 0.04);
}

.details-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.details-list li:first-child {
  border-top: 0;
}

.details-list li:hover {
  background: rgba(116, 255, 199, 0.06);
}

.details-list strong {
  color: var(--text);
  font-weight: 500;
}

.details-list span {
  color: var(--text-secondary);
}

/* Card & Contact Box */
.card,
.contact-box {
  margin-top: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  background: rgba(116, 255, 199, 0.04);
  transition: all 0.2s ease;
}

.card:hover,
.contact-box:hover {
  background: rgba(116, 255, 199, 0.06);
  border-color: var(--border);
}

.contact-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-box > p {
  margin-bottom: 20px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--bg);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  text-decoration: none;
}

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

.button:active {
  transform: translateY(0);
  opacity: 0.95;
}

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

.button-submit {
  margin-top: 4px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(116, 255, 199, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.2s ease;
  min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(116, 255, 199, 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  padding: 14px 14px;
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 16, 26, 0.50);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-inner {
    padding: 24px 0;
  }

  h1 {
    margin-bottom: 16px;
  }

  h2 {
    margin-bottom: 18px;
  }

  h3 {
    margin-top: 24px;
    margin-bottom: 10px;
  }

  .header-row {
    padding: 14px 0;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .details-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .card,
  .contact-box {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  h1 {
    font-size: clamp(28px, 5vw, 36px);
    margin-bottom: 12px;
  }

  h2 {
    font-size: clamp(24px, 4vw, 28px);
    margin-bottom: 16px;
  }

  .lead {
    font-size: 15px;
  }

  .site-header {
    padding: 0;
  }

  .header-row {
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    font-size: 14px;
    gap: 6px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 12px;
  }

  ul {
    padding-left: 20px;
  }

  .details-list li {
    padding: 12px 14px;
  }

  .card,
  .contact-box {
    padding: 16px;
    margin-top: 20px;
  }

  .contact-box h3 {
    font-size: 16px;
  }
}