/* ============================================
   GYMMY - YUYA-Style Landing Page
   ============================================ */

/* CSS Variables - GYMMY Color Palette */
:root {
    --bg-light: #FAFAFA;
    --bg-dark: #121212;
    --primary: #8A2BE2;
    --accent: #FF4757;
    --text: #333333;
    --text-light: #FAFAFA;
    --text-muted: #888888;
    --divider: #E5E5E5;
    --gradient-like: linear-gradient(135deg, #FF6B6B, #FF8E53);

    /* Layout */
    --max-width: 1600px;
    --padding-desktop: 80px;
    --padding-tablet: 30px;
    --padding-mobile: 20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-light);
    cursor: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.cursor-hover {
    width: 80px;
    height: 80px;
}

/* Hide custom cursor on touch devices via media query */
@media (hover: none) and (pointer: coarse) {
    .cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1);
}

button {
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--divider);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px var(--padding-desktop);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: var(--text);
}

.logo:hover {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.06em;
    color: var(--text);
}

.nav-link:hover {
    color: var(--text-muted);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    background-color: var(--bg-light);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-name {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-title {
    font-size: 174px;
    font-weight: 600;
    letter-spacing: -0.09em;
    line-height: 1em;
    color: var(--text);
}

.hero-subtitle {
    font-size: 174px;
    font-weight: 600;
    letter-spacing: -0.09em;
    line-height: 1em;
    color: var(--primary);
}

.hero-avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bio {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    gap: 40px;
}

.hero-contact {
    flex-shrink: 0;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.06em;
    color: var(--text);
}

.email-link:hover {
    color: var(--primary);
}

.email-link svg {
    flex-shrink: 0;
}

.hero-description {
    max-width: 643px;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.1em;
    text-align: justify;
    color: var(--text);
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 20px 36px;
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    border-radius: 0;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--text);
    color: var(--text-light);
}

.cta-button-light {
    background-color: var(--text-light);
    color: var(--text);
}

.cta-button-light:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.platforms {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
}

.platform-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

.divider::after {
    content: '';
    display: block;
    height: 1px;
    background-color: var(--divider);
}

/* ============================================
   SECTIONS (Features & About)
   ============================================ */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0;
}

.section-title {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2em;
    color: var(--text);
}

.section-cta {
    padding: 16px 26px;
    background-color: var(--divider);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--text);
    transition: all 0.3s ease;
}

.section-cta:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 30px 0 80px;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    cursor: none;
}

.feature-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.feature-title {
    position: relative;
    z-index: 2;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.2em;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-card:hover .feature-title {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 80px 0 160px;
    background-color: var(--bg-light);
}

.about-content {
    padding-bottom: 80px;
}

.about-text-large {
    max-width: 728px;
    font-size: 50px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.1em;
    text-align: left;
    color: var(--text);
}

.about-details {
    display: flex;
    align-items: center;
    gap: 76px;
    padding-left: 100px;
}

.about-image {
    width: 553px;
    flex-shrink: 0;
    aspect-ratio: 1.38 / 1;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-small {
    max-width: 311px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.2em;
    text-align: justify;
    color: var(--text);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px var(--padding-desktop);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
}

.social-link {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--text-light);
    transition: color 0.4s ease;
}

.social-link:hover {
    color: var(--text-muted);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-heading {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.2em;
    background: linear-gradient(95deg, var(--text-light) 37%, #383838 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Email Signup Form */
.email-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.email-input {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.02em;
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    outline: none;
    min-width: 280px;
    cursor: none;
    transition: border-color 0.3s ease;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--text-light);
}

.email-form .cta-button {
    border: none;
    margin-left: -1px;
}

.email-form-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
}

.email-form-message.success {
    color: #4ade80;
}

.email-form-message.error {
    color: var(--accent);
}

.available-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 14px;
}

.pulse-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-light);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--text-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(2);
        opacity: 0;
    }
}

.available-badge span:last-child {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-info {
    display: flex;
    gap: 170px;
}

.footer-contact,
.footer-credits,
.footer-copyright {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6em;
}

.footer-contact a {
    display: block;
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-up {
    animation: slideUp 1.2s cubic-bezier(0.42, 0.21, 0, 1) forwards;
}

.animate-scale {
    animation: scaleIn 1.2s cubic-bezier(0, 0.13, 0, 0.98) forwards;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE - TABLET (810px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .header-container,
    .hero-container,
    .section-container,
    .footer-container,
    .divider {
        padding-left: var(--padding-tablet);
        padding-right: var(--padding-tablet);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 116px;
    }

    .hero-avatar {
        width: 110px;
        height: 110px;
    }

    .hero-description {
        font-size: 32px;
        max-width: 335px;
    }

    .about-details {
        gap: 50px;
        padding-left: 0;
    }

    .about-image {
        width: 350px;
    }

    .about-text-large {
        font-size: 40px;
    }

    .feature-title {
        font-size: 38px;
    }

    .footer-heading {
        font-size: 38px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (< 809px)
   ============================================ */
@media (max-width: 809px) {
    /* Hide custom cursor on mobile */
    .cursor {
        display: none !important;
    }

    body, a, button {
        cursor: auto !important;
    }

    .header-container,
    .hero-container,
    .section-container,
    .footer-container,
    .divider {
        padding-left: var(--padding-mobile);
        padding-right: var(--padding-mobile);
    }

    .header-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 140px 0 40px;
        min-height: auto;
    }

    .hero-container {
        min-height: auto;
        gap: 34px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-avatar {
        width: 110px;
        height: 110px;
        order: -1;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 76px;
    }

    .hero-bio {
        flex-direction: column;
        gap: 34px;
        margin-top: 30px;
    }

    .hero-description {
        font-size: 28px;
        max-width: 100%;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .features {
        padding: 30px 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 34px;
    }

    .feature-title {
        font-size: 32px;
    }

    .about {
        padding: 30px 0 70px;
    }

    .about-content {
        padding-bottom: 40px;
    }

    .about-text-large {
        font-size: 28px;
    }

    .about-details {
        flex-direction: column;
        gap: 32px;
        padding-left: 0;
    }

    .about-image {
        width: 100%;
    }

    .about-text-small {
        max-width: 100%;
        font-size: 16px;
    }

    .footer-container {
        padding: 140px var(--padding-mobile) 24px;
    }

    .footer-social {
        justify-content: flex-start;
        gap: 30px;
    }

    .footer-heading {
        font-size: 32px;
    }

    .footer-cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .email-form {
        flex-direction: column;
        width: 100%;
    }

    .email-input {
        width: 100%;
        min-width: unset;
        cursor: auto;
    }

    .email-form .cta-button {
        width: 100%;
        margin-left: 0;
        margin-top: -1px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-info {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 20px;
    }
}
