:root {
  --background: #09090d;
  --background-deep: #050507;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.085);
  --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.42);
  --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%);
}

.site-header::before {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(640px, 80vw);
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 124, 255, 0.5),
    transparent
  );
  transform: translateX(-50%);
  opacity: 0.55;
}

.brand,
nav,
footer {
  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 {
  justify-content: flex-end;
  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);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 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;
}

.hero-copy::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(138, 124, 255, 0.26);
  border-radius: 999px;
  background: rgba(138, 124, 255, 0.08);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  content: "Student career planning app";
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  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;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: none;
}

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

.hero-title {
  max-width: 640px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  animation: floatIn 900ms var(--ease-out) 120ms both;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 0.96;
  letter-spacing: 0;
}

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: 22px;
  animation: floatIn 900ms var(--ease-out) 160ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: floatIn 900ms var(--ease-out) 240ms both;
}

.store-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 64px;
  padding: 10px 22px 10px 18px;
  overflow: hidden;
  border: 1px solid rgba(138, 124, 255, 0.48);
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #7766ff, #5b3fe8);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(95, 71, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: softPulse 4.8s ease-in-out infinite;
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    background 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

.store-button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 72%
  );
  opacity: 0;
  transform: translateX(-60%);
  transition:
    opacity 420ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.store-button:hover {
  transform: translateY(-3px);
  border-color: var(--active-border);
  box-shadow:
    0 22px 56px rgba(95, 71, 255, 0.34),
    0 0 34px rgba(138, 124, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.store-button:hover::before {
  opacity: 1;
  transform: translateX(60%);
}

.store-button:active {
  transform: translateY(-1px) scale(0.985);
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.05;
}

.store-button small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 760;
}

.store-button strong {
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.store-mark {
  position: relative;
  width: 30px;
  height: 34px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.24));
}

.store-mark::before,
.store-mark::after {
  position: absolute;
  content: "";
  background: white;
}

.store-mark::before {
  left: 6px;
  top: 6px;
  width: 19px;
  height: 24px;
  border-radius: 46% 46% 48% 48%;
  transform: rotate(-16deg);
}

.store-mark::after {
  left: 16px;
  top: 0;
  width: 10px;
  height: 14px;
  border-radius: 999px 999px 0 999px;
  transform: rotate(28deg);
}

.app-preview {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
  animation: phoneEnter 1000ms var(--ease-out) 160ms both;
}

.app-preview::before {
  position: absolute;
  top: 7%;
  width: 390px;
  height: 560px;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.18), transparent 64%);
  filter: blur(22px);
  content: "";
  opacity: 0.86;
}

.app-preview img {
  position: relative;
  display: block;
  width: min(100%, 390px);
  height: auto;
  border-radius: 44px;
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.5),
    0 0 52px rgba(138, 124, 255, 0.16);
  transform: rotateX(3deg) rotateY(-7deg);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 700ms var(--ease-smooth),
    box-shadow 700ms var(--ease-smooth);
}

.app-preview img:hover {
  box-shadow:
    0 48px 105px rgba(0, 0, 0, 0.56),
    0 0 72px rgba(138, 124, 255, 0.22);
}

.section {
  padding: 104px 0;
  border-top: 1px solid rgba(138, 124, 255, 0.14);
}

.download-section {
  padding-top: 0;
}

.download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid rgba(138, 124, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(138, 124, 255, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), 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);
}

.download-card p:last-child {
  margin-bottom: 0;
}

.compact {
  min-width: 205px;
}

.star-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  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: 30px;
  height: 30px;
  content: "";
  background: url("assets/Star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(138, 124, 255, 0.55));
}

footer {
  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);
}

.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;
}

.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);
}

@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);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow:
      0 18px 42px rgba(95, 71, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  50% {
    box-shadow:
      0 22px 56px rgba(95, 71, 255, 0.34),
      0 0 34px rgba(138, 124, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

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

  .hero,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 40px;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-title {
    font-size: 62px;
  }

  h2 {
    font-size: 52px;
  }

  .app-preview img {
    transform: none;
  }

  .download-card {
    align-items: start;
  }
}

@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;
  }

  .hero-title {
    font-size: 46px;
  }

  h2 {
    font-size: 40px;
  }

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

  .hero-copy::before {
    margin-bottom: 14px;
  }

  .hero-actions,
  .store-button {
    width: 100%;
  }

  .store-button {
    min-height: 64px;
  }

  .app-preview img {
    width: min(100%, 350px);
  }

  .section {
    padding: 76px 0;
  }

  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;
  }
}
