@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --midnight: #020b14;
  --bg-gradient: linear-gradient(135deg, #020b14 0%, #081220 50%, #0d1a2e 100%);
  --surface: rgba(9, 21, 37, 0.78);
  --surface-hover: rgba(14, 29, 51, 0.9);
  --violet: #8a2be2;
  --violet-glow: rgba(138, 43, 226, 0.45);
  --cyan: #00f5ff;
  --pink: #ff007f;
  --text: #eaf2f8;
  --text-muted: #8b9bb0;
  --border: rgba(138, 43, 226, 0.25);
  --shadow: 0 16px 45px rgba(138, 43, 226, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.6;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

/* Biotech Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 85px;
  background: rgba(2, 11, 20, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: rgba(0, 245, 255, 0.05);
  color: var(--cyan);
  font-size: 22px;
  box-shadow: 0 0 15px var(--cyan);
}
.brand strong {
  font-family: "Righteous", cursive;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.header-nav {
  display: flex;
  gap: 30px;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

/* Abyssal Hero */
.hero {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: radial-gradient(circle at 90% 10%, rgba(138, 43, 226, 0.1) 0%, transparent 45%);
}
.hero-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--border);
  padding: 60px 40px;
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(138, 43, 226, 0.08);
  pointer-events: none;
  border-radius: 4px;
}
.hero-card .catalog {
  color: var(--pink);
  font-family: "Righteous", sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-card h1 {
  font-family: "Righteous", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 25px;
  color: #fff;
}
.hero-card h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.45);
}
.hero-card p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 35px;
}

.atlas-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.04);
  color: var(--cyan);
  font-family: "Righteous", sans-serif;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.2s;
  letter-spacing: 0.1em;
}
.atlas-button:hover {
  background: var(--cyan);
  color: var(--midnight);
  box-shadow: 0 0 25px var(--cyan);
  transform: translateY(-2px);
}
.atlas-button.outline {
  border-color: var(--violet);
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}
.atlas-button.outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Deep-Sea Simulator Layout */
.study-section {
  padding: 95px 24px;
}
.section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}
.section-heading h2 {
  font-family: "Righteous", sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  margin: 0 0 15px;
  color: #fff;
  letter-spacing: 0.02em;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
}

.study-desk {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Objective card */
.clue-banner {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 20px 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
}

/* Canvas Area */
.canvas-frame {
  position: relative;
  aspect-ratio: 45/26;
  overflow: hidden;
  border: 2px solid var(--violet);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #01060c;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay prompts */
.game-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(2, 11, 20, 0.97);
  backdrop-filter: blur(10px);
}
.game-overlay.open {
  display: grid;
}
.game-overlay h3 {
  font-family: "Righteous", sans-serif;
  font-size: 40px;
  margin: 0 0 10px;
  color: #fff;
}
.game-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 24px;
}

/* Dials Stats Layout */
.stats-dials {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.dial-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 15px 10px;
  text-align: center;
  border-radius: 6px;
}
.dial-card small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dial-card strong {
  display: block;
  font-family: "Righteous", sans-serif;
  font-size: 20px;
  margin-top: 4px;
  color: var(--cyan);
}

/* Live Logger Panel */
.logger-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 20px 25px;
  border-radius: 8px;
}
.logger-panel h3 {
  margin: 0 0 12px;
  font-family: "Righteous", sans-serif;
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
  color: #fff;
}
.logger-entries {
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--cyan);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: monospace;
}
.logger-entries p {
  margin: 0;
}
.logger-entries .err {
  color: var(--pink);
}
.logger-entries .sys {
  color: var(--violet);
}

