:root {
    color-scheme: dark;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #04040f;
    color: #f9f9ff;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(68, 64, 255, 0.25), transparent 45%),
        linear-gradient(180deg, #0a0a1e 0%, #04040f 100%);
}

a {
    color: inherit;
}

.page-header {
    padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) 4rem;
    background: linear-gradient(180deg, rgba(14, 14, 36, 0.9) 0%, rgba(4, 4, 15, 0) 100%);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(249, 249, 255, 0.6);
    letter-spacing: 0.05em;
    font-weight: 300;
}

.brand a,
.brand-link {
    color: inherit;
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-link {
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(249, 249, 255, 0.4);
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-link:focus-visible,
.cta-link:hover {
    border-color: rgba(249, 249, 255, 0.6);
    background-color: rgba(249, 249, 255, 0.1);
    outline: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 3rem);
    margin-top: clamp(3rem, 8vw, 6rem);
    align-items: center;
    justify-items: center;
}

.hero-copy {
    max-width: 510px;
    margin: 0 auto;
    text-align: left;
}

.tagline {
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(249, 249, 255, 0.6);
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

.hero-description {
    color: rgba(249, 249, 255, 0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 4rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.7rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.primary-button {
    background: linear-gradient(135deg, #7771ff 0%, #a660ff 100%);
    color: #04040f;
}

.secondary-button {
    border: 1px solid rgba(249, 249, 255, 0.4);
    color: #f9f9ff;
}

.secondary-button:focus-visible,
.secondary-button:hover {
    border-color: rgba(249, 249, 255, 0.6);
    background-color: rgba(249, 249, 255, 0.1);
    outline: none;
}

.hero-widget {
    grid-column: span 5;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}

.hero-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.orbital-path-visualizer {
    position: relative;
    --orbital-size: clamp(220px, 35vw, 420px);
    width: var(--orbital-size);
    height: var(--orbital-size);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(0.5rem, 3vh, 2.5rem) auto;
}

.orbital-path {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(249, 249, 255, 0.18);
    background: radial-gradient(circle, rgba(119, 113, 255, 0.05) 0%, transparent 60%);
    box-shadow: 0 0 50px rgba(119, 113, 255, 0.15);
}

.guidepost {
    position: absolute;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: rgba(249, 249, 255, 0.28);
}

.guidepost.new-moon {
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
}

.guidepost.first-quarter {
    top: 50%;
    right: -0.75rem;
    transform: translateY(-50%);
}

.guidepost.full-moon {
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
}

.guidepost.third-quarter {
    top: 50%;
    left: -0.75rem;
    transform: translateY(-50%);
}

.current-moon-icon {
    position: absolute;
    top: 0;
    left: 50%;
    margin-top: clamp(-16px, -2.5vh, -26px);
    margin-left: clamp(-16px, -2.5vh, -26px);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #ffcc00;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.65), 0 0 30px rgba(255, 204, 0, 0.35);
    transform-origin: 50% calc(var(--orbital-size) / 2 + clamp(16px, 2.5vh, 26px));
    transition: transform 2s cubic-bezier(0.65, 0, 0.35, 1);
}

.center-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--orbital-size) * 0.68);
    height: calc(var(--orbital-size) * 0.68);
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(119, 113, 255, 0.45);
    opacity: 0;
    animation: glyphFade 0.8s ease-in-out 0.8s forwards, glyphPulse 5s ease-in-out infinite 2s;
}

@keyframes glyphFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glyphPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px rgba(119, 113, 255, 0.3);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 60px rgba(119, 113, 255, 0.55);
    }
}

.astrological-context {
    margin-top: clamp(1rem, 3vh, 2.5rem);
    text-align: center;
    color: rgba(249, 249, 255, 0.78);
    max-width: 32ch;
}

.current-phase-sign {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.highlight {
    color: #f6eaff;
    font-weight: 600;
}

.transmission-page {
    min-height: 100vh;
}

.transmission-main {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(4rem, 8vw, 6rem);
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);
}

.transmission-hero {
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.transmission-hero .hero-widget {
    grid-column: auto;
    margin: 0 auto;
    width: min(100%, 480px);
}

.transmission-hero .transmission-cta-row {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.transmission-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 540px;
}

.transmission-summary .tagline {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: rgba(249, 249, 255, 0.6);
    margin: 0;
}

.transmission-summary h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 0;
}

.transmission-summary .astrological-context {
    margin-top: 0;
    text-align: left;
}


.transmission-app-button {
    align-self: center;
}

.transmission-body {
    max-width: 840px;
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}


.transmission-body .transmission-copy {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    color: rgba(249, 249, 255, 0.78);
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

.transmission-cta-row {
    display: flex;
    justify-content: center;
    padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.transmission-section {
    padding: 4rem clamp(1.5rem, 4vw, 3.5rem);
    text-align: center;
}

.transmission-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.transmission-copy {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(249, 249, 255, 0.75);
}

.how-it-works {
    padding: 4rem clamp(1.5rem, 4vw, 3.5rem);
    background: rgba(12, 12, 32, 0.35);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.steps article {
    background: rgba(12, 12, 32, 0.5);
    border: 1px solid rgba(119, 113, 255, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
}

.community-section {
    padding: 4rem clamp(1.5rem, 4vw, 3.5rem);
    text-align: center;
    color: rgba(249, 249, 255, 0.8);
}

.install-guide {
    padding: 4rem clamp(1.5rem, 4vw, 3.5rem) 5rem;
    background: rgba(12, 12, 32, 0.35);
}

.install-guide h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.install-steps {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.install-steps ol {
    padding-left: 1.25rem;
}

.page-footer {
    padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
    text-align: center;
    color: rgba(249, 249, 255, 0.6);
    border-top: 1px solid rgba(119, 113, 255, 0.15);
}

@media (max-width: 600px) {
    .hero {
        text-align: center;
    }

    .transmission-summary {
        align-items: center;
        /* text-align: center; */
        margin: 0 auto;
    }

    .transmission-summary .astrological-context {
        text-align: center;
    }

    .transmission-app-button {
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {

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