/**
 * Penguin AI Partner Program - Stylesheet
 * Consultant-focused marketing site
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors - Matching Penguin AI */
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --secondary-color: #000000;

    /* Signal Pack Colors */
    --color-green: #10b981;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-orange: #f59e0b;
    --color-red: #ef4444;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Layout */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--gray-600);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.navbar.scrolled .logo-text {
    color: var(--gray-900);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    transition: color 0.3s;
}

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

.logo-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d1a1a 100%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Dashboard Preview */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(220, 38, 38, 0.2);
    overflow: hidden;
}

.preview-header {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #22c55e; }

.preview-content {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.preview-card {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border-left: 4px solid var(--gray-300);
}

.preview-card:nth-child(1) { border-left-color: var(--color-green); }
.preview-card:nth-child(2) { border-left-color: var(--color-red); }
.preview-card:nth-child(3) { border-left-color: var(--color-blue); }

.preview-card-title {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.preview-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.preview-card-value.green { color: var(--color-green); }
.preview-card-value.red { color: var(--color-red); }
.preview-card-value.blue { color: var(--color-blue); }

.preview-card-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding);
}

.section-dark {
    background: var(--gray-900);
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-dark p {
    color: var(--gray-400);
}

.section-light {
    background: var(--gray-50);
}

.section-gradient {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d1a1a 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header.light h2 {
    color: white;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.7);
}

.section-header p {
    font-size: 1.125rem;
    margin-top: 1rem;
}

.section-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.problem-icon i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.problem-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   SOLUTION FLOW
   ============================================ */
.solution-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-content {
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    flex: 1;
}

.flow-content h3 {
    margin-bottom: 0.75rem;
}

.flow-content p {
    margin-bottom: 1.5rem;
}

.flow-connector {
    width: 4px;
    height: 40px;
    background: var(--gray-200);
    margin-left: 28px;
}

.flow-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.flow-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.flow-features i {
    color: var(--color-green);
}

/* Signal Packs */
.signal-packs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.signal-pack {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.signal-pack.green { background: rgba(16, 185, 129, 0.1); color: var(--color-green); }
.signal-pack.blue { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); }
.signal-pack.purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.signal-pack.orange { background: rgba(245, 158, 11, 0.1); color: var(--color-orange); }

/* Value Example */
.value-example {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.value-row:last-child {
    border-bottom: none;
}

.value-label {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.value-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.value-amount.green { color: var(--color-green); }
.value-amount.blue { color: var(--color-blue); }
.value-amount.orange { color: var(--color-orange); }

/* ============================================
   BENEFITS GRID
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.benefit-card h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--gray-200);
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.testimonial-quote p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    font-style: italic;
    padding-top: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--color-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-title {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.testimonial-result {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    text-align: right;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green);
}

.result-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* ============================================
   PRICING TIERS
   ============================================ */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.tier-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tier-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.tier-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
}

.tier-header h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.price-period {
    font-size: 1rem;
    color: var(--gray-500);
}

.tier-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.feature i {
    color: var(--color-green);
    font-size: 1rem;
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.apply-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.apply-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.apply-content > p {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.apply-benefits {
    display: grid;
    gap: 1rem;
}

.apply-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-300);
}

.apply-benefit i {
    color: var(--color-green);
}

.apply-form-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
}

.apply-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .problem-grid,
    .benefits-grid,
    .testimonials,
    .tiers-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .tiers-grid {
        max-width: 400px;
    }

    .tier-card.featured {
        transform: none;
    }

    .apply-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        text-align: center;
    }

    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .flow-connector {
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .dashboard-preview {
        margin: 0 -12px;
        border-radius: var(--border-radius);
    }
}