/* Eco Manual Steps Grid */
.method-section {
  padding: 95px 24px;
  background: rgba(2, 11, 20, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.method-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  border-radius: 8px;
}
.method-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}
.method-card span {
  font-family: "Righteous", sans-serif;
  font-size: 26px;
  color: var(--pink);
  display: block;
  margin-bottom: 10px;
}
.method-card h3 {
  font-family: "Righteous", sans-serif;
  font-size: 18px;
  margin: 0 0 10px;
  color: #fff;
}
.method-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Premium Contact Form */
.contact-section {
  padding: 95px 24px;
}
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 50px 40px;
  position: relative;
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(138, 43, 226, 0.08);
  pointer-events: none;
  border-radius: 4px;
}
.contact-card h2 {
  font-family: "Righteous", sans-serif;
  font-size: 30px;
  margin: 0 0 15px;
  text-align: center;
  color: #fff;
}
.contact-card > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 35px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.form-group input, .form-group textarea {
  padding: 12px;
  border: 1.5px solid var(--border);
  background: rgba(2, 11, 20, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  border-radius: 4px;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.contact-form .atlas-button {
  align-self: center;
}

/* Footer layout */
.footer {
  min-height: 150px;
  background: rgba(2, 11, 20, 0.98);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 40px clamp(20px,5vw,80px);
}
.footer p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 5px 0 0;
}
.footer-brand strong {
  font-family: "Righteous", sans-serif;
  font-size: 18px;
  color: #fff;
}
.footer-contacts {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-contacts p {
  margin: 4px 0;
}
.footer-contacts a {
  color: var(--cyan);
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cyan);
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  padding: 12px 24px;
  border-radius: 4px;
  border: 1.5px solid var(--cyan);
  background: rgba(2, 11, 20, 0.95);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.35);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  z-index: 110;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  background: rgba(2, 11, 20, 0.98);
  border-top: 3px solid var(--cyan);
  box-shadow: 0 -8px 25px rgba(0,0,0,0.5);
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cookie-content p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.cookie-content .atlas-button {
  min-height: 38px;
  padding: 0 18px;
  box-shadow: none;
}

/* Pricing Page */
.pricing-section {
  padding: 85px 24px;
  max-width: 1050px;
  margin: 0 auto;
}
.pricing-heading {
  text-align: center;
  margin-bottom: 50px;
}
.pricing-heading h1 {
  font-family: "Righteous", sans-serif;
  font-size: 42px;
  margin: 0 0 15px;
  color: #fff;
}
.pricing-heading p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
}
.price-card.popular {
  border-color: var(--pink);
  transform: scale(1.03);
}
.price-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
}
.card-inner {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card h3 {
  margin: 10px 0 15px;
  font-family: "Righteous", sans-serif;
  font-size: 24px;
  color: #fff;
}
.price-card .price {
  font-size: 38px;
  font-family: "Righteous", sans-serif;
  color: var(--cyan);
  margin: 0 0 20px;
}
.price-card .price span {
  font-size: 13px;
  font-family: "Outfit", sans-serif;
  color: var(--text-muted);
}
.price-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 40px;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.features-list li {
  font-size: 13px;
  position: relative;
  padding-left: 20px;
}
.features-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.price-card .atlas-button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.45);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  z-index: 150;
  inset: 0;
  background: rgba(2, 11, 20, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.checkout-modal {
  background: var(--surface);
  border: 1.5px solid var(--border);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
  border-radius: 8px;
}
.checkout-modal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(138, 43, 226, 0.08);
  pointer-events: none;
  border-radius: 4px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.modal-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  font-family: "Righteous", sans-serif;
  color: #fff;
}
.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.close-btn:hover {
  color: var(--pink);
}
.order-summary {
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.15);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.price-tag {
  color: var(--cyan);
  font-weight: 700;
  font-size: 16px;
}
.billing-disclosure {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 15px 0;
}

/* Legal text styling */
.legal-main {
  padding: 85px 24px;
}
.legal-copy {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 50px 30px;
  position: relative;
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.legal-copy h1 {
  font-family: "Righteous", sans-serif;
  font-size: 38px;
  color: #fff;
}
.legal-copy h2 {
  font-family: "Righteous", sans-serif;
  font-size: 24px;
  margin-top: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  color: #fff;
}
.legal-copy p {
  color: var(--text-muted);
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive adjustments */
@media(max-width: 930px) {
  .clue-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .stats-dials {
    grid-template-columns: repeat(3, 1fr);
  }
  .method-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .price-card.popular {
    transform: none;
  }
  .price-card.popular:hover {
    transform: translateY(-5px);
  }
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
@media(max-width: 650px) {
  .stats-dials {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .contact-card {
    padding: 30px 20px;
  }
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
