/* Cursor Profile Manager — marketing site
   Relative paths only (GitHub project Pages base). */

:root {
  --color-bg: #0c1218;
  --color-bg-mid: #101820;
  --color-surface: #1a222c;
  --color-text: #e8eef4;
  --color-muted: #9aa8b5;
  --color-accent: #3d9cf0;
  --color-accent-hover: #5aaff5;
  --color-accent-soft: rgba(61, 156, 240, 0.14);
  --color-border: rgba(232, 238, 244, 0.1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --space: 1rem;
  --max-width: 72rem;
  --hero-rise: 0.7s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.5;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 12% -8%, var(--color-accent-soft), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 18%, rgba(61, 156, 240, 0.07), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-mid) 55%, #0e151c 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Soft atmosphere grid (not flat fill) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(232, 238, 244, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 244, 0.035) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 78%);
}

a {
  color: var(--color-accent);
}

.site-header,
.site-footer,
.how-to,
.hero-copy {
  width: min(100% - 2 * var(--space), var(--max-width));
  margin-inline: auto;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  padding-block: var(--space);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* --- Hero: one composition, full-bleed product visual --- */

.hero {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.75);
  min-height: calc(100vh - 3.5rem);
  padding-top: calc(var(--space) * 1.25);
  padding-bottom: 0;
}

.hero-copy {
  padding-bottom: calc(var(--space) * 0.5);
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  animation: hero-rise var(--hero-rise) var(--ease-out) both;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
  animation: hero-rise var(--hero-rise) var(--ease-out) 0.08s both;
}

.hero-support {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  max-width: 38rem;
  animation: hero-rise var(--hero-rise) var(--ease-out) 0.14s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  animation: hero-rise var(--hero-rise) var(--ease-out) 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-accent);
  color: #0a1016;
  box-shadow: 0 0 0 0 transparent;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #0a1016;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 156, 240, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: rgba(232, 238, 244, 0.28);
  background: rgba(232, 238, 244, 0.04);
  transform: translateY(-2px);
}

/* Full-bleed image plane (not inset card) */
.hero-visual {
  flex: 1 1 auto;
  width: 100%;
  min-height: min(48vh, 28rem);
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(12, 18, 24, 0.35)),
    var(--color-surface);
  animation: hero-image-reveal 0.9s var(--ease-out) 0.18s both;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(48vh, 28rem);
  object-fit: cover;
  object-position: top left;
  border: 0;
  vertical-align: middle;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-reveal {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .hero-brand,
  .hero-headline,
  .hero-support,
  .hero-cta,
  .hero-visual {
    animation: none;
  }

  .btn,
  .btn-primary:hover,
  .btn-secondary:hover {
    transition: none;
    transform: none;
  }
}

/* --- How-to: simple numbered list (no cards) --- */

.how-to {
  padding-block: calc(var(--space) * 3);
}

.how-to h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.how-to-intro {
  margin: 0 0 calc(var(--space) * 1.75);
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.how-to-steps {
  margin: 0;
  padding-left: 1.5rem;
  max-width: 42rem;
}

.how-to-steps > li {
  margin-bottom: calc(var(--space) * 1.5);
  padding-left: 0.35rem;
  color: var(--color-muted);
}

.how-to-steps > li:last-child {
  margin-bottom: 0;
}

.how-to-steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.how-to-steps p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.how-to code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: rgba(232, 238, 244, 0.06);
  color: var(--color-text);
}

.how-to-note {
  margin: calc(var(--space) * 1.75) 0 0;
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer {
  padding-block: calc(var(--space) * 2);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* Narrow: stack copy above large image */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    gap: calc(var(--space) * 1.25);
    padding-top: var(--space);
  }

  .hero-headline {
    max-width: none;
  }

  .hero-visual,
  .hero-image {
    min-height: 14rem;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 8.5rem;
  }
}

@media (min-width: 900px) {
  .hero {
    gap: calc(var(--space) * 2);
    padding-top: calc(var(--space) * 2);
  }

  .hero-visual,
  .hero-image {
    min-height: min(52vh, 34rem);
  }
}
