/* styles.css · partea 1/5 */
:root {
  --ivory: #f5f2e8;
  --paper: #fdfcf8;
  --ink: #111527;
  --indigo: #11153d;
  --indigo-2: #1b2057;
  --teal: #22b8a7;
  --teal-dark: #148d83;
  --teal-pale: #d8f1eb;
  --muted: #666d6b;
  --line: rgba(17, 21, 61, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --font-geist-sans: Inter, "Segoe UI", Arial, sans-serif;
  --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: var(--font-geist-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(34, 184, 167, 0.42);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header {
  position: relative;
  z-index: 50;
  height: 82px;
  border-bottom: 1px solid rgba(17, 21, 61, 0.11);
  background: rgba(245, 242, 232, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 80px, 1360px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-32deg);
}

.brand-mark i {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  right: 4px;
  top: 11px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ivory);
}

.primary-navigation {
  display: flex;
  align-items: stretch;
  gap: clamp(15px, 2.15vw, 36px);
  height: 100%;
}

.primary-navigation a {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 590;
  color: #33384a;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  background: var(--teal);
  transition: left 180ms ease, right 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a.active::after {
  left: 0;
  right: 0;
}

.primary-navigation a.active {
  color: var(--ink);
}

.primary-navigation .account-nav {
  min-height: 39px;
  margin: auto 0;
  padding: 0 15px;
  border: 1px solid rgba(17, 21, 61, 0.55);
  border-radius: 999px;
}

.primary-navigation .account-nav::after {
  display: none;
}

.primary-navigation .account-nav:hover,
.primary-navigation .account-nav.active {
  color: #061d1a;
  border-color: var(--teal);
  background: var(--teal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
}

.home-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  background: var(--ivory);
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 42%;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  z-index: 2;
  align-self: center;
  width: min(760px, calc(100% - 80px));
  margin-left: max(40px, calc((100vw - 1360px) / 2));
  padding: 62px 42px 64px 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--teal-dark);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker > span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.kicker-dark {
  color: var(--teal-dark);
}

.hero-copy h1 {
  margin: 0;
  max-width: 830px;
  color: var(--indigo);
  font-family: var(--serif);
  font-size: clamp(4rem, 5.45vw, 6.35rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.hero-copy h1 em {
  color: var(--teal-dark);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -1%;
  bottom: -7px;
  height: 2px;
  border-radius: 50%;
  background: var(--teal);
  transform: rotate(-1.2deg);
}

.hero-lede {
  max-width: 535px;
  margin: 34px 0 0;
  color: #454b55;
  font-size: clamp(1.04rem, 1.25vw, 1.26rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  min-height: 56px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.96rem;
  font-weight: 680;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #061d1a;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(34, 184, 167, 0.2);
}

.button-primary:hover {
  background: #2bc9b7;
  box-shadow: 0 16px 34px rgba(34, 184, 167, 0.3);
}

.button-primary span {
  transition: transform 180ms ease;
}

.button-primary:hover span {
  transform: translateX(4px);
}

.button-secondary {
  border-color: rgba(17, 21, 61, 0.55);
  color: var(--indigo);
  background: rgba(253, 252, 248, 0.48);
}

.button-secondary:hover {
  background: var(--paper);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 32px;
  color: #6b716f;
  font-size: 0.77rem;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--teal-dark);
  font-weight: 800;
}

.hero-cosmos {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background-color: var(--indigo);
  background-image:
    linear-gradient(90deg, rgba(17, 21, 61, 0.18), rgba(5, 9, 30, 0.03)),
    url("../assets/cosmic-horizon.png");
  background-position: center, 58% 50%;
  background-size: cover, cover;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -13vw;
}

.hero-cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(17, 21, 61, 0.52) 0%, transparent 43%);
}

.hero-cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(188, 202, 235, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 202, 235, 0.12) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(circle at 75% 36%, black, transparent 58%);
}

.orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(216, 241, 235, 0.43);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(34, 184, 167, 0.13), 0 0 18px var(--teal);
}

.orbit-one {
  width: 590px;
  height: 270px;
  left: 8%;
  top: 25%;
  animation: orbit-drift 32s linear infinite;
}

.orbit-two {
  width: 430px;
  height: 580px;
  left: 33%;
  top: -20%;
  border-style: dashed;
  opacity: 0.55;
  animation: orbit-drift-alt 38s linear infinite;
}

.star {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 17px 4px rgba(255, 255, 255, 0.45);
  animation: star-pulse 3.8s ease-in-out infinite;
}

.star-one { left: 38%; top: 19%; }

.star-two { right: 16%; top: 38%; animation-delay: -1.4s; }

.star-three { left: 21%; bottom: 19%; animation-delay: -2.7s; }

.hero-annotation {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 27px;
  display: flex;
  gap: 24px;
  color: rgba(240, 248, 255, 0.54);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.domain-section {
  width: min(100% - 80px, 1360px);
  margin: 0 auto;
  padding: 92px 0 108px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.65fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2,
.home-feature h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 500px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.domain-card {
  position: relative;
  min-height: 420px;
  padding: 25px 27px 29px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(253, 252, 248, 0.75);
  box-shadow: 0 16px 35px rgba(17, 21, 61, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.domain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 184, 167, 0.7);
  box-shadow: 0 23px 45px rgba(17, 21, 61, 0.13);
}

.domain-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.domain-index {
  color: #747b78;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.domain-arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 180ms ease, background 180ms ease;
}

.domain-card:hover .domain-arrow {
  transform: translate(3px, -3px);
  background: var(--teal-pale);
}

.domain-visual {
  position: relative;
  height: 150px;
  margin: 17px -5px 25px;
  overflow: hidden;
  border-radius: 12px;
  background-color: rgba(17, 21, 61, 0.025);
  background-image:
    linear-gradient(rgba(17, 21, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 61, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.domain-visual::before,
.domain-visual::after,
.domain-visual span {
  content: "";
  position: absolute;
  display: block;
}

.domain-visual.physics::before {
  left: 5%;
  right: 5%;
  top: 53%;
  height: 60px;
  border-top: 3px solid var(--teal);
  border-radius: 50%;
  transform: skewY(-12deg);
  box-shadow: 0 -13px 0 -11px var(--indigo-2), 0 13px 0 -11px #7d82ad;
}

.domain-visual.physics::after {
  width: 1px;
  height: 116px;
  left: 50%;
  top: 17px;
  background: var(--indigo);
}

.domain-visual.physics span {
  width: 12px;
  height: 12px;
  left: calc(50% - 6px);
  top: calc(50% - 6px);
  border: 2px solid var(--indigo);
  border-radius: 50%;
  background: var(--paper);
}

.domain-visual.astronomy::before {
  width: 104px;
  height: 104px;
  left: calc(50% - 52px);
  top: 22px;
  border: 1px solid var(--indigo-2);
  border-radius: 50%;
  box-shadow: inset 18px -11px 0 rgba(34, 184, 167, 0.11);
}

.domain-visual.astronomy::after {
  width: 210px;
  height: 70px;
  left: calc(50% - 105px);
  top: 39px;
  border: 1px dashed var(--teal-dark);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.domain-visual.astronomy span {
  width: 12px;
  height: 12px;
  right: 24%;
  top: 52%;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-pale);
}

.domain-visual.astrophysics::before {
  width: 112px;
  height: 112px;
  left: calc(50% - 56px);
  top: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #071027 0 16%, var(--teal) 17% 20%, #5a6aaa 21% 25%, transparent 26%);
  box-shadow: 0 0 30px rgba(34, 184, 167, 0.22);
}
