/* ================================================
   SOLON FINANCE — Landing Page
   Version 2.0 — Pure HTML/CSS/JS
   Cloudflare Pages deployment
   ================================================ */

/* ---- Variables ---- */
:root {
  --navy:        #0A1628;
  --navy-alt:    #1E2D3E;
  --gold:        #C9A84C;
  --gold-dim:    rgba(201, 168, 76, 0.25);
  --gold-faint:  rgba(201, 168, 76, 0.07);
  --white:       #FFFFFF;
  --linen:       #F6F5F0;
  --slate:       #7A8FA8;
  --slate-dim:   rgba(122, 143, 168, 0.5);

  --f-display:   'Cormorant Garamond', serif;
  --f-sc:        'Cormorant SC', serif;
  --f-ui:        'Inter', sans-serif;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Body ---- */
body {
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ---- Atmospheric background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 65%),
    radial-gradient(ellipse 50% 35% at 95% 95%,
      rgba(201, 168, 76, 0.05) 0%,
      transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 80%,
      rgba(30, 45, 62, 0.6) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 2rem 2.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.lang-btn:hover {
  border-color: var(--gold);
}

.lang-opt {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--slate);
  transition: color 0.3s var(--ease);
  line-height: 1;
}

.lang-opt.active {
  color: var(--gold);
}

.lang-sep {
  font-family: var(--f-ui);
  font-size: 0.55rem;
  color: var(--gold-dim);
  line-height: 1;
}

/* ---- Page ---- */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 1.5rem 3rem;
}

/* ---- Center block ---- */
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
}

/* ---- Vertical rules ---- */
.v-rule {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold) 40%,
    var(--gold) 60%,
    transparent
  );
  opacity: 0;
}

.v-rule--top {
  height: 72px;
  margin-bottom: 2.8rem;
  animation: fadeUp 1.2s var(--ease) 0.1s forwards;
}

.v-rule--bottom {
  height: 52px;
  margin-top: 2.8rem;
  margin-bottom: 2.4rem;
  animation: fadeUp 1.2s var(--ease) 1.1s forwards;
}

/* ---- Wordmark ---- */
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  margin-bottom: 2rem;
  animation: riseIn 1s var(--ease) 0.3s forwards;
  opacity: 0;
  letter-spacing: 0.02em;
}

.wm-solon {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  color: var(--white);
  letter-spacing: 0.04em;
}

.wm-finance {
  font-family: var(--f-sc);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ---- Tagline ---- */
.tagline {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 1.1rem;
  line-height: 1.5;
  animation: riseIn 1s var(--ease) 0.5s forwards;
  opacity: 0;
}

/* ---- Descriptor ---- */
.descriptor {
  font-family: var(--f-ui);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.4rem;
  animation: riseIn 1s var(--ease) 0.65s forwards;
  opacity: 0;
}

/* ---- Horizontal rule ---- */
.h-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold),
    transparent
  );
  margin-bottom: 2.4rem;
  animation: expandRule 1s var(--ease) 0.8s forwards;
  opacity: 0;
  transform: scaleX(0);
}

/* ---- Status ---- */
.status {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1.6rem;
  animation: riseIn 1s var(--ease) 0.9s forwards;
  opacity: 0;
}

/* ---- Contact ---- */
.contact {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: riseIn 1s var(--ease) 1s forwards;
  opacity: 0;
}

.contact:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- PRISM footer ---- */
.prism {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  animation: riseIn 1s var(--ease) 1.3s forwards;
  opacity: 0;
  padding: 0 1rem;
}

.prism-item {
  display: inline-flex;
  align-items: baseline;
}

.pl {
  font-family: var(--f-sc);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.pw {
  font-family: var(--f-display);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--slate-dim);
  letter-spacing: 0.04em;
}

.pd {
  font-family: var(--f-ui);
  font-size: 0.55rem;
  color: var(--gold-dim);
  margin: 0 0.5rem;
  line-height: 1;
}

/* ---- Language utility ---- */
.fr { display: none; }
.en { display: inline; }

body.lang-fr .fr { display: inline; }
body.lang-fr .en { display: none; }

/* For block elements */
p.fr { display: none; }
p.en { display: block; }

body.lang-fr p.fr { display: block; }
body.lang-fr p.en { display: none; }

/* ---- Animations ---- */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from { opacity: 0; }
  to   { opacity: 0.45; }
}

@keyframes expandRule {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .nav { padding: 1.4rem; }

  .wm-solon,
  .wm-finance { font-size: 2rem; letter-spacing: 0.03em; }

  .v-rule--top  { height: 48px; margin-bottom: 2rem; }
  .v-rule--bottom { height: 36px; margin-top: 2rem; margin-bottom: 1.8rem; }

  .prism { gap: 0.1rem; }
  .pd { margin: 0 0.3rem; }
}