/* ==========================================
   29 LENGTH - CSS Styles
   For the vertically efficient gentleman
   ========================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #22c55e;
    --warning: #ef4444;
    --background: #fafafa;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Floating Pants Background */
.floating-pants {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.03;
}

.floating-pants span {
    position: absolute;
    font-size: 60px;
    animation: float 20s infinite ease-in-out;
}

.floating-pants span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-pants span:nth-child(2) { left: 30%; animation-delay: 4s; }
.floating-pants span:nth-child(3) { left: 50%; animation-delay: 8s; }
.floating-pants span:nth-child(4) { left: 70%; animation-delay: 12s; }
.floating-pants span:nth-child(5) { left: 90%; animation-delay: 16s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); }
    50% { transform: translateY(-100px) rotate(180deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 700;
}

.logo-number {
    font-size: 28px;
    color: var(--primary);
}

.logo-text {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
}

.hero-small {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-big {
    display: block;
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pants-comparison {
    display: flex;
    gap: 40px;
    align-items: flex-end;
}

.pants-wrong, .pants-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pants-svg {
    width: 150px;
    height: 250px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.label {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.label.bad {
    background: #fef2f2;
    color: #dc2626;
}

.label.good {
    background: #f0fdf4;
    color: #16a34a;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: #f0f9ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Problem Section */
.problem-section {
    background: var(--secondary);
    color: white;
}

.problem-section .section-badge {
    background: rgba(255,255,255,0.1);
    color: white;
}

.problem-section .section-header p {
    color: rgba(255,255,255,0.7);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.problem-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.problem-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Rage Meter */
.rage-meter {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.rage-meter h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.meter-bar {
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Products Section */
.products-section {
    background: #f8fafc;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-emoji {
    font-size: 100px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.colors {
    font-size: 13px;
    color: var(--text-muted);
}

/* Guide Section */
.guide-section {
    background: white;
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.guide-text .section-badge {
    margin-bottom: 16px;
}

.guide-text h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.guide-text > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.guide-tips {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tip {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tip-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: #eff6ff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.tip h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.tip p {
    font-size: 14px;
    color: var(--text-muted);
}

.guide-visual {
    display: flex;
    justify-content: center;
}

.measurement-diagram {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 40px;
}

.body-svg {
    width: 200px;
    height: 300px;
}

/* Stories Section */
.stories-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.story-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.story-card p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
}

.story-card cite {
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

.share-story {
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
}

.share-story h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.share-story p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary);
}

.newsletter-form .btn-primary:hover {
    background: #f8fafc;
}

.newsletter-note {
    font-size: 13px;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-joke {
    margin-top: 8px;
    font-style: italic;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-big {
        font-size: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }
}
