/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --color-bg: #0a0a0a;
    --color-text: #fff;
    --color-dim: rgba(255, 255, 255, 0.5);
    --color-accent: #ff4d00;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --container-max: 760px;
    --spacing-section: 5rem;
}

/* Lenis */
html.lenis,
html.lenis body {
    height: auto;
}

/* Base */
html {
    font-size: 16px;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background effects */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

body::before {
    top: 0;
    left: 0;
    background: radial-gradient(circle 400px at 50% 0%, rgba(255, 77, 0, 0.12) 0%, transparent 100%);
}

body::after {
    display: none;
}

/* Animated glow blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.5;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    animation: float1 20s ease-in-out infinite;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.1) 0%, transparent 70%);
    top: 50%;
    left: -10%;
    animation: float2 25s ease-in-out infinite;
}

.bg-glow--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.12) 0%, transparent 70%);
    bottom: 10%;
    right: 20%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -30px) scale(1.15); }
    66% { transform: translate(50px, 10px) scale(0.9); }
}

/* Links */
a {
    color: inherit;
}

strong {
    font-weight: 500;
}

/* Main */
main {
    display: flex;
    flex-direction: column;
}

/* Intro */
.intro {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 14rem);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.title .char {
    display: inline-block;
    will-change: transform, opacity;
}

.intro__tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro__details {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--color-dim);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro .btn {
    opacity: 0;
    animation: fadeUp 1s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content */
.content {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-section) 2rem;
    opacity: 0;
    transform: translateY(40px);
}

.content p {
    margin-bottom: 1.5rem;
}

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

.content a:not(.btn) {
    text-decoration: none;
    position: relative;
    color: var(--color-text);
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
    transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.content a:not(.btn):hover {
    background-size: 100% 100%;
}

/* Highlighted words */
.hl {
    display: inline;
    position: relative;
    color: var(--color-text);
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 0% 100%;
    padding: 0.05em 0.2em;
    margin: 0 -0.2em;
    transition: background-size 0s;
}

.hl.is-active {
    background-size: 100% 100%;
    transition: background-size 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Big titles */
.big-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 14vw, 11rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    padding: 4rem 1rem;
}

.big-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

.big-title--accent {
    color: var(--color-accent);
}

/* CTA */
.content--cta {
    text-align: center;
    padding: 4rem 2rem 8rem;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    color: var(--color-text);
    transform: scale(1.05);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn--large {
    padding: 1.125rem 3rem;
    font-size: 1rem;
}

/* Footer */
.content--footer {
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
    color: var(--color-dim);
}

.content--footer a {
    text-decoration: none;
    position: relative;
    color: var(--color-text);
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
    transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.content--footer a:hover {
    background-size: 100% 100%;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    :root {
        --spacing-section: 4rem;
    }

    .bg-glow--1 {
        width: 400px;
        height: 400px;
    }

    .bg-glow--2 {
        width: 350px;
        height: 350px;
    }

    .bg-glow--3 {
        width: 300px;
        height: 300px;
    }
}

/* Responsive - Mobile Large */
@media (max-width: 767px) {
    :root {
        --spacing-section: 3.5rem;
    }

    body {
        font-size: 1.125rem;
    }

    .content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .big-title {
        font-size: clamp(2.5rem, 12vw, 6rem);
        padding: 3rem 1rem;
    }

    .bg-glow {
        filter: blur(60px);
        opacity: 0.4;
    }

    .bg-glow--1 {
        width: 300px;
        height: 300px;
        right: -20%;
    }

    .bg-glow--2 {
        width: 250px;
        height: 250px;
        left: -20%;
    }

    .bg-glow--3 {
        width: 200px;
        height: 200px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-section: 3rem;
    }

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    .intro {
        padding: 1.5rem;
    }

    .title {
        font-size: clamp(4rem, 25vw, 7rem);
        margin-bottom: 1.5rem;
    }

    .intro__tagline {
        font-size: 1.25rem;
    }

    .intro__details {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .content p {
        margin-bottom: 1.25rem;
    }

    .big-title {
        font-size: clamp(2rem, 14vw, 4rem);
        padding: 2.5rem 1rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .btn--large {
        padding: 1rem 2.5rem;
        font-size: 0.9375rem;
    }

    .content--cta {
        padding: 3rem 1.25rem 6rem;
    }

    .content--footer {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .bg-glow {
        filter: blur(50px);
        opacity: 0.3;
    }

    .bg-glow--1 {
        width: 200px;
        height: 200px;
    }

    .bg-glow--2 {
        width: 180px;
        height: 180px;
    }

    .bg-glow--3 {
        width: 150px;
        height: 150px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bg-glow {
        animation: none;
    }
}
