/* SupportFlow AI Landing Page Styles */
:root {
    --sf-primary: #2563eb;
    --sf-primary-dark: #1e40af;
    --sf-secondary: #10b981;
    --sf-dark: #0f172a;
    --sf-light: #f8fafc;
    --sf-white: #ffffff;
    --sf-text: #475569;
    --sf-text-dark: #020617;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--sf-text);
    overflow-x: hidden;
}

.hero-gradient {
    background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%),
                radial-gradient(circle at bottom left, #f0f9ff 0%, #ffffff 50%);
}

.blur-dot {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.benefit-card {
    height: 100%;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--sf-primary);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: var(--sf-primary);
    margin-bottom: 1.5rem;
}

.pricing-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pricing-card:hover {
    border-color: var(--sf-primary);
}

.pricing-card.popular {
    border: 2px solid var(--sf-primary);
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.2);
}

.pricing-card.popular::before {
    content: 'En Çok Tercih Edilen';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--sf-primary), var(--sf-primary-dark));
    color: white;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.pricing-message-help summary::-webkit-details-marker { display: none; }
.pricing-message-help summary::marker { content: ''; }
.pricing-message-help[open] summary { margin-bottom: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ── Problem Section (Night Story) ──
   Self-contained: must render without Tailwind CDN. */
.problem-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem;
    background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%);
    color: #e2e8f0;
}

.problem-section__inner {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
}

.problem-section__intro {
    text-align: center;
    margin-bottom: 3rem;
}

.problem-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.problem-section__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fbbf24;
    animation: problemPulse 2s ease-in-out infinite;
}

.problem-section__title {
    max-width: 48rem;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.problem-section__highlight {
    color: #fbbf24;
    background: none;
    -webkit-text-fill-color: #fbbf24;
}

.problem-section__layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

.problem-section__aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .problem-section {
        padding: 8rem 1.5rem;
    }
    .problem-section__intro {
        margin-bottom: 4rem;
    }
    .problem-section__layout {
        grid-template-columns: 1fr 320px;
        gap: 3.5rem;
    }
    .problem-section__aside {
        position: sticky;
        top: 7rem;
    }
}

.problem-section__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.problem-section__glow--moon {
    top: -60px;
    right: 10%;
    width: 280px;
    height: 280px;
    background: rgba(251, 191, 36, 0.12);
}

.problem-section__glow--blue {
    bottom: -80px;
    left: -40px;
    width: 360px;
    height: 360px;
    background: rgba(37, 99, 235, 0.15);
}

.problem-section__stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 80% 45%, rgba(255,255,255,0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 75% 80%, rgba(255,255,255,0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 10% 55%, rgba(255,255,255,0.2) 50%, transparent 50%);
    opacity: 0.6;
}

/* Timeline */
.problem-timeline {
    position: relative;
}

.problem-step {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    opacity: 1;
    animation: problemStepIn 0.6s ease-out both;
}

.problem-step:nth-child(1) { animation-delay: 0.1s; }
.problem-step:nth-child(2) { animation-delay: 0.25s; }
.problem-step:nth-child(3) { animation-delay: 0.4s; }
.problem-step:nth-child(4) { animation-delay: 0.55s; }

@keyframes problemStepIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.problem-step__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 1.35rem;
}

.problem-step__marker::after {
    content: '';
    flex: 1;
    width: 2px;
    margin-top: 0.5rem;
    background: linear-gradient(to bottom, rgba(99,102,241,0.5), rgba(99,102,241,0.1));
}

.problem-step:last-child .problem-step__marker::after {
    display: none;
}

.problem-step__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    flex-shrink: 0;
}

.problem-step__dot--alert {
    width: 14px;
    height: 14px;
    background: #f87171;
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.7);
    animation: problemPulse 2s ease-in-out infinite;
}

.problem-step__dot--muted {
    background: #64748b;
    box-shadow: none;
}

@keyframes problemPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(248, 113, 113, 0.7); }
    50%       { box-shadow: 0 0 28px rgba(248, 113, 113, 0.9); }
}

.problem-step__card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.problem-step__card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.problem-step__card--alert {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
}

.problem-step__card--muted {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    opacity: 0.85;
}

.problem-step__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #818cf8;
    margin-bottom: 0.4rem;
}

.problem-step__label--alert {
    color: #fca5a5;
}

.problem-step__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.5;
}

.problem-step__text--alert {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fecaca;
}

/* Clock widget */
.problem-clock {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    max-width: 280px;
}

.problem-clock__face {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 3px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.1), inset 0 0 20px rgba(0,0,0,0.4);
}

.problem-clock__hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}

.problem-clock__hand--hour {
    width: 4px;
    height: 32px;
    margin-left: -2px;
    background: #fbbf24;
    transform: rotate(255deg);
}

.problem-clock__hand--minute {
    width: 3px;
    height: 42px;
    margin-left: -1.5px;
    background: #fde68a;
    transform: rotate(180deg);
}

.problem-clock__center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fbbf24;
}

.problem-clock__time {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: -0.02em;
    line-height: 1;
}

.problem-clock__caption {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.5rem;
}

/* Visitor wait bar */
.problem-visitors {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    max-width: 280px;
}

.problem-visitors__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.problem-visitors__live,
.problem-visitors__status {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.problem-visitors__live {
    color: #94a3b8;
}

.problem-visitors__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #f87171;
}

.problem-visitors__status-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #f87171;
    animation: problemPulse 2s ease-in-out infinite;
}

.problem-visitors__wait {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.problem-visitors__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.problem-visitors__fill {
    height: 100%;
    width: 72%;
    background: linear-gradient(90deg, #6366f1, #f87171);
    border-radius: 999px;
    animation: problemWait 3s ease-in-out infinite;
}

@keyframes problemWait {
    0%   { width: 30%; opacity: 0.7; }
    50%  { width: 85%; opacity: 1; }
    100% { width: 30%; opacity: 0.7; }
}

/* Resolution card */
.problem-resolution {
    position: relative;
    margin-top: 3.5rem;
}

.problem-resolution__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.35;
}

.problem-resolution__sub {
    margin: 0.5rem 0 0;
    color: rgba(191, 219, 254, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.problem-resolution__svg {
    width: 1.75rem;
    height: 1.75rem;
}

.problem-resolution__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 1.75rem;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

.problem-resolution__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

@media (max-width: 640px) {
    .problem-resolution__inner {
        flex-direction: column;
        padding: 1.5rem;
    }

    .problem-clock {
        max-width: 100%;
    }

    .problem-visitors {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .problem-step,
    .problem-step__dot--alert,
    .problem-section__badge-dot,
    .problem-visitors__status-dot,
    .problem-visitors__fill {
        animation: none !important;
    }
    .problem-step {
        opacity: 1 !important;
        transform: none !important;
    }
}
