/* ============================================================
   ASTERON — Applied Sciences
   Placeholder site styles. Day (Solaris) / Night (Noctis) system.
   ============================================================ */

:root {
  /* Brand gold */
  --gold:        #D4A841;
  --gold-lt:     #E7C56E;
  --gold-dp:     #A8812E;

  /* Solaris (day) */
  --solaris-cream: #F3E7C9;
  --solaris-warm:  #E8A23C;

  /* Noctis (night) */
  --noctis-black:    #0E0C0A;
  --noctis-charcoal: #1C1A17;

  /* Shared */
  --amber-glass: #3A2412;
  --bone:        #F3E7C9;
  --ink:         #14110C;
  --neutral:     #8A8578;

  --maxw: 1120px;
  --serif: "Cormorant Garamond", "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Mona Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--noctis-black);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.6; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.center { text-align: center; }
.muted { color: var(--neutral); }

/* ---------- Brand wordmark / logo ---------- */
.brandmark { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; text-decoration: none; }
.brandmark .glyph {
  width: 34px; height: 34px;
  position: relative;
}
.brandmark .glyph svg { width: 100%; height: 100%; display: block; }
.brandmark .word {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.42em;
  font-size: 1.05rem;
  color: var(--gold);
  padding-left: 0.42em; /* optical balance for tracking */
}
.brandmark .sub {
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--neutral);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,12,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,168,65,0.16);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.site-header .brandmark { flex-direction: row; gap: 0.6rem; }
.site-header .brandmark .word { font-size: 0.95rem; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); align-items: center; }
.nav a {
  text-decoration: none; color: var(--bone);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.85; transition: opacity 0.2s, color 0.2s;
}
.nav a:hover { opacity: 1; color: var(--gold-lt); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}
.btn:hover { background: var(--gold); color: var(--noctis-black); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--gold); color: var(--noctis-black); }
.btn-solid:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  text-align: center;
  color: var(--bone);
  background:
    radial-gradient(120% 80% at 18% 30%, rgba(232,162,60,0.42), transparent 55%),
    radial-gradient(140% 90% at 88% 75%, rgba(28,26,23,0.0), transparent 60%),
    linear-gradient(105deg, var(--solaris-warm) 0%, var(--gold-dp) 22%, var(--noctis-charcoal) 58%, var(--noctis-black) 100%);
  overflow: hidden;
}
.hero::after {
  /* subtle starfield on the night side */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 70% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.2px 1.2px at 82% 48%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.6px 1.6px at 90% 30%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 78% 68%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.3px 1.3px at 95% 60%, rgba(255,255,255,0.45), transparent);
  opacity: 0.8; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { margin: 1.2rem 0 0.6rem; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .tagline { color: var(--gold-lt); }
.hero .descriptor { max-width: 40ch; margin: 1.2rem auto 0; color: rgba(243,231,201,0.9); }
.hero .hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .brand-line {
  margin-top: 1.6rem; font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(243,231,201,0.78);
}

/* ---------- Protocol split ---------- */
.protocol { background: var(--noctis-charcoal); color: var(--bone); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(212,168,65,0.18); }
.split .panel { padding: clamp(2.2rem, 4vw, 3.6rem); }
.split .am { background: linear-gradient(160deg, rgba(243,231,201,0.96), rgba(232,162,60,0.16)); color: var(--ink); }
.split .pm { background: linear-gradient(160deg, var(--noctis-black), var(--noctis-charcoal)); color: var(--bone); }
.split h3 { margin-bottom: 0.4rem; }
.split .role { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dp); margin-bottom: 1rem; }
.split .pm .role { color: var(--gold); }
.split .take { margin-top: 1.2rem; font-style: italic; color: inherit; opacity: 0.8; }
.split .panel .btn { margin-top: 1.6rem; }
.framing { text-align: center; max-width: 60ch; margin: 2.6rem auto 0; font-family: var(--serif); font-size: clamp(1.3rem,2.6vw,1.8rem); line-height: 1.4; color: var(--gold-lt); }

/* ---------- Generic light/dark sections ---------- */
.s-light { background: var(--solaris-cream); color: var(--ink); }
.s-dark  { background: var(--noctis-black); color: var(--bone); }
.s-dark .muted { color: rgba(243,231,201,0.6); }

.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 0.6rem 0; }

/* ---------- Philosophy points ---------- */
.points { display: grid; gap: 1.6rem; max-width: 64ch; }
.points p { font-size: 1.05rem; }
.points .key { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-dp); }

