/* ===========================
   QRoza - Main CSS
   =========================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:       #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark:  #1e3a8a;
    --accent:        #60a5fa;
    --gradient:      linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    --gradient-soft: linear-gradient(135deg, rgba(29,78,216,0.08) 0%, rgba(59,130,246,0.1) 100%);
    --white:         #ffffff;
    --gray-50:       #f1f5f9;
    --gray-100:      #e8eef5;
    --gray-200:      #cbd5e1;
    --gray-400:      #94a3b8;
    --gray-600:      #475569;
    --gray-700:      #334155;
    --gray-800:      #1e293b;
    --gray-900:      #0f172a;
    --text:          #1e293b;
    --text-muted:    #475569;
    --radius:        12px;
    --radius-lg:     20px;
    --radius-xl:     32px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.1);
    --shadow:        0 4px 20px rgba(29,78,216,0.15);
    --shadow-lg:     0 20px 60px rgba(29,78,216,0.2);
    --transition:    0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(29,78,216,0.45);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29,78,216,0.55);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}
.btn-outline:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ---- Section ---- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29,78,216,0.1);
    color: var(--primary);
    border: 1.5px solid rgba(29,78,216,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    font-weight: 450;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 32px;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ---- WhatsApp Widget ---- */
.wa-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Ana buton */
.whatsapp-float {
    position: relative;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

/* İkon geçişi */
.wa-icon-wa, .wa-icon-close { position: absolute; transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.wa-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); font-size: 20px; }
.wa-widget.open .wa-icon-wa   { opacity: 0; transform: rotate(90deg) scale(0.5); }
.wa-widget.open .wa-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }
.wa-widget.open .whatsapp-float { background: #1a1a2e; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* Pulse ring */
.wa-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.5);
    animation: waPulse 2s ease-out infinite;
}
.wa-widget.open .wa-pulse { display: none; }
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Popup */
.wa-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    width: 320px;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), opacity 0.25s ease;
}
.wa-widget.open .wa-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Popup header */
.wa-popup-header {
    background: #075e54;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-popup-avatar {
    width: 44px; height: 44px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: white;
    position: relative;
    flex-shrink: 0;
}
.wa-online-dot {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 11px; height: 11px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #075e54;
}
.wa-popup-info { flex: 1; }
.wa-popup-info strong { display: block; color: white; font-size: 14px; font-weight: 700; }
.wa-popup-info span { font-size: 12px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.wa-popup-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.wa-popup-close:hover { background: rgba(255,255,255,0.25); }

/* Popup body */
.wa-popup-body {
    padding: 20px 16px 12px;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8bdb5' fill-opacity='0.3'%3E%3Cpath d='M0 0h40v40H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.wa-bubble {
    background: white;
    border-radius: 12px 12px 12px 2px;
    padding: 12px 14px 8px;
    max-width: 85%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: waBubble 0.4s 0.15s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes waBubble {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-bubble p { font-size: 14px; color: #1a1a1a; line-height: 1.5; margin: 0 0 4px; }
.wa-bubble-time { font-size: 11px; color: #999; display: block; text-align: right; }

/* CTA butonu */
.wa-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.wa-popup-btn:hover { background: #1ebe5d; color: white; }
.wa-popup-btn i { font-size: 18px; }

/* ---- Scroll to top ---- */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(29,78,216,0.4);
}
.scroll-top.visible { opacity: 1; visibility: visible; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(29,78,216,0.5); }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-4deg) translateX(0); }
    50%       { transform: translateY(-14px) rotate(-4deg) translateX(4px); }
}
@keyframes floatBack {
    0%, 100% { transform: translateY(20px) rotate(4deg) translateX(0); }
    50%       { transform: translateY(6px) rotate(4deg) translateX(-4px); }
}
@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fade-up { animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.animate-float   { animation: float 5s ease-in-out infinite; }
.animate-float-back { animation: floatBack 5s ease-in-out infinite; }

/* ---- Gradient text utility ---- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glow effect ---- */
.glow-primary {
    box-shadow: 0 0 40px rgba(59,130,246,0.35);
}

/* ---- Pricing Toggle ---- */
.pricing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 32px 0 0;
    background: white;
    border: 2px solid #c7d7f5;
    border-radius: 50px;
    padding: 6px;
}
.pricing-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    transition: color 0.3s ease;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.pricing-toggle-label.active {
    color: var(--primary);
    background: var(--gradient-soft);
}

/* Yıllık label — badge için sabit genişlik */
.pricing-toggle-label:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    margin: 0 2px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.35s ease;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 4px; top: 4px;
    background: white;
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 4px 12px rgba(29,78,216,0.4);
}
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

.yearly-save-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
    animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badgePop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ---- FAQ Accordion ---- */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open { border-color: var(--primary-light); box-shadow: 0 4px 20px rgba(59,130,246,0.1); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    text-align: left;
    gap: 12px;
    transition: var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question i { color: var(--primary-light); font-size: 13px; transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 24px 18px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .btn { padding: 12px 22px; font-size: 14px; }
}
