/* Karput 2.0 - Modern, Warm, Illustrated */

:root {
    --bg: #121417;
    --bg-card: #1a1d21;
    --bg-card-hover: #1f2328;
    --bg-elevated: #23272d;
    --teal: #2dd4bf;
    --teal-dark: #14b8a6;
    --teal-glow: rgba(45, 212, 191, 0.15);
    --yellow: #fbbf24;
    --red: #ef4444;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 200ms ease;
    --transition-slow: 400ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.text-gradient {
    background: linear-gradient(135deg, var(--teal) 0%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--bg);
    padding: 14px 24px;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost { color: var(--gray-300); padding: 14px 24px; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover svg { transform: none; }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-xl { padding: 20px 36px; font-size: 17px; border-radius: var(--radius); }

.sticky-bar {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 12px 0;
    background: rgba(18, 20, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: top 0.3s ease;
}
.sticky-bar.visible { top: 0; }
.sticky-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.sticky-bar-text { font-size: 14px; font-weight: 500; color: var(--gray-300); }
@media (max-width: 480px) {
    .sticky-bar-text { display: none; }
    .sticky-bar-inner { justify-content: center; }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(18, 20, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: top 0.3s ease;
}
.header.header-hidden { top: -80px; }

.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--gray-400); transition: color var(--transition); }
.nav-link:hover { color: var(--white); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 1px; }

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav.open {
        display: flex;
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        background: var(--bg);
        z-index: 99;
    }
    .nav.open .nav-link { font-size: 24px; }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow-1 { width: 600px; height: 600px; top: -200px; right: -100px; background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%); }
.hero-glow-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%); }

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 0; }
    .hero-actions, .hero-trust { justify-content: center; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }

.hero-title { font-size: clamp(44px, 7vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-subtitle { font-size: 18px; line-height: 1.7; color: var(--gray-400); margin-bottom: 36px; max-width: 500px; }

@media (max-width: 1024px) { .hero-subtitle { margin-left: auto; margin-right: auto; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-400); }
.hero-trust-item svg { color: var(--teal); }
.hero-trust-divider { width: 1px; height: 20px; background: var(--gray-600); }

@media (max-width: 640px) { .hero-trust { flex-direction: column; gap: 12px; } .hero-trust-divider { display: none; } }

.hero-visual { position: relative; }
.hero-car { position: relative; }
.car-illustration { width: 100%; max-width: 450px; margin: 0 auto; display: block; }

.smoke { animation: smoke-rise 3s ease-in-out infinite; }
.smoke-1 { animation-delay: 0s; }
.smoke-2 { animation-delay: 0.5s; }
.smoke-3 { animation-delay: 1s; }
@keyframes smoke-rise { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; } 50% { transform: translateY(-10px) scale(1.1); opacity: 0.3; } }

.floating-element { position: absolute; animation: float 4s ease-in-out infinite; }
.floating-wrench { top: 10%; right: 5%; }
.floating-key { bottom: 25%; left: 0; animation-delay: 1s; }
.floating-coin { top: 30%; right: -5%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 1024px) { .hero-car { max-width: 350px; margin: 0 auto; } .floating-element { transform: scale(0.8); } }

.section { padding: 120px 0; }
.section-dark { background: var(--bg-card); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-badge { display: inline-flex; padding: 8px 16px; background: var(--teal-glow); border: 1px solid rgba(45, 212, 191, 0.2); border-radius: var(--radius-full); font-size: 13px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--gray-400); max-width: 560px; margin: 0 auto; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card { position: relative; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 40px 32px; transition: all var(--transition); }
.step-card:hover { border-color: rgba(45, 212, 191, 0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.step-card-number { position: absolute; top: 24px; right: 24px; font-size: 48px; font-weight: 800; color: var(--bg-elevated); line-height: 1; }
.step-card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--teal-glow); border-radius: var(--radius); color: var(--teal); margin-bottom: 24px; }
.step-card-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step-card-desc { font-size: 15px; color: var(--gray-400); line-height: 1.6; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-card { background: var(--bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 28px; transition: all var(--transition); overflow: hidden; }
.bento-card:hover { border-color: rgba(45, 212, 191, 0.2); transform: translateY(-2px); }
.bento-card-lg { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; }
@media (max-width: 1024px) { .bento-card-lg { grid-row: span 1; } }
.bento-card-illustration { flex: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.bento-card-illustration svg { width: 100%; max-width: 180px; height: auto; }
.bento-card-lg .bento-card-illustration svg { max-width: 220px; }
.bento-card-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bento-card-content p { font-size: 14px; color: var(--gray-400); }

.trust-banner { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 48px; }
.trust-banner-content { text-align: center; margin-bottom: 40px; }
.trust-banner-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.trust-banner-content p { color: var(--gray-400); max-width: 500px; margin: 0 auto; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.trust-badge { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-full); font-size: 14px; font-weight: 500; }
.trust-badge-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--teal-glow); border-radius: 50%; color: var(--teal); }
@media (max-width: 640px) { .trust-banner { padding: 32px 24px; } .trust-badge { width: 100%; justify-content: center; } }

.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.faq-item:hover { border-color: rgba(255,255,255,0.1); }
.faq-item.open { border-color: rgba(45, 212, 191, 0.3); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--white); text-align: left; }
.faq-question span { flex: 1; }
.faq-icon { flex-shrink: 0; color: var(--gray-500); transition: transform var(--transition), color var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--teal); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 24px 20px; font-size: 15px; color: var(--gray-400); line-height: 1.7; }

.cta-section { position: relative; padding: 140px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-glow { position: absolute; width: 800px; height: 800px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 60%); filter: blur(60px); }
.cta-content { position: relative; text-align: center; max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.cta-subtitle { font-size: 18px; color: var(--gray-400); margin-bottom: 36px; }
.cta-actions { margin-bottom: 24px; }
.cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-500); }
.cta-note svg { color: var(--teal); }

