:root {
  --background: #09090d;
  --background-deep: #050507;

  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.085);
  --surface-soft: rgba(255, 255, 255, 0.035);

  --accent: #8a7cff;
  --accent-bright: #a89cff;
  --accent-deep: #5f47ff;

  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.66);
  --text-muted: rgba(255, 255, 255, 0.4);

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --active-border: rgba(138, 124, 255, 0.42);

  --shadow: rgba(138, 124, 255, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(138, 124, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 18% 6%, rgba(95, 71, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #0e0e14 0%, var(--background) 42rem, #07070a 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 28rem),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.38));
}

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

::selection {
  background: rgba(138, 124, 255, 0.35);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(7, 7, 10, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  width: 98px;
  overflow: hidden;
  transition:
    transform 500ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px) scale(1.025);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 720;
}

nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    color 280ms var(--ease-out),
    background 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

nav a::after {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 76px 0 104px;
}

.hero-copy {
  max-width: 650px;
  animation: floatIn 900ms var(--ease-out) both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

p {
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.7;
}

.hero-logo {
  display: block;
  width: min(100%, 470px);
  height: auto;
  margin: 0 0 28px;
  filter:
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 28px rgba(138, 124, 255, 0.12));
  transform-origin: left center;
  animation: logoReveal 900ms var(--ease-out) 90ms both;
}

.hero-text {
  max-width: 560px;
  font-size: clamp(18px, 2vw, 23px);
  animation: floatIn 900ms var(--ease-out) 160ms both;
}

/* ── Links Panel (right side) ── */

.links-panel {
  position: relative;
  display: grid;
  gap: 16px;
  animation: phoneEnter 1000ms var(--ease-out) 160ms both;
}

.links-panel::before {
  position: absolute;
  inset: -80px -40px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 30%, rgba(138, 124, 255, 0.22), transparent 38%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08), transparent 28%);
  filter: blur(12px);
  opacity: 0.9;
}

.orbital-card {
  position: relative;
  min-height: 320px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 56px rgba(0, 0, 0, 0.2);
}

.orbital-card::before,
.orbital-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(138, 124, 255, 0.18);
  border-radius: 999px;
}

.orbital-card::before {
  right: -80px;
  top: -92px;
  width: 260px;
  height: 260px;
}

.orbital-card::after {
  right: 42px;
  bottom: 40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.16), transparent 68%);
}

.orbital-card > * {
  position: relative;
}

.orbital-card h2 {
  max-width: 360px;
  margin-bottom: 20px;
}

.star-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border: 1px solid rgba(138, 124, 255, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.2), transparent 36%),
    rgba(138, 124, 255, 0.12);
}

.star-mark::before {
  width: 28px;
  height: 28px;
  content: "";
  background: url("assets/Star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(138, 124, 255, 0.55));
}

/* ── Links Strip ── */

.links-strip {
  display: grid;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 18px 22px;
  border: 1px solid rgba(138, 124, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    background 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--active-border);
  background:
    linear-gradient(180deg, rgba(138, 124, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--surface-raised);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 34px var(--shadow);
}

.link-card:active {
  transform: translateY(-1px) scale(0.985);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(138, 124, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
    rgba(138, 124, 255, 0.1);
}

.link-icon::before {
  width: 22px;
  height: 22px;
  content: "";
  background: url("assets/Star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(138, 124, 255, 0.4));
  opacity: 0.9;
}

.link-label {
  flex: 1;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--text);
}

.link-arrow {
  font-size: 20px;
  color: var(--accent-bright);
  transition: transform 280ms var(--ease-out);
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 850ms var(--ease-out),
    transform 850ms var(--ease-out),
    filter 850ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ── Footer ── */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  border-top: 1px solid rgba(138, 124, 255, 0.14);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 760;
}

footer a {
  transition:
    color 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

footer a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

/* ── Effects ── */

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 460px;
  height: 460px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.16), transparent 62%);
  filter: blur(22px);
  opacity: 0.8;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 400ms var(--ease-out);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px rgba(138, 124, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Keyframes ── */

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: none;
    filter:
      drop-shadow(0 18px 32px rgba(0, 0, 0, 0.38))
      drop-shadow(0 0 28px rgba(138, 124, 255, 0.12));
  }
}

@keyframes phoneEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.965);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .cursor-glow {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 52px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    width: 86px;
  }

  nav {
    gap: 2px;
    font-size: 12px;
  }

  nav a {
    padding: 9px 8px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 18px;
  }

  footer {
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}