/* ---------- Two compounds cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.card {
  border: 1px solid rgba(212,168,65,0.3);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column;
}
.card.solaris { background: linear-gradient(165deg, var(--solaris-cream), #fff7e6); color: var(--ink); }
.card.noctis  { background: linear-gradient(165deg, var(--noctis-charcoal), var(--noctis-black)); color: var(--bone); border-color: rgba(212,168,65,0.28); }
.card h3 { margin-bottom: 0.2rem; }
.card .role { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; color: var(--gold-dp); }
.card.noctis .role { color: var(--gold); }
.card ul { list-style: none; margin: 1rem 0; }
.card li { padding: 0.35rem 0; border-bottom: 1px dashed rgba(138,133,120,0.3); font-size: 0.96rem; }
.card li a { color: var(--gold-dp); text-decoration: none; border-bottom: 1px solid transparent; }
.card.noctis li a { color: var(--gold-lt); }
.card li a:hover { border-bottom-color: currentColor; }
.card .reveal-note { margin-top: auto; padding-top: 1.2rem; font-size: 0.84rem; font-style: italic; opacity: 0.7; }
.card .btn { margin-top: 1.4rem; align-self: flex-start; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; text-align: center; }
.step { padding: 1.6rem; border: 1px solid rgba(212,168,65,0.22); }
.step .n { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 0.4rem; }

/* ---------- Quality list ---------- */
.quality { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.4rem; max-width: 70ch; }
.quality .q { padding: 0.6rem 0; border-bottom: 1px solid rgba(138,133,120,0.25); font-size: 0.98rem; }

/* ---------- Signup ---------- */
.signup { text-align: center; }
.signup form { display: flex; gap: 0.6rem; max-width: 480px; margin: 1.8rem auto 0; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  flex: 1 1 240px;
  padding: 0.95rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(212,168,65,0.45);
  color: var(--bone);
  font-family: var(--sans); font-size: 0.95rem;
}
.signup input::placeholder { color: rgba(243,231,201,0.5); }
.signup .note { margin-top: 1rem; font-size: 0.82rem; }

/* ---------- Origin ---------- */
.origin { max-width: 60ch; }
.origin p { margin-bottom: 1.2rem; }
.origin .why { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-dp); }
.origin .close { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-dp); }

/* ---------- Footer ---------- */
.site-footer { background: #080706; color: var(--bone); padding: clamp(3rem,6vw,5rem) 0 2rem; border-top: 1px solid rgba(212,168,65,0.16); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-grid .brandmark { align-items: flex-start; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(243,231,201,0.8); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold-lt); }
.disclaimer { margin-top: 2.4rem; font-size: 0.74rem; line-height: 1.7; color: rgba(138,133,120,0.85); max-width: 80ch; }
.copyright { margin-top: 1.2rem; font-size: 0.74rem; color: rgba(138,133,120,0.7); }

/* ---------- Product page hero ---------- */
.product-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-top: clamp(3rem,6vw,5rem); }
.product-hero .shot { display: flex; justify-content: center; }
.product-hero .shot img { max-height: 560px; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }
.product-hero.solaris-hero { background: linear-gradient(150deg, var(--solaris-cream), #fff8ea); color: var(--ink); }
.product-hero.noctis-hero { background: linear-gradient(150deg, var(--noctis-black), var(--noctis-charcoal)); color: var(--bone); }
.product-hero h1 { margin: 0.4rem 0; }
.product-hero .role { font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dp); }
.product-hero.noctis-hero .role { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quality { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; text-align: center; }
  .product-hero .shot { order: -1; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--noctis-black); padding: 1rem 1.5rem; border-bottom: 1px solid rgba(212,168,65,0.2); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; line-height: 1; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Bottle glows (assume transparent PNGs) + advert hero
   ============================================================ */

/* Soft radial glow behind a transparent bottle */
.bottle-glow { position: relative; display: flex; justify-content: center; }
.bottle-glow::before {
  content: ""; position: absolute; z-index: 0;
  width: 78%; height: 70%; top: 14%; left: 11%;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.85;
}
.bottle-glow.warm::before { background: radial-gradient(circle, rgba(232,162,60,0.55), rgba(212,168,65,0.18) 55%, transparent 72%); }
.bottle-glow.cool::before { background: radial-gradient(circle, rgba(212,168,65,0.30), rgba(199,206,220,0.12) 55%, transparent 72%); }
.bottle-glow img { position: relative; z-index: 1; }

/* Card bottle thumb (homepage compound cards) */
.card .card-shot { display: flex; justify-content: center; margin: -0.4rem 0 1rem; }
.card .card-shot img { max-height: 230px; filter: drop-shadow(0 14px 26px rgba(0,0,0,0.35)); }

/* ---------- Advert hero band ---------- */
.advert-hero {
  position: relative;
  background: #0E0C0A;
  display: flex; justify-content: center;
}
.advert-hero img.advert {
  width: 100%; max-width: 760px; height: auto; display: block;
}
/* email form overlaid on the bordered box at the bottom of the advert */
.advert-hero .advert-cta {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 4.5%;
  width: 46%;
  display: flex; gap: 0.4rem; justify-content: center;
}
.advert-hero .advert-cta input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  padding: 0.7rem 0.8rem;
  background: rgba(14,12,10,0.6);
  border: 1px solid rgba(212,168,65,0.55);
  color: var(--bone); font-size: 0.85rem;
}
.advert-hero .advert-cta input::placeholder { color: rgba(243,231,201,0.6); }
.advert-hero .advert-cta button {
  padding: 0.7rem 1rem; font-size: 0.7rem; white-space: nowrap;
}
@media (max-width: 680px) {
  /* below the advert on small screens rather than overlaid */
  .advert-hero .advert-cta {
    position: static; transform: none; width: 100%;
    padding: 1rem; background: #0E0C0A;
  }
  .advert-hero { flex-direction: column; align-items: center; }
}
