/* ============================================
   CUSTOM PROPERTIES — CAS DESIGN SYSTEM
   Option C: Cerulean + Citrine on Linen
   ============================================ */

:root {
  --c-cerulean:      #0077B6;
  --c-cerulean-dark: #005F94;
  --c-sky:           #4DB8E8;
  --c-citrine:       #C89510;
  --c-citrine-dim:   rgba(200, 149, 16, 0.65);
  --c-linen:         #FAF8F3;
  --c-linen-mid:     #F0EDE5;
  --c-ink:           #1A2535;
  --c-ink-soft:      #2A3A50;
  --c-gray-mid:      #6B7280;
  --c-gray-light:    #E8E4DC;
  --c-white:         #ffffff;

  --f-head: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:     1160px;
  --pad-x:     clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  --ease:            0.25s ease;
  --ease-slow:       0.4s ease;
  --shadow-card:     0 2px 16px rgba(26, 37, 53, 0.07), 0 1px 4px rgba(26, 37, 53, 0.04);
  --shadow-card-hover: 0 8px 40px rgba(26, 37, 53, 0.13), 0 2px 8px rgba(26, 37, 53, 0.06);
}


/* ============================================
   RESET
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f-body);
  background-color: var(--c-linen);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  line-height: 1.18;
}

p { line-height: 1.72; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button { cursor: pointer; font-family: var(--f-body); }


/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--linen  { background-color: var(--c-linen); }

.section--dark {
  background-color: var(--c-ink);
  color: var(--c-linen);
}

.section--texture {
  position: relative;
  overflow: hidden;
}

.section--texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 149, 16, 0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}


/* ============================================
   SECTION TYPOGRAPHY
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-citrine), transparent);
  margin: 1.25rem auto 0;
}

.section-label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cerulean);
  margin-bottom: 0.625rem;
}

.section-label--citrine { color: var(--c-citrine); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  color: var(--c-ink);
  margin-bottom: 0.875rem;
}

.section-title--light { color: var(--c-linen); }

.section-intro {
  max-width: 640px;
  margin-inline: auto;
  color: var(--c-gray-mid);
  font-size: 1.0625rem;
  line-height: 1.75;
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--c-cerulean);
  color: var(--c-white);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav__title {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-linen);
  letter-spacing: -0.01em;
}

@media (max-width: 480px) { .nav__title { display: none; } }

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-sky);
  transition: color var(--ease);
}

.nav__link:hover { color: var(--c-citrine); }


/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}

.hero__texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 149, 16, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__headline {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  color: var(--c-linen);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.1;
}

.hero__subhead {
  max-width: 600px;
  margin-inline: auto;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(250, 248, 243, 0.72);
  line-height: 1.75;
  margin-bottom: 3rem;
}


/* ============================================
   BADGE
   ============================================ */

.badge {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
}

.badge--citrine {
  background-color: rgba(200, 149, 16, 0.22);
  color: #D4A017;
  border: 1px solid rgba(200, 149, 16, 0.55);
}


/* ============================================
   BUTTONS
   ============================================ */

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: none;
  transition: background-color var(--ease), color var(--ease), opacity var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--c-cerulean);
  color: var(--c-white);
}
.btn--primary:hover:not(:disabled) { background-color: var(--c-cerulean-dark); }

.btn--ghost {
  background-color: transparent;
  color: var(--c-linen);
  border: 1px solid rgba(250, 248, 243, 0.3);
}
.btn--ghost:hover:not(:disabled) { border-color: rgba(250, 248, 243, 0.6); }

.btn--cerulean {
  background-color: var(--c-cerulean);
  color: var(--c-white);
}
.btn--cerulean:hover { background-color: var(--c-cerulean-dark); }

.btn--citrine {
  background-color: var(--c-citrine);
  color: var(--c-ink);
  font-weight: 600;
}
.btn--citrine:hover { background-color: #b0820e; }

/* Coming-soon state: present but clearly inactive */
.btn--coming-soon {
  opacity: 0.38;
  cursor: not-allowed;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 1.5rem;
}

.btn__soon {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}


/* ============================================
   NOTIFY / EMAIL CAPTURE
   ============================================ */

.notify {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
}

.notify__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-citrine);
  margin-bottom: 0.5rem;
}

