/*
Theme Name: SpaceWay Token
Theme URI: https://spacewaytoken.com/
Author: SpaceWay Token
Description: Launch website theme for the SpaceWay Token.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: spaceway-token
*/

:root {
  --ink: #081018;
  --muted: #53606c;
  --paper: #f7f9fb;
  --line: #dfe6ed;
  --teal: #1fd3c7;
  --cyan: #5fc7ff;
  --amber: #ffba4a;
  --magenta: #d052ff;
  --navy: #101928;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 10, 17, 0.86), rgba(5, 10, 17, 0.16));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
}

.brand-video {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 211, 199, 0.94), rgba(208, 82, 255, 0.86));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover {
  color: var(--white);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  border: 0;
}

.header-cta {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #081018;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #05080f;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.94) 0%, rgba(3, 7, 13, 0.78) 36%, rgba(3, 7, 13, 0.18) 76%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.05), rgba(3, 7, 13, 0.7));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #1a8f89;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-logo {
  width: min(260px, 58vw);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(31, 211, 199, 0.16);
}

.hero-logo video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #05101a;
}

.button {
  padding: 0 22px;
  border: 1px solid transparent;
}

.button.primary {
  color: #061016;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 18px 48px rgba(31, 211, 199, 0.26);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.dark-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.launch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(650px, 100%);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.launch-stats div {
  padding: 18px;
  background: rgba(4, 9, 16, 0.64);
}

.launch-stats strong,
.launch-stats span {
  display: block;
}

.launch-stats strong {
  margin-bottom: 6px;
  font-size: 22px;
}

.launch-stats span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.social-strip {
  padding: clamp(34px, 5vw, 54px) 0;
  background: #101928;
  color: var(--white);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.social-grid a {
  display: block;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.social-grid a:hover {
  border-color: rgba(31, 211, 199, 0.74);
  background: rgba(31, 211, 199, 0.12);
}

.social-grid strong,
.social-grid span {
  display: block;
}

.social-grid strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.social-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.intro-band {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.intro-copy,
.community p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.intro-copy p {
  margin-bottom: 14px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-lede p {
  margin-bottom: 14px;
}

.section-lede p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(16, 25, 40, 0.06);
}

.feature-card p,
.token-panel p,
.roadmap p {
  color: var(--muted);
  line-height: 1.65;
}

.icon,
.roadmap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #06201e;
  background: #bff7ee;
  font-size: 13px;
  font-weight: 900;
}

.token-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(208, 82, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #101928, #071018 58%, #132a2d);
}

.token-panel p {
  color: rgba(255, 255, 255, 0.7);
}

.token-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.token-list div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.token-list dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.token-list dd {
  margin: 8px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.roadmap-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 211, 199, 0.22), transparent 28%),
    linear-gradient(180deg, #101928, #071018);
}

.ecosystem-band {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 186, 74, 0.22), transparent 26%),
    radial-gradient(circle at 82% 70%, rgba(31, 211, 199, 0.18), transparent 30%),
    #071018;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.ecosystem-grid p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.ecosystem-points {
  display: grid;
  gap: 12px;
}

.ecosystem-points article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.ecosystem-points strong,
.ecosystem-points span {
  display: block;
}

.ecosystem-points strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.ecosystem-points span {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.facility-section {
  position: relative;
  min-height: min(760px, 86vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #071018;
}

.facility-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 17, 0.88), rgba(5, 10, 17, 0.38) 58%, rgba(5, 10, 17, 0.16)),
    linear-gradient(180deg, rgba(5, 10, 17, 0.08), rgba(5, 10, 17, 0.78));
}

.facility-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) 0;
}

.facility-content h2 {
  max-width: 720px;
}

.facility-content p:last-child {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.7;
}

.whitepaper-band {
  background: #eef5f6;
}

.whitepaper-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.whitepaper-grid p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list article {
  padding: 22px;
  border: 1px solid #cfdde1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.proof-list span {
  color: var(--muted);
  line-height: 1.55;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roadmap article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.roadmap p {
  color: rgba(255, 255, 255, 0.68);
}

.roadmap span {
  color: #1b1325;
  background: linear-gradient(135deg, var(--amber), var(--magenta));
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
}

.community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.community-links a {
  display: block;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.community-links a:hover {
  border-color: rgba(31, 211, 199, 0.78);
  box-shadow: 0 14px 34px rgba(16, 25, 40, 0.08);
}

.community-links strong,
.community-links span {
  display: block;
}

.community-links strong {
  margin-bottom: 7px;
  font-size: 16px;
}

.community-links span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.disclaimer {
  padding: 24px 0;
  color: #4b5563;
  background: #eaf0f6;
  font-size: 14px;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 10, 17, 0.72);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.launch-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.launch-modal h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 42px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.launch-form {
  display: grid;
  gap: 14px;
}

.launch-form label {
  display: grid;
  gap: 7px;
  color: #26323d;
  font-size: 13px;
  font-weight: 800;
}

.launch-form input,
.launch-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cad5df;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.consent-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.consent-row input {
  min-height: 18px;
  margin-top: 2px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.68);
  background: #071018;
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 7, 13, 0.76), rgba(3, 7, 13, 0.93) 58%, rgba(3, 7, 13, 0.98)),
      linear-gradient(90deg, rgba(3, 7, 13, 0.76), rgba(3, 7, 13, 0.18));
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding: 120px 0 44px;
  }

  .launch-stats,
  .feature-grid,
  .roadmap,
  .social-grid,
  .intro-grid,
  .ecosystem-grid,
  .whitepaper-grid,
  .token-panel,
  .community {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .brand {
    font-size: 15px;
  }

  .brand-video {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    font-size: 12px;
  }

  .hero-actions,
  .community-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .launch-stats,
  .token-list {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .community-links {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .roadmap article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
