:root {
  --sky: #d9ecf7;
  --sky-deep: #4f9ecb;
  --ink: #0a0e1a;
  --cream: #f5f2eb;
  --gold: #c9a452;
  --gold-light: #e8c87a;
  --obsidian: #09090f;
  --emerald: #0e3d2b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section,
footer {
  scroll-margin-top: 4.5rem;
}

body {
  margin: 0;
  background: #d9ecf7;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #d9ecf7;
}

.bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.bg-layer--hero { opacity: 1; background: #d9ecf7; }

.bg-layer--alliance {
  background:
    radial-gradient(42% 32% at 18% 18%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(36% 28% at 80% 78%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #3f92c4 0%, #67b3dc 58%, #8ec9ea 100%);
}

.bg-rainbow {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 340px;
  height: 340px;
  background: conic-gradient(from 210deg, #e64980, #f59f00, #40c057, #22b8cf, #7048e8, #e64980);
  filter: blur(52px);
  opacity: 0.28;
  border-radius: 50%;
}

.bg-layer--web {
  background:
    linear-gradient(rgba(150, 90, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 150, 255, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 12% 40%, rgba(144, 0, 199, 0.38), transparent 52%),
    radial-gradient(ellipse at 90% 10%, rgba(40, 110, 255, 0.28), transparent 46%),
    #050509;
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

.bg-layer--sun {
  background:
    radial-gradient(40% 40% at 80% 20%, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(145deg, #f9a825 0%, #ffcc80 55%, #ffe3b8 100%);
}

.bg-layer--eles-film {
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(14, 61, 43, 0.85), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(160deg, #09090f 0%, #0e3d2b 100%);
}

.bg-layer--eles {
  background:
    linear-gradient(rgba(201, 164, 82, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 82, 0.08) 1px, transparent 1px),
    radial-gradient(50% 40% at 0% 50%, rgba(14, 61, 43, 0.7), transparent 60%),
    #09090f;
  background-size: 100% 120px, 160px 100%, auto, auto;
}

.bg-layer--ledger {
  background:
    radial-gradient(45% 40% at 85% 30%, rgba(34, 121, 78, 0.45), transparent 60%),
    radial-gradient(30% 30% at 10% 80%, rgba(34, 121, 78, 0.25), transparent 70%),
    #0a0a0f;
}

.bg-layer--sky {
  background-color: #d9ecf7;
  background-image:
    radial-gradient(46% 36% at 12% 16%, rgba(255, 255, 255, 0.65), transparent 70%),
    radial-gradient(40% 32% at 88% 12%, rgba(255, 255, 255, 0.4), transparent 68%),
    radial-gradient(42% 34% at 70% 88%, rgba(200, 220, 235, 0.45), transparent 70%);
}

main,
.footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  text-wrap: balance;
}

h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 80;
}

.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.nav.is-solid {
  background: rgba(217, 236, 247, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -22px rgba(10, 14, 26, 0.7);
}

.nav__logo img { height: 36px; width: auto; }

.nav__panel {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav.is-open .nav__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem 1rem;
  background: rgba(217, 236, 247, 0.98);
  box-shadow: 0 16px 30px -24px rgba(10, 14, 26, 0.8);
}

.nav__link,
.drop__btn,
.nav__join {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.nav__join {
  background: var(--ink);
  color: var(--cream);
  margin-left: 0.25rem;
}

.drop { position: relative; }

.drop__panel {
  display: none;
  min-width: 220px;
  padding: 0.4rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px -24px rgba(10, 14, 26, 0.55);
}

.drop.is-open .drop__panel { display: block; }

.drop__panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
}

.drop__panel a:hover { background: #e8f4ff; }

.nav__toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav__bars::before,
.nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }

@media (min-width: 980px) {
  .nav__toggle { display: none; }
  .nav__panel { display: flex; position: static; background: none; box-shadow: none; padding: 0; flex-direction: row; }
  .drop:hover .drop__panel,
  .drop:focus-within .drop__panel {
    display: block;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo,
.nav__logo img,
.why__logo,
.footer__base img {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55)) drop-shadow(0 2px 10px rgba(10, 14, 26, 0.28));
}

.hero__logo { width: min(86vw, 460px); height: auto; }

.hero__tagline {
  margin-top: 24px;
  font-family: var(--display);
  font-size: 28px;
  color: #333;
}

.scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  place-items: center;
  text-decoration: none;
  animation: bob 1.7s ease-in-out infinite;
}

.scroll.is-gone { opacity: 0; pointer-events: none; }

.scroll__shell {
  width: 28px;
  height: 48px;
  border: 2px solid #777;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.scroll__dot {
  width: 4px;
  height: 12px;
  margin-top: 8px;
  background: #777;
  border-radius: 2px;
  animation: drip 1.7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(16px); opacity: 0.15; }
  100% { transform: translateY(0); opacity: 1; }
}

.js [data-rise] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-rise="left"] { transform: translateX(-36px); }
.js [data-rise="right"] { transform: translateX(36px); }

.js .stage.is-in [data-rise] { opacity: 1; transform: none; }

.alliance {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 7rem 1.5rem 4.5rem;
}

.alliance__inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.unity {
  width: min(520px, 88vw);
  margin: 0.5rem auto 1.5rem;
  filter: drop-shadow(0 30px 40px rgba(10, 14, 26, 0.28));
}

.js .unity {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: 0.35s;
}

.js .stage.is-in .unity { opacity: 1; transform: none; }

.alliance__mission {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.alliance__body {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -18px rgba(10, 14, 26, 0.55);
}

.btn--ink { background: var(--ink); color: var(--cream); }

.btn--gold { background: var(--gold); color: var(--obsidian); }

.btn--neon {
  color: #f3e9ff;
  background: rgba(8, 8, 16, 0.45);
  border: 1px solid rgba(170, 110, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(70, 140, 255, 0.25), 0 0 22px rgba(120, 70, 255, 0.25);
}

.product {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4.5rem;
}

.product__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.product__logo img { width: min(320px, 78vw); margin: 0 auto; }

.product__logo--screen img { mix-blend-mode: screen; }

.product--web .product__logo img {
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 1rem;
}

.cards { display: grid; gap: 0.8rem; margin: 1.2rem 0; }

.card {
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.2rem; }

.mock {
  width: min(100%, 520px);
  max-height: 280px;
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
}

.product--web {
  color: var(--cream);
}

.product--web :focus-visible,
.product--eles :focus-visible,
.product--ledger :focus-visible,
.eles-title :focus-visible,
.eles-logo :focus-visible { outline-color: var(--gold-light); }

.product--web .card {
  background: #0d0d16;
  border: 1px solid rgba(168, 96, 255, 0.55);
  box-shadow: 0 0 24px rgba(90, 40, 180, 0.18);
}

.product--web .mock {
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 16px 28px rgba(110, 60, 255, 0.35));
}

.quote {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(150, 190, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.quote p { font-size: 1.02rem; }

.quote footer {
  margin-top: 0.7rem;
  color: rgba(245, 242, 235, 0.75);
  font-size: 0.88rem;
}

.product--sun {
  color: var(--ink);
}

.product--sun .card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 24px -18px rgba(120, 70, 0, 0.5);
}

.product--sun .mock { filter: drop-shadow(0 16px 24px rgba(90, 50, 0, 0.2)); }

.eles-title,
.eles-logo {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem;
  text-align: center;
  color: var(--gold-light);
}

.eles-title h2 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--gold-light);
  text-shadow: 0 0 28px rgba(232, 200, 122, 0.28);
  max-width: 14ch;
}

.eles-logo img { width: min(78vw, 460px); }

.product--eles {
  color: var(--cream);
}

.product--eles .card,
.product--ledger .card {
  background: #111118;
  color: var(--cream);
  border: 1px solid var(--gold);
}

.product--eles .product__logo img { width: min(300px, 70vw); }

.product--ledger {
  color: var(--cream);
}

.product--ledger .card { background: #10241c; }

.sky { color: var(--ink); }

.why, .contact { padding: 7rem 1.5rem 4.5rem; }

.why__inner, .contact__inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.why__logo { width: min(80vw, 420px); margin: 0 auto 1rem; }

.why__mission {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.why__grid, .contact__grid {
  display: grid;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.6rem;
}

.why__card, .contact__card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 16px 36px -28px rgba(10, 14, 26, 0.5);
}

.why__card h3, .contact__card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.why__card ul { margin-top: 0.8rem; }

.why__card li {
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative;
}

.why__card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  position: absolute;
  left: 0;
  top: 0.7rem;
}

.contact__card a { font-weight: 600; }

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tags li {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.form {
  text-align: left;
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 18px 44px -30px rgba(10, 14, 26, 0.55);
  display: grid;
  gap: 0.9rem;
}

.form__row { display: grid; gap: 0.9rem; }

.form label, .form__row label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid rgba(10, 14, 26, 0.16);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #fbfaf7;
  color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.footer { padding: 3.5rem 1.5rem 2.5rem; }

.footer__grid {
  width: min(1040px, 100%);
  margin: 0 auto 2rem;
  display: grid;
  gap: 1.5rem;
}

.footer h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}

.footer a { text-decoration: none; }
.footer li { margin: 0.3rem 0; }
.footer a:hover { text-decoration: underline; }

.footer__base {
  text-align: center;
  color: rgba(10, 14, 26, 0.72);
  font-size: 0.88rem;
}

.footer__base img {
  width: 180px;
  margin: 0 auto 0.7rem;
}

@media (min-width: 800px) {
  .product__inner { grid-template-columns: 0.8fr 1.2fr; }
  .product__inner--flip { grid-template-columns: 1.2fr 0.8fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 799px) {
  .product__inner--flip .product__logo { order: -1; }
  .hero__tagline { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll, .scroll__dot { animation: none; }
  .js [data-rise],
  .js .unity {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}