.footer { background: var(--bg); border-top: 1px solid rgba(255,255,255,0.05); padding: 64px 0 32px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
@media (max-width: 640px) { .footer-main { flex-direction: column; gap: 32px; align-items: center; text-align: center; } }
.footer-tagline { color: var(--gray-500); font-size: 14px; margin-top: 12px; }
.footer-nav { display: flex; gap: 32px; }
.footer-nav a { font-size: 14px; color: var(--gray-400); transition: color var(--transition); }
.footer-nav a:hover { color: var(--teal); }
@media (max-width: 640px) { .footer-nav { flex-wrap: wrap; justify-content: center; gap: 20px; } }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.05); }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; gap: 16px; } }
.footer-location { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-500); }
.footer-copyright { font-size: 13px; color: var(--gray-600); }

.chat-fab { position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 10px; padding: 16px 24px; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: var(--bg); border-radius: var(--radius-full); font-weight: 600; font-size: 15px; box-shadow: 0 8px 32px rgba(45, 212, 191, 0.35); transition: all var(--transition); z-index: 90; }
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(45, 212, 191, 0.45); }
@media (max-width: 640px) { .chat-fab { padding: 16px; } .chat-fab-label { display: none; } }

.chat-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: flex-end; padding: 24px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.chat-modal.open { opacity: 1; visibility: visible; }
.chat-container { width: 100%; max-width: 420px; height: 600px; max-height: 80vh; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px); transition: transform 0.3s ease; }
.chat-modal.open .chat-container { transform: translateY(0); }
@media (max-width: 480px) { .chat-modal { padding: 0; } .chat-container { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; } }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--bg-elevated); border-bottom: 1px solid rgba(255,255,255,0.06); }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: var(--radius-sm); overflow: hidden; }
.chat-header-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); }
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }
.chat-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--gray-400); border-radius: var(--radius-sm); transition: all var(--transition); }
.chat-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.chat-message { max-width: 85%; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; animation: messageIn 0.3s ease; }
@keyframes messageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-message.bot { align-self: flex-start; background: var(--bg-elevated); border-bottom-left-radius: 4px; }
.chat-message.user { align-self: flex-end; background: var(--teal); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-message.typing { display: flex; gap: 4px; padding: 16px 20px; }
.typing-dot { width: 8px; height: 8px; background: var(--gray-500); border-radius: 50%; animation: typingBounce 1.4s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-input-area { display: flex; gap: 12px; padding: 16px 20px; background: var(--bg); border-top: 1px solid rgba(255,255,255,0.06); }
.chat-input { flex: 1; padding: 12px 16px; background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); color: var(--white); font-size: 14px; outline: none; transition: border-color var(--transition); }
.chat-input::placeholder { color: var(--gray-500); }
.chat-input:focus { border-color: var(--teal); }
.chat-send { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--teal); color: var(--bg); border-radius: var(--radius-sm); transition: all var(--transition); }
.chat-send:hover { background: var(--teal-dark); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-trust { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-trust { animation-delay: 0.5s; }
.hero-visual { animation: fadeInUp 1s ease 0.3s forwards; opacity: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; } .hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-trust, .hero-visual { opacity: 1; } }

/* Legal Pages */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 8px;
}
.legal-updated {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 40px;
}
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--teal);
}
.legal-content p {
    color: var(--gray-300);
    margin-bottom: 16px;
    line-height: 1.7;
}
.legal-content ul {
    color: var(--gray-300);
    margin-bottom: 16px;
    padding-left: 24px;
}
.legal-content li {
    margin-bottom: 8px;
    list-style: disc;
}
.legal-content a {
    color: var(--teal);
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
    z-index: 200;
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner p {
    font-size: 14px;
    color: var(--gray-300);
    margin: 0;
}
.cookie-banner a {
    color: var(--teal);
    text-decoration: underline;
}
.cookie-banner-buttons {
    display: flex;
    gap: 12px;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.cookie-btn-accept {
    background: var(--teal);
    color: var(--bg);
    border: none;
}
.cookie-btn-accept:hover { background: var(--teal-dark); }
