@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;0,800;1,600&display=swap');

:root {
  --midnight: #0a1118;
  --bg-gradient: linear-gradient(180deg, #0a1118 0%, #101a24 50%, #152230 100%);
  --foam: #f4f7f6;
  --charcoal: #1c252c;
  --orange: #ff6b35;
  --yellow: #ffd166;
  --slate-blue: #23313d;
  --slate-hover: #2e3f4e;
  --text-muted: #8ba2b5;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

/* Nordic Maritime Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 85px;
  background: rgba(10, 17, 24, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--slate-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 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: 2px solid var(--orange);
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.05);
  color: var(--orange);
  font-size: 22px;
  font-weight: bold;
}
.brand strong {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.header-nav {
  display: flex;
  gap: 35px;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  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(--orange);
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.35);
}

/* Nordic Hero */
.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.04) 0%, transparent 40%);
}
.hero-card {
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  padding: 60px 45px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: 4px;
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(244, 247, 246, 0.05);
  pointer-events: none;
}
.hero-card .catalog {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-card h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 25px;
  color: #fff;
}
.hero-card h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--yellow);
}
.hero-card p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 35px;
}

.atlas-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 34px;
  border: 2px solid var(--orange);
  border-radius: 0;
  background: rgba(255, 107, 53, 0.04);
  color: var(--orange);
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.2s;
  letter-spacing: 0.1em;
}
.atlas-button:hover {
  background: var(--orange);
  color: var(--midnight);
  box-shadow: 0 0 25px rgba(255, 107, 53, 0.35);
  transform: translateY(-2px);
}
.atlas-button.outline {
  border-color: var(--text-muted);
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}
.atlas-button.outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Fjord Simulator Layout */
.study-section {
  padding: 95px 24px;
}
.section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}
.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  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 chalkboard / luxury card */
.clue-banner {
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  padding: 20px 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  position: relative;
}

/* Canvas Area */
.canvas-frame {
  position: relative;
  aspect-ratio: 45/26;
  overflow: hidden;
  border: 2px solid var(--slate-blue);
  box-shadow: var(--shadow);
  background: #060b10;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* 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(10, 17, 24, 0.96);
  backdrop-filter: blur(12px);
}
.game-overlay.open {
  display: grid;
}
.game-overlay h3 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  margin: 0 0 10px;
  color: #fff;
}
.game-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

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

/* Live Logger Panel */
.logger-panel {
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  padding: 20px 25px;
  border-radius: 4px;
}
.logger-panel h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  border-bottom: 1px dashed rgba(244, 247, 246, 0.1);
  padding-bottom: 6px;
  color: #fff;
}
.logger-entries {
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  color: #2ecc71;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: monospace;
}
.logger-entries p {
  margin: 0;
}
.logger-entries .err {
  color: var(--orange);
}
.logger-entries .sys {
  color: var(--yellow);
}

/* Fjord Conservation grid */
.method-section {
  padding: 95px 24px;
  background: rgba(10, 17, 24, 0.4);
  border-top: 2px solid var(--slate-blue);
  border-bottom: 2px solid var(--slate-blue);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.method-card {
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  padding: 35px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  border-radius: 4px;
}
.method-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.method-card span {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.method-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  margin: 0 0 10px;
  color: #fff;
}
.method-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing Grid */
.pricing-section {
  padding: 95px 24px;
}
.pricing-heading {
  text-align: center;
  margin-bottom: 55px;
}
.pricing-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 50px);
  margin: 0 0 15px;
  color: #fff;
}
.pricing-heading p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
}
.price-card.popular {
  border-color: var(--orange);
  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: "Playfair Display", serif;
  font-size: 23px;
  color: #fff;
}
.price-card .price {
  font-size: 38px;
  font-family: "Playfair Display", serif;
  color: var(--orange);
  margin: 0 0 20px;
}
.price-card .price span {
  font-size: 13px;
  font-family: "DM Sans", 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 rgba(244, 247, 246, 0.08);
  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(--yellow);
}
.price-card .atlas-button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--midnight);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
}

/* Contact Form */
.contact-section {
  padding: 95px 24px;
}
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  padding: 50px 40px;
  position: relative;
  box-shadow: var(--shadow);
  border-radius: 4px;
}
.contact-card h2 {
  font-family: "Playfair Display", 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.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.form-group input, .form-group textarea {
  padding: 12px;
  border: 2px solid var(--slate-blue);
  background: rgba(10, 17, 24, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.contact-form .atlas-button {
  align-self: center;
}

/* Footer layout */
.footer {
  min-height: 150px;
  background: rgba(10, 17, 24, 0.98);
  border-top: 2px solid var(--slate-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 40px clamp(20px,6vw,80px);
}
.footer p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 5px 0 0;
}
.footer-brand strong {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: #fff;
}
.footer-contacts {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.footer-contacts p {
  margin: 4px 0;
}
.footer-contacts a {
  color: var(--orange);
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links button:hover {
  color: var(--orange);
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  padding: 12px 24px;
  border: 2px solid var(--orange);
  background: rgba(10, 17, 24, 0.96);
  color: var(--orange);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.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(10, 17, 24, 0.98);
  border-top: 2px solid var(--orange);
  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;
}

/* Modal Overlay and forms */
.modal-overlay {
  position: fixed;
  z-index: 150;
  inset: 0;
  background: rgba(10, 17, 24, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.checkout-modal {
  background: var(--charcoal);
  border: 2px solid var(--slate-blue);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
  border-radius: 4px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(244, 247, 246, 0.08);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.modal-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  font-family: "Playfair Display", 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(--orange);
}
.order-summary {
  background: rgba(255, 107, 53, 0.03);
  border: 1px solid rgba(255, 107, 53, 0.15);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.price-tag {
  color: var(--orange);
  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 inside Modals */
.modal-legal-content {
  color: var(--text-muted);
  font-size: 14px;
}
.modal-legal-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-top: 25px;
  color: #fff;
  border-bottom: 1px solid rgba(244, 247, 246, 0.08);
  padding-bottom: 4px;
}

/* 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}}
