/* Stryds-Inspired Minimal Design */

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

:root {
    --bg: #ffffff;
    --text: #000000;
    --text-muted: #666666;
    --purple: #7c3aed;
    --purple-hover: #6d28d9;
    
    /* Additional variables for beta-signup and other pages */
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --text-light: #ffffff;
    --text-dark: #000000;
    --text-gray: #666666;
    --card: #ffffff;
    --background: #ffffff;
    --bg-light: #f9fafb;
    --dark-bg: #1a1a1a;
    --border: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* Performance Optimization */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
    decoding: async;
}

/* Reduce layout shift */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img.loaded {
    background: none;
    animation: none;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Minimal Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.nav-logo .logo-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.nav-logo .logo-link:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu li a:not(.btn-join):hover {
    color: var(--purple);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.btn-join {
    padding: 12px 24px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-join:hover {
    background: var(--text-muted);
    transform: translateY(-1px);
}

.btn-join-large {
    padding: 16px 48px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-join-large:hover {
    background: var(--text-muted);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    text-align: center;
    background: var(--bg);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-title {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text);
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.hero-tagline {
    font-size: 24px;
    line-height: 1.8;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

.hero-tagline strong {
    font-weight: 700;
    color: var(--text);
}

.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 16px 32px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--purple);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-hero-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Features Section */
.features-main {
    padding: 120px 0;
    background: var(--bg);
}

.feature-block {
    margin-bottom: 120px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text);
}

.feature-description {
    font-size: 22px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.cta-main {
    padding: 120px 0;
    text-align: center;
    background: var(--bg);
}

.cta-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: block;
        padding: 16px 0;
        width: 100%;
    }
    
    .nav-menu li a.btn-join {
        text-align: center;
        margin-top: 8px;
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-tagline {
        font-size: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
    
    .feature-title {
        font-size: 48px;
    }
    
    .feature-description {
        font-size: 18px;
    }
    
    .cta-title {
        font-size: 40px;
    }
    
    .nav-container {
        padding: 0 24px;
        height: 70px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .features-main {
        padding: 80px 0;
    }
    
    .feature-block {
        margin-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    .feature-title {
        font-size: 36px;
    }
    
    .feature-description {
        font-size: 16px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .btn-join-large {
        padding: 14px 36px;
        font-size: 18px;
    }
}

/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.feature-list-item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list-item::before {
    content: '✓';
    color: var(--purple);
    font-weight: 700;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text);
    color: var(--bg);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