.notify__label {
  color: rgba(250, 248, 243, 0.7);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.notify__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.notify__input {
  flex: 1;
  min-width: 200px;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(250, 248, 243, 0.2);
  background-color: rgba(250, 248, 243, 0.07);
  color: var(--c-linen);
  outline: none;
  transition: border-color var(--ease);
}

.notify__input::placeholder { color: rgba(250, 248, 243, 0.35); }
.notify__input:focus { border-color: var(--c-sky); }

.notify__footnote {
  font-size: 0.75rem;
  color: rgba(250, 248, 243, 0.38);
  margin-top: 0.75rem;
}

.notify__success {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--c-sky);
}


/* ============================================
   THREE PILLARS
   ============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pillar {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  border: 1px solid var(--c-gray-light);
  background-color: var(--c-white);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease);
}

.pillar:hover { box-shadow: var(--shadow-card-hover); }

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(0, 119, 182, 0.08);
  color: var(--c-cerulean);
  margin-bottom: 1.25rem;
}

.pillar__name {
  font-size: 1.25rem;
  color: var(--c-ink);
  margin-bottom: 0.75rem;
}

.pillar__desc {
  font-size: 0.9375rem;
  color: var(--c-gray-mid);
  line-height: 1.7;
}


/* ============================================
   PRINCIPLES (dark section)
   ============================================ */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.principle {
  border-top: 1px solid rgba(200, 149, 16, 0.3);
  padding-top: 1.5rem;
}

.principle__num {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-citrine);
  margin-bottom: 0.875rem;
}

.principle__title {
  font-size: 1.1875rem;
  color: var(--c-linen);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.principle__body {
  font-size: 0.9375rem;
  color: rgba(250, 248, 243, 0.62);
  line-height: 1.75;
}


/* ============================================
   COMING SOON CARDS
   ============================================ */

.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .coming-grid { grid-template-columns: 1fr; }
}

.coming-card {
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--c-gray-light);
  background-color: var(--c-white);
  box-shadow: var(--shadow-card);
}

.coming-card__tag {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cerulean);
  background-color: rgba(0, 119, 182, 0.07);
  border: 1px solid rgba(0, 119, 182, 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.625rem;
  margin-bottom: 1rem;
}

.coming-card__title {
  font-size: 1.125rem;
  color: var(--c-ink);
  margin-bottom: 0.625rem;
}

.coming-card__desc {
  font-size: 0.9rem;
  color: var(--c-gray-mid);
  line-height: 1.7;
}


/* ============================================
   BRIDGE TO CONTEXT ARCANA
   ============================================ */

.section--bridge {
  background-color: var(--c-ink-soft);
  padding-block: var(--section-y);
}

.bridge {
  display: flex;
  justify-content: center;
}

.bridge__content {
  max-width: 640px;
  text-align: center;
}

.bridge__title {
  font-size: clamp(1.5rem, 3.5vw, 2.375rem);
  color: var(--c-linen);
  margin-bottom: 1rem;
}

.bridge__body {
  color: rgba(250, 248, 243, 0.62);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--c-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__wordmark {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-linen);
  display: block;
  margin-bottom: 0.375rem;
}

.footer__version {
  font-size: 0.75rem;
  color: rgba(250, 248, 243, 0.38);
  letter-spacing: 0.04em;
}

.footer__license {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer__license p {
  font-size: 0.8125rem;
  color: rgba(250, 248, 243, 0.42);
  line-height: 1.6;
}

.footer__license strong {
  color: rgba(250, 248, 243, 0.68);
  font-weight: 500;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .hero__actions     { flex-direction: column; align-items: center; }
  .notify__form      { flex-direction: column; }
  .notify__input     { min-width: 0; width: 100%; }
  .footer__inner     { flex-direction: column; }
}
