/* ROOT VARIABLES */
:root {
  --bg-dark: #050b16;
  --accent-blue: #3a7bff;
  --text-main: #f5f7fb;
  --text-muted: #c0c7d1;
  --silver: #aeb4c2;
  --max-width: 1040px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0b1630 0, #02040a 55%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px 64px;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-blue), var(--silver));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #02040a;
  font-weight: 700;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-muted);
}

/* HERO */
.hero {
  background: radial-gradient(circle at top left, #162647 0, #050b16 55%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(192, 199, 209, 0.18);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--silver);
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}

.accent {
  color: var(--accent-blue);
}

.hero-badge {
  margin: 6px 0 6px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 199, 209, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(7, 15, 31, 0.7);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--silver);
}

.hero-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(192, 199, 209, 0.35);
  background: rgba(5, 11, 22, 0.7);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-primary {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent-blue), #6f9dff);
  color: #02040a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* HERO BOOK AREA */
.hero-book {
  background: radial-gradient(circle at top, #1b2a4a 0, #050b16 55%);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(192, 199, 209, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(192, 199, 209, 0.4);
  background: rgba(5, 11, 22, 0.6);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--accent-blue);
  color: #02040a;
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(58, 123, 255, 0.6);
}

.tab-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.book-img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid rgba(192, 199, 209, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  animation:
    float 6s ease-in-out infinite,
    fadeScale 0.4s ease;
}

/* FLOATING ANIMATION */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* TAB PANELS + TRANSITIONS */
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT PANEL */
.about-panel {
  width: 100%;
  max-width: 420px;
  background: rgba(5, 11, 22, 0.6);
  border: 1px solid rgba(192, 199, 209, 0.3);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  max-height: 420px;
  overflow-y: auto;
}

.about-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-blue);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* PLATFORM PANEL */
.platform-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(5, 11, 22, 0.55);
  border: 1px solid rgba(192, 199, 209, 0.3);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  max-height: 420px;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

/* BLURRED UI MOCKUP BEHIND CONTENT */
.platform-blur-bg {
  position: absolute;
  inset: 0;
  background: url("mockup-blur.png") center/cover no-repeat;
  opacity: 0.32;
  filter: blur(22px) brightness(1.15);

  z-index: 0;
  border-radius: 12px;
}

/* Ensure content sits above blur */
.platform-panel > * {
  position: relative;
  z-index: 2;
}

.platform-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--accent-blue);
}

.platform-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease;
}

.platform-list li:hover {
  transform: translateX(4px);
}

.platform-list .icon {
  font-size: 16px;
  opacity: 0.9;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.platform-list li:hover .icon {
  transform: scale(1.25);
  opacity: 1;
}

.platform-cta {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent-blue), #6f9dff);
  color: #02040a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease;
}

.platform-cta:hover {
  transform: translateY(-2px);
}

.platform-coming-soon {
  text-align: center;
  font-size: 12px;
  color: var(--accent-blue);
  margin-top: 8px;
  opacity: 0.8;
}

/* MODALS (SHARED BASE) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  overflow: auto;
}

/* IMAGE MODAL */
.modal-content {
  margin: 60px auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* EMAIL MODAL CARD */
.modal-card {
  margin: 80px auto;
  max-width: 420px;
  background: #050b16;
  border-radius: 16px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(192, 199, 209, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-card-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* EMAIL FORM */
.email-form-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-label {
  font-size: 13px;
  font-weight: 600;
}

.email-input {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 199, 209, 0.5);
  background: #02040a;
  color: var(--text-main);
  font-size: 14px;
}

.email-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.email-button {
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent-blue), #6f9dff);
  color: #02040a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.email-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* MANIFESTO */
.section {
  margin-top: 40px;
  background: radial-gradient(circle at top, #0c1428 0, #050b16 55%);
  border-radius: var(--radius-lg);
  padding: 28px 24px 30px;
  border: 1px solid rgba(192, 199, 209, 0.18);
  box-shadow: var(--shadow-subtle);
}

.section-header {
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--silver);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
}

.section-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

.section-body p + p {
  margin-top: 12px;
}

.manifesto-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 18px;
}

.manifesto-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 199, 209, 0.35),
    transparent
  );
  margin: 22px 0;
}

.section-footer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--silver);
  font-weight: 500;
}

.section-footer span {
  color: var(--accent-blue);
}

/* FOOTER */
footer {
  margin-top: 32px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 18px;
  }

  .hero-book {
    order: -1;
  }

  .modal-card {
    margin: 60px 16px;
  }
}
