/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

/* ===================================
   CSS Variables - BRIKO Reimagined
   =================================== */

:root {
    /* Brand Colors */
    --primary: #CD4332;
    /* Brick Red - Action, Focus */
    --primary-hover: #b23a2b;
    --secondary: #2C3E50;
    /* Industrial Slate - Accents, Headings */
    --secondary-light: #34495e;

    /* Neutrals */
    --bg: #F9FAFB;
    /* Warm/Clean Gray Background */
    --surface: #FFFFFF;
    /* Cards, Panels */
    --text-primary: #111827;
    /* Nearly Black for Headings */
    --text-secondary: #4B5563;
    /* Slate Gray for Body */
    --border: #E5E7EB;
    /* Subtle Border */

    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;

    /* Effects */
    --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);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max-width: 1400px;
    --radius: 12px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 4rem;
    /* Larger, more impactful */
    line-height: 1.05;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

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

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

section {
    padding: var(--section-padding) 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    box-shadow: 0 4px 6px rgba(205, 67, 50, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(205, 67, 50, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--border);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--surface);
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

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

.hero {
    background-color: var(--text-primary);
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(205, 67, 50, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--surface);
}

.subheadline {
    font-size: 1.25rem;
    color: var(--border);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image {
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* ===================================
   Screenshot Placeholders (Glass/Modern)
   =================================== */

.screenshot-placeholder {
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;

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

.hero:hover .screenshot-placeholder {
    transform: rotateY(0) rotateX(0);
}

.screenshot-placeholder.large {
    min-height: 400px;
    padding: 3rem 1.5rem;
    transform: none;
    /* Reset rotation for other sections */
}

.placeholder-content {
    text-align: center;
    color: var(--text-primary);
}

.placeholder-content svg {
    color: var(--secondary);
    /* Slate color for icons */
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.placeholder-content p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===================================
   Pain Points Section
   =================================== */

.pain-points {
    background-color: var(--surface);
}

.pain-points h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.pain-card {
    background-color: var(--bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--surface);
    border-color: var(--border);
}

.pain-icon {
    width: 50px;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--primary);
    img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pain-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.transition-text {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2rem;
}

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

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

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    color: var(--secondary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ===================================
   Demo Section
   =================================== */

.demo {
    background-color: var(--surface);
    padding-top: var(--section-padding);
}

.demo h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 99px;
    /* Pill shape container */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.tab-btn.active {
    background-color: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.demo-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Benefits Section
   =================================== */

.benefits {
    background-color: var(--bg);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--surface);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    border: 1px solid var(--border);
    min-height: 140px;
    text-align: left;
}

.benefit-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.benefit-icon img {
    width: 40px;
    height: 40px;
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.benefit-content p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-secondary);
}

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

.cta-section {
    background-color: var(--text-primary);
    /* Dark Industrial Slate */
    color: var(--surface);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(205, 67, 50, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--surface);
    margin-bottom: 2.5rem;
    font-size: 3rem;
}

.cta-section .btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    font-size: 1.25rem;
    padding: 1.25rem 3.5rem;
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cta-subtext {
    margin-top: 2rem;
    font-size: 1rem;
    opacity: 0.7;
    color: #9CA3AF;
}

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

.footer {
    background-color: var(--bg);
    color: var(--text-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    img {
        width: 70px;
    }
}

.footer-links a {
    color: var(--text-secondary);
    margin-left: 2rem;
}

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

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

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

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --section-padding: 80px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

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

/* Mobile (< 768px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    /* Pain Points */
    .pain-grid {
        grid-template-columns: 1fr;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Benefits */
    .benefit-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}