/* ============================================
   TryStyle — Large Typography, Mobile First
   ============================================ */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

/* Reset */
*, *::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: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md) var(--space-lg);
    pointer-events: none;
}

.nav > * {
    pointer-events: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        padding: var(--space-xl) var(--space-md) var(--space-lg);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 105;
        pointer-events: none;
    }

    .nav-actions.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-feedback, .nav-cta {
        width: 100%;
        max-width: 320px;
        white-space: nowrap;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    }

    .nav-actions.is-active .nav-feedback,
    .nav-actions.is-active .nav-cta {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-actions.is-active .nav-cta {
        transition-delay: 0.2s;
    }
}


/* ============================================
   Hero
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: url('Wbsite.background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20%;
    max-width: 100%;
}

.hero h1 {
    font-family: 'Droid Serif', Georgia, serif;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--black);
}

.hero p {
    font-family: 'Canva Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(10px, 1.5vw, 15px);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.hero-avatar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 70vh;
    max-height: 600px;
    width: auto;
    max-width: none;
    z-index: 1;
    object-fit: contain;
}

.hero-avatar-left {
    left: 12%;
}

.hero-avatar-right {
    right: 12%;
    transform: translateY(-50%) scaleX(-1);
}

/* Mobile styles for hero */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 7px;
    }

    .hero-avatar {
        height: 45vh;
        max-height: 300px;
    }

    .hero-avatar-left {
        left: 2%;
    }

    .hero-avatar-right {
        right: 2%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 7px;
    }

    .hero-avatar {
        height: 40vh;
        max-height: 250px;
    }

    .hero-avatar-left {
        left: 0;
    }

    .hero-avatar-right {
        right: 0;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

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

.btn, .nav-cta, .nav-feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 100px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}

.btn {
    background: var(--black);
    color: var(--white);
    padding: 0.9em 2em;
    font-size: 1rem;
}

.nav-cta {
    background: var(--black);
    color: var(--white);
    padding: 0.6em 1.2em;
    font-size: 0.875rem;
    border: 1px solid var(--black);
}

.nav-feedback {
    background: var(--white);
    color: var(--black);
    padding: 0.6em 1.2em;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
}

.btn::after, .nav-cta::after, .nav-feedback::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    transform: skewX(-25deg);
}

.btn::after, .nav-cta::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

.nav-feedback::after {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.btn:hover::after, .nav-cta:hover::after, .nav-feedback:hover::after {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

.btn:hover, .nav-cta:hover, .nav-feedback:hover {
    opacity: 0.9;
}

.nav-feedback:hover {
    border-color: var(--gray-400);
}

.meta {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ============================================
   Screenshot Sections
   ============================================ */

.screenshot-section {
    padding: 0 var(--space-md) var(--space-xl);
}

.screenshot-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.screenshot {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   Features
   ============================================ */

.features {
    padding: var(--space-xl) var(--space-md);
}

.feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.feature-content {
    text-align: center;
}

.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
}

.feature h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.feature p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-image .screenshot {
    max-width: 320px;
}

/* Desktop: side by side */
@media (min-width: 900px) {
    .feature {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-xl);
        text-align: left;
        padding: 0 var(--space-md);
    }
    
    .feature-content {
        text-align: left;
        padding-left: var(--space-md);
    }
    
    .feature.reverse .feature-content {
        padding-left: 0;
        padding-right: var(--space-md);
    }
    
    .feature p {
        margin: 0;
    }
    
    .feature.reverse {
        direction: rtl;
    }
    
    .feature.reverse > * {
        direction: ltr;
    }
    
    .feature-image .screenshot {
        max-width: 380px;
    }
}

/* ============================================
   How It Works
   ============================================ */

.how {
    padding: var(--space-xl) var(--space-md);
    background: var(--gray-50);
    text-align: center;
}

.how h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border-radius: 100px;
    font-size: 1rem;
    text-align: left;
    border: 1px solid var(--gray-100);
}

.step span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    min-width: 24px;
}

@media (min-width: 700px) {
    .steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        gap: var(--space-sm);
    }
    
    .step {
        flex: 0 0 auto;
    }
}

/* ============================================
   Download
   ============================================ */

.screen-two {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--white);
}

.download {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-md) var(--space-md);
    text-align: center;
    flex: 1;
}

.download h2 {
    font-family: 'Droid Serif', Georgia, serif;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .download h2 {
        font-size: 20px;
    }
}

.download > p {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    text-align: center;
    width: 100%;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--black);
}

@media (min-width: 600px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   Animations
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .hero h1,
    .hero p,
    .hero-cta,
    .feature,
    .how h2,
    .steps,
    .download h2,
    .download > p,
    .btn {
        animation: fadeUp 0.6s ease both;
    }

    .hero h1 { animation-delay: 0.1s; }
    .hero p { animation-delay: 0.2s; }
    .hero-cta { animation-delay: 0.3s; }
}

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