/* Modern Minimal CSS for PetriBase */
:root {
    /* Brand Colors - Adjusted for web readability */
    --color-primary: #0077BE;
    --color-secondary: #2D5F3F;
    --color-accent: #FF6B35;

    --color-bg-page: #F9FAFB;
    --color-bg-surface: #FFFFFF;
    --color-bg-dark: #121212;

    --color-text-main: #111827;
    --color-text-muted: #6B7280;
    --color-text-on-dark: #F3F4F6;

    --border-light: #E5E7EB;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--color-text-main);
    background-color: var(--color-bg-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll jitter */
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-text-main);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    border-color: #D1D5DB;
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: #F3F4F6;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    margin-top: 16px;
}

/* Hero Section - Redesigned */
.hero {
    padding: 160px 0 120px;
    text-align: center;
    background-color: #0F172A;
    background-image:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.8), #0F172A),
        url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #38BDF8 0%, #0077BE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #FF6B35 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: white;
    /* Fallback */
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #CBD5E1;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Larger CTA Buttons */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero .btn-primary {
    background: #0077BE;
    border: 1px solid #0077BE;
    box-shadow: 0 4px 6px -1px rgba(0, 119, 190, 0.3);
}

.hero .btn-primary:hover {
    background: #00629E;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 119, 190, 0.4);
}

.hero .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero Navigation */
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-nav a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.hero-nav a:hover {
    color: white;
}

.hero-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}

.hero-nav a:hover::after {
    width: 100%;
}

/* Section Common - Modernized */
.section {
    padding: 96px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 64px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Modern Gradient Underline for Titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-light {
    background-color: #FFFFFF;
    /* Clean White */
    border-top: 1px solid var(--border-light);
}

.section-dark {
    background: #0F172A;
    /* Match Hero */
    color: var(--color-text-on-dark);
}

.section-muted {
    background-color: #F8FAFC;
    /* Clean light gray */
    border-top: 1px solid var(--border-light);
}

.section-accent {
    background-color: #1E293B;
    /* Solid Dark Blue for Form */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Problem Grid - Enhanced */
.problem-section .grid-4,
.features-section .grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.problem-section .card {
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency */
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer base shadow */
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.problem-section .card:hover {
    background: white;
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.problem-section .card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.problem-section .card h3::before {
    content: '';
    /* Dot accent */
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.problem-section .card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Features Section - Premium Look */
.features-section .card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: center;
}

.features-section .card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(45, 95, 63, 0.15);
}

.features-section .card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.features-section .card p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* Concept Grid - Clean Typography */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.concept-item {
    padding-left: 24px;
    border-left: 3px solid var(--color-secondary);
}

.concept-item strong {
    display: block;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 8px;
}

.concept-item p {
    color: #9CA3AF;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Target Groups - Accent Cards */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.target-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: transform 0.3s ease;
}

.target-card.angler {
    border-top-color: var(--color-primary);
}

.target-card.creator {
    border-top-color: var(--color-secondary);
}

.target-card:hover {
    transform: translateY(-4px);
}

.target-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.target-card ul {
    list-style: none;
    padding: 0;
}

.target-card li {
    margin-bottom: 12px;
    padding-left: 24px;
    /* Space for icon */
    color: var(--color-text-muted);
    position: relative;
}

.target-card li::before {
    content: "✓";
    font-weight: bold;
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

/* Expectations - Clean Lists */
.clean-list li {
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
}

.clean-list li::before {
    content: "👍";
    margin-right: 12px;
    font-size: 1.1rem;
}

.expect-col h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.muted-list li {
    background: #F3F4F6;
    color: var(--color-text-muted);
    border-color: transparent;
}

.muted-list li::before {
    content: "🚫";
    filter: grayscale(1);
    opacity: 0.6;
}

/* Construction Alert Box */
.content-block {
    background: #FFF7ED;
    /* Orange Light */
    border: 1px solid #FED7AA;
    border-left: 4px solid #F97316;
    padding: 32px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.content-block h2 {
    color: #9A3412;
    margin-bottom: 16px;
}

.content-block p {
    color: #7C2D12;
    font-size: 1.1rem;
}

/* Roadmap - Visual Timeline */
.roadmap-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 800px;
    margin: 48px auto 0;
    padding-top: 20px;
}

/* Connecting Line */
.roadmap-steps::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding-top: 32px;
}

/* Dot on text center logic is tricky with flex. Let's use pseudo on the step container */
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #111;
    /* Dark bg match */
    border: 2px solid #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step.active::before {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.step-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.step-sub {
    font-size: 0.85rem;
    color: #9CA3AF;
    display: block;
    max-width: 200px;
    margin: 0 auto;
}

.step.active .step-label {
    color: var(--color-accent);
}

/* Form - Clean & Spacious */
.form-container {
    max-width: 500px;
    background: white;
    padding: 48px;
    border-radius: 12px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-align: center;
    color: #111;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #F9FAFB;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

/* Radio Chips */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-chip {
    flex: 1;
    position: relative;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-chip input:checked+span {}

/* logic handled by parent styling usually, simpler here: */
.radio-chip {
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #6B7280;
    background: white;
    display: block;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.radio-chip:active {
    background-color: #F3F4F6;
    transform: scale(0.98);
}

.radio-chip:has(input:checked) {
    border-color: var(--color-primary);
    background-color: #F0F9FF;
    color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.1);
}

/* Footer */
.footer {
    padding: 64px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
}

.footer-cta {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-text-main);
    font-weight: 600;
}

/* Mobile */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .hero-nav {
        gap: 12px;
        padding-top: 24px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .hero-nav a {
        font-size: 0.8rem;
        padding: 4px 8px;
        /* Easier to tap */
    }

    .split-layout,
    .concept-grid {
        grid-template-columns: 1fr;
    }

    .clean-list {
        margin-bottom: 48px;
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 500px;
    background: #1F2937;
    /* Dark Gray */
    color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border: 1px solid #374151;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: white;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #D1D5DB;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-content a {
    color: #60A5FA;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-cookie.btn-primary {
    background: #0077BE;
    color: white;
}

.btn-cookie.btn-primary:hover {
    background: #00629E;
}

.btn-cookie.btn-ghost {
    background: transparent;
    color: #D1D5DB;
    border: 1px solid #4B5563;
}

.btn-cookie.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

@media (max-width: 480px) {
    #cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .cookie-actions {
        flex-direction: column;
    }
}