/* ============================================
   Echinus — echinus.io
   ============================================ */

/* Colors */
:root {
  --atlantic-deep: #1B2D3E;
  --basalt: #2C2C2C;
  --urchin-gold: #C4956A;
  --foam: #F5F2ED;
  --tidal: #5A8A8F;
  --stone: #9B9590;
  --salt: #FFFFFF;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px; /* offset anchor jumps for the fixed 60px nav */
  font-size: 18px;
}

body {
  font-family: Aptos, Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--basalt);
  background: var(--foam);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: var(--atlantic-deep);
  letter-spacing: 0.04em;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  max-width: 640px;
}

a {
  color: var(--atlantic-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--tidal);
  transition: border-color 0.2s;
}
a:hover {
  border-color: var(--atlantic-deep);
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--atlantic-deep);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: none;
}

nav .nav-logo img {
  height: 28px;
  width: 28px;
}

nav .nav-wordmark {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--foam);
}

nav .nav-links {
  display: flex;
  gap: 2rem;
}

nav .nav-links a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  border: none;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  background: var(--atlantic-deep);
  padding: 160px 2rem 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .mark {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--foam);
  margin-bottom: 1rem;
}

.hero .gold-rule {
  width: 60px;
  height: 1px;
  background: var(--tidal);
  margin: 0 auto 1rem;
}

.hero .subtitle {
  font-size: 0.9rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* Sections */
section {
  padding: 5rem 2rem;
}

section.dark {
  background: var(--atlantic-deep);
  color: var(--foam);
}

section.dark h2 {
  color: var(--foam);
}

section.dark p {
  color: rgba(245, 242, 237, 0.85);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.gold-accent {
  width: 40px;
  height: 2px;
  background: var(--tidal);
  margin-bottom: 1.5rem;
}

/* Pillars grid */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.pillar h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--tidal);
}

.pillar p {
  font-size: 0.85rem;
  line-height: 1.6;
}

section.dark .pillar p {
  color: rgba(245, 242, 237, 0.8);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.contact-item {
  font-size: 0.85rem;
}

.contact-item .contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.3rem;
}

/* Footer */
footer {
  background: var(--atlantic-deep);
  padding: 2rem;
  text-align: center;
  border-top: 2px solid var(--tidal);
}

footer p {
  font-size: 0.65rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  max-width: none;
}

/* ============================================
   Pre-launch page
   ============================================ */
body.prelaunch {
  min-height: 100vh;
  background: var(--atlantic-deep);
  color: var(--foam);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

.prelaunch-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.prelaunch-mark {
  width: 120px;
  height: 120px;
  margin-bottom: 1.75rem;
}

body.prelaunch h1 {
  color: var(--foam);
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.prelaunch-rule {
  width: 60px;
  height: 1px;
  background: var(--tidal);
  margin: 1.75rem 0;
}

.prelaunch-address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-bottom: 1.75rem;
}

.prelaunch-email {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--foam);
  border-bottom: 1px solid var(--tidal);
}
.prelaunch-email:hover { border-color: var(--foam); }

.prelaunch-footer p {
  font-size: 0.65rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  max-width: none;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .prelaunch-mark { width: 88px; height: 88px; }
  body.prelaunch h1 { font-size: 1.7rem; }
}

/* Responsive */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .pillars,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  nav .nav-links a {
    font-size: 0.6rem;
  }

  .hero .mark {
    width: 80px;
    height: 80px;
  }

  h1 { font-size: 1.6rem; }
}
