/* ===================================
   Modern Gen AI Aesthetic - Gemma
   =================================== */

/* CSS Variables - Color System */
:root {
    /* Brand Colors (from logo) */
    --primary: #FF6B9D;
    --primary-dark: #E5527B;
    --secondary: #C44569;
    --accent: #FFA5C0;

    /* Neutrals (Cluely-inspired) */
    --text-primary: #19191D;
    --text-secondary: #7D8390;
    --border-light: #E5E7EB;
    --bg-white: #FFFFFF;
    --bg-off-white: #FAFAFA;
    --bg-subtle: #F8F9FA;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Typography */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

/* ===================================
   Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-white);
    font-weight: var(--font-normal);
}

/* ===================================
   Typography System
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-light);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: var(--font-light);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.5rem;
}

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

.text-muted {
    opacity: 0.7;
}

.text-subtle {
    opacity: 0.5;
}

/* ===================================
   Layout
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-3xl) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-2xl) 0;
    }
}

/* ===================================
   Header
   =================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    padding: var(--spacing-md) 0;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 300ms ease;
}

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

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    transition: all 300ms ease;
}

.header-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(255, 107, 157, 0.3);
}

.header-spacer {
    height: 60px;
}

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

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-md);
    background: var(--bg-white);
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
    width: 100%;
}

.hero-image {
    flex: 0 0 auto;
    order: 2;
}

.logo {
    width: 380px;
    height: auto;
    max-height: 380px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: contain;
}

.hero-text {
    flex: 1;
    text-align: left;
    order: 1;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-light);
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.7;
    line-height: 1.6;
}

/* ===================================
   Buttons
   =================================== */

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg-white);
    padding: 18px 45px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-lg);
    transition: all 300ms ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Cards & Features
   =================================== */

.features {
    background: var(--bg-white);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--font-light);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 300ms ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity 300ms ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-medium);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.how-it-works {
    background: var(--bg-off-white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.step {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 300ms ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg-white);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: var(--font-medium);
    margin-bottom: var(--spacing-sm);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    background: var(--bg-white);
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.cta-section h2 {
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-light);
}

.cta-section p {
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
}

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

footer {
    background: var(--bg-off-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: var(--font-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 300ms ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Utility Classes
   =================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ===================================
   Accessibility
   =================================== */

::selection {
    background: var(--accent);
    color: var(--text-primary);
}

a:focus,
button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .header-content {
        padding: 0 var(--spacing-md);
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .header-link {
        font-size: 0.8125rem;
        padding: 8px 16px;
    }

    .header-link svg {
        width: 14px;
        height: 14px;
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        order: 0;
    }

    .logo {
        width: 200px;
        height: auto;
        max-height: 200px;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

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

    .feature-card,
    .step {
        padding: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-3xl: 40px;
        --spacing-2xl: 32px;
    }

    .logo {
        width: 160px;
        height: auto;
        max-height: 160px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .feature-card,
    .step {
        padding: var(--spacing-md);
    }
}

/* ===================================
   Reduced Motion
   =================================== */

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