:root {
  --bg: #001099;
  --bg-dark: #000b6d;
  --bg-panel: rgba(0, 3, 40, 0.55);
  --bg-highlight: rgba(13, 32, 162, 0.65);
  --bg-gradient: radial-gradient(circle at 10% 10%, #0b1b80, transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(96, 243, 255, 0.15), transparent 40%),
    linear-gradient(140deg, #000633 0%, #001099 35%, #000429 100%);
  --text: #f5f7ff;
  --muted: #c5d0ff;
  --accent: #60f3ff;
  --accent-secondary: #a0b5ff;
  --border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#energy-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  filter: none;
  opacity: 0.95;
}

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

header.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 5vw 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(4, 12, 60, 0.9), rgba(0, 3, 28, 0.9));
  overflow: hidden;
  box-shadow: 0 35px 120px rgba(0, 6, 35, 0.55);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  isolation: isolate;
}

header.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  background: radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.18), transparent 58%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.12), transparent 55%);
  z-index: 0;
  opacity: 0.8;
}

.hero__content,
.nav {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 640px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  animation: pulse 4s ease infinite;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 243, 255, 0.35);
  background: rgba(5, 13, 60, 0.65);
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

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

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav a:hover {
  color: #ffffff;
  border-color: var(--accent-secondary);
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 5vw 4rem;
  margin-top: -3rem;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 40, 0.45);
  backdrop-filter: blur(15px);
  opacity: 0;
  transform: translateY(50px);
  animation: floatUp 1s ease forwards;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.panel.dark {
  background: var(--bg-dark);
}

.panel.highlight {
  background: var(--bg-highlight);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 60px rgba(0, 17, 153, 0.45);
}

.panel:nth-of-type(1) { animation-delay: 0.05s; }
.panel:nth-of-type(2) { animation-delay: 0.15s; }
.panel:nth-of-type(3) { animation-delay: 0.25s; }
.panel:nth-of-type(4) { animation-delay: 0.35s; }
.panel:nth-of-type(5) { animation-delay: 0.45s; }
.panel:nth-of-type(6) { animation-delay: 0.55s; }

.panel__intro {
  max-width: 720px;
}

.panel__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.framework-grid,
.solutions-grid,
.science-grid,
.about-grid,
.journal-grid,
.consultation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.framework-grid article,
.solutions-grid article,
.science-grid article,
.about-grid article,
.journal-grid article,
.consultation-options article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.framework-grid article::after,
.solutions-grid article::after,
.science-grid article::after,
.about-grid article::after,
.journal-grid article::after,
.consultation-options article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent, rgba(255, 255, 255, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.framework-grid article:hover,
.solutions-grid article:hover,
.science-grid article:hover,
.about-grid article:hover,
.journal-grid article:hover,
.consultation-options article:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 17, 153, 0.35);
}

.framework-grid article:hover::after,
.solutions-grid article:hover::after,
.science-grid article:hover::after,
.about-grid article:hover::after,
.journal-grid article:hover::after,
.consultation-options article:hover::after {
  opacity: 1;
}

.solutions-grid ul {
  list-style: none;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.solutions-grid li::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.5rem;
}

.benefits {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: none;
  font-size: 0.95rem;
  width: fit-content;
  max-width: 100%;
}

.btn.small {
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
}

.btn.primary {
  background: #ffffff;
  color: var(--bg);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.35);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: transparent;
}

.btn.secondary:hover {
  transform: translateY(-3px);
  border-color: #ffffff;
  box-shadow: 0 12px 24px rgba(96, 243, 255, 0.25);
}

.journal-grid .tag {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.consultation-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

.consultation-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

.consultation-form label.full {
  grid-column: 1 / -1;
}

.consultation-form .btn {
  grid-column: span 1;
  justify-self: flex-start;
  align-self: flex-start;
  height: auto;
}

@media (min-width: 640px) {
  .consultation-form .btn {
    grid-column: span 2;
  }
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  padding: 2rem 5vw 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  animation: fadeUp 0.9s ease 0.6s forwards;
  opacity: 0;
}

footer a {
  color: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

footer a:hover {
  border-color: #ffffff;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

@media (max-width: 768px) {
  header.hero { padding: 3.5rem 1.5rem 2rem; min-height: auto; }
  main { padding: 0 1.5rem 3rem; margin-top: -2rem; }
  .panel { padding: 2.25rem; }
  .nav { flex-direction: column; gap: 0.75rem; }
  .panel__cta { flex-direction: column; align-items: flex-start; }
}
