/* ============================================
   Scaftra - Home Page
   ============================================ */

/* --- Hero --- */
.hero {
    padding: calc(var(--space-5xl) + 60px) 0 var(--space-5xl);
    background: var(--primary-950);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(58, 143, 186, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero-sub {
    font-size: var(--text-xl);
    color: var(--primary-200);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.hero-hint {
    font-size: var(--text-sm);
    color: var(--primary-400);
}

/* --- Problem Section --- */
.problems {
    padding: var(--space-5xl) 0;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.problem-card {
    padding: var(--space-xl);
    border-left: 3px solid var(--accent);
    background: var(--gray-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.problem-card p {
    font-size: var(--text-base);
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.6;
}

.problem-card .problem-detail {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-sm);
    font-weight: 400;
}

@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

/* --- How It Works --- */
.how-it-works {
    padding: var(--space-5xl) 0;
    background: var(--gray-50);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-500);
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.step h3 {
    margin-bottom: var(--space-sm);
}

.step p {
    font-size: var(--text-sm);
}

/* Connector line between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: var(--primary-200);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl) var(--space-xl);
    }

    .step::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Product Showcase --- */
.showcase {
    padding: var(--space-5xl) 0;
}

.showcase-screenshot {
    margin-top: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.showcase-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.showcase-feature {
    text-align: center;
}

.showcase-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-600);
    margin-bottom: var(--space-md);
}

.showcase-feature h4 {
    margin-bottom: var(--space-xs);
}

.showcase-feature p {
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .showcase-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .showcase-features {
        grid-template-columns: 1fr;
    }
}

/* --- Who It's For --- */
.roles {
    padding: var(--space-5xl) 0;
    background: var(--gray-50);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.role-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
}

.role-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-600);
    margin-bottom: var(--space-md);
}

.role-icon svg {
    width: 28px;
    height: 28px;
}

.role-card h3 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.role-card p {
    font-size: var(--text-xs);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .roles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Why Scaftra --- */
.why-section {
    padding: var(--space-5xl) 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.why-card {
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
}

.why-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.why-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--primary-700);
}

.why-card p {
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--primary-950);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: var(--primary-200);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.cta-form {
    max-width: 100%;
}

@media (max-width: 768px) {
    .cta-inner {
        grid-template-columns: 1fr;
    }
}

.cta-form .form-input,
.cta-form .form-select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cta-form .form-select {
    color: rgba(255, 255, 255, 0.4);
}

.cta-form .form-select option {
    background: var(--primary-950);
    color: var(--white);
}

.cta-form .form-input:focus,
.cta-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.cta-form .btn {
    width: 100%;
    margin-top: var(--space-sm);
}

.cta-privacy {
    font-size: var(--text-xs);
    color: var(--primary-400);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.form-success h3 {
    color: var(--success);
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--primary-300);
}
