/* ═══════════════════════════════════════════
   Kudima — Bumbaki-inspired Hero + Outfit Font
   Primary: #7F57F1
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #7F57F1;
    --primary-dark: #6842d0;
    --primary-light: #a78bfa;
    --primary-bg: #f5f0ff;
    --primary-subtle: rgba(127,87,241,.06);
    --accent: #F59E0B;
    --bg: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #0a0a0a;
    --text: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #8a8a8a;
    --border: #e8e8e8;
    --max-w: 1200px;
    --transition: .25s ease;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.nav-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
    letter-spacing: -.3px;
}
.navbar nav { display: flex; align-items: center; gap: 36px; }
.navbar nav a {
    font-size: .875rem; font-weight: 500; color: var(--text-secondary);
    transition: color var(--transition);
}
.navbar nav a:hover, .navbar nav a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-login {
    font-size: .875rem; font-weight: 500; color: var(--text-secondary);
    padding: 8px 16px; border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.btn-login:hover { color: var(--text); background: var(--bg-light); }
.btn-signup {
    font-size: .875rem; font-weight: 600; color: #fff;
    background: var(--primary); padding: 8px 20px; border-radius: 8px;
    transition: background var(--transition), transform .15s;
}
.btn-signup:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--text); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-4px); }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 600; font-size: .9rem;
    transition: all var(--transition); cursor: pointer; border: none;
    letter-spacing: -.01em;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: .95rem; border-radius: 12px; }

/* ═══════════════════════════════════════
   HERO — Bumbaki-inspired Split Layout
   ═══════════════════════════════════════ */
.hero {
    padding: 140px 32px 80px;
    position: relative; overflow: hidden;
    background: #fff;
}
.hero-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}

/* Decorative shapes */
.hero-shapes {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; overflow: hidden;
}
.hero-shape {
    position: absolute; border-radius: 50%;
}
.hero-shape-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(127,87,241,.07) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}
.hero-shape-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(127,87,241,.05) 0%, transparent 70%);
    bottom: -50px; left: -50px;
    animation: float-slow 10s ease-in-out infinite reverse;
}
.hero-shape-3 {
    width: 80px; height: 80px;
    border: 2px solid rgba(127,87,241,.1);
    top: 30%; left: 5%;
    animation: float-rotate 12s linear infinite;
}
.hero-shape-4 {
    width: 40px; height: 40px;
    background: rgba(127,87,241,.08);
    border-radius: 8px;
    top: 20%; right: 10%;
    animation: float-rotate 15s linear infinite reverse;
    transform: rotate(45deg);
}
.hero-shape-5 {
    width: 12px; height: 12px;
    background: var(--primary-light);
    top: 60%; left: 15%;
    animation: pulse-dot 3s ease-in-out infinite;
}
.hero-shape-6 {
    width: 8px; height: 8px;
    background: var(--accent);
    top: 25%; left: 45%;
    animation: pulse-dot 4s ease-in-out infinite 1s;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}
@keyframes float-rotate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Hero Text */
.hero-text {
    position: relative; z-index: 2;
    animation: fadeInUp .8s ease-out both;
}
.hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 18px;
}
.hero-text h1 .highlight {
    color: var(--primary);
    position: relative;
}
.hero-text h1 .highlight::after {
    content: '';
    position: absolute; bottom: 2px; left: 0; right: 0;
    height: 8px; background: rgba(127,87,241,.15);
    border-radius: 4px; z-index: -1;
}
.hero-text .subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 460px; line-height: 1.65; margin-bottom: 32px;
    animation: fadeInUp .8s ease-out .15s both;
}
.hero-buttons {
    display: flex; gap: 12px; flex-wrap: wrap;
    animation: fadeInUp .8s ease-out .3s both;
}
.hero-social-proof {
    display: flex; align-items: center; gap: 12px;
    margin-top: 28px; padding: 14px 18px;
    background: var(--bg-light); border: 1px solid var(--border);
    border-radius: 12px; max-width: 420px;
    animation: fadeInUp .8s ease-out .45s both;
}
.hero-social-proof .avatar-stack { display: flex; }
.hero-social-proof .avatar-stack span {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-bg); border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; color: var(--primary);
    margin-left: -6px;
}
.hero-social-proof .avatar-stack span:first-child { margin-left: 0; }
.hero-social-proof p { font-size: .82rem; color: var(--text-secondary); line-height: 1.35; }
.hero-social-proof strong { color: var(--primary); }

/* Hero Image */
.hero-image-side {
    position: relative; z-index: 2;
    animation: fadeInRight .9s ease-out .2s both;
}
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(127,87,241,.12), 0 4px 20px rgba(0,0,0,.05);
    animation: hero-float 6s ease-in-out infinite;
}
.hero-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
/* Decorative lines behind image */
.hero-image-side::before {
    content: '';
    position: absolute; top: -12px; right: -12px;
    width: 100%; height: 100%;
    border: 2.5px dashed rgba(127,87,241,.2);
    border-radius: 20px; z-index: -1;
    animation: hero-float 6s ease-in-out infinite reverse;
}
.hero-image-side::after {
    content: '';
    position: absolute; bottom: -16px; left: -16px;
    width: 80px; height: 80px;
    background: var(--primary);
    border-radius: 14px; opacity: .1;
    animation: float-rotate 10s linear infinite;
}
/* Floating badge on image */
.hero-badge-float {
    position: absolute; bottom: 20px; left: -20px;
    background: #fff; border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    display: flex; align-items: center; gap: 10px; z-index: 3;
    animation: fadeInUp 1s ease-out .6s both;
}
.hero-badge-float .badge-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary-bg); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.hero-badge-float .badge-text strong { font-size: .8rem; display: block; }
.hero-badge-float .badge-text span { font-size: .7rem; color: var(--text-muted); }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ═══ SECTIONS ═══ */
.section { padding: 100px 32px; }
.section-alt { background: var(--bg-light); }
.section-header {
    text-align: center; max-width: 640px; margin: 0 auto 64px;
}
.section-header .tag {
    display: inline-block; padding: 4px 12px; border-radius: 100px;
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 16px;
    color: var(--primary); background: var(--primary-bg);
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.12;
    margin-bottom: 16px;
}
.section-header p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

/* ═══ STEPS ═══ */
.steps-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
}
.step-card {
    background: var(--bg); padding: 40px 32px;
    text-align: left; transition: background var(--transition);
}
.step-card:hover { background: var(--primary-subtle); }
.step-num {
    font-size: .75rem; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.55; }

/* ═══ FEATURE CARDS ═══ */
.features-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    transition: border-color var(--transition), transform .2s;
}
.feature-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--primary-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.2px; margin-bottom: 6px; }
.feature-card p { color: var(--text-secondary); font-size: .88rem; line-height: 1.5; }

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
}
.testimonial-card .stars { color: var(--accent); font-size: .85rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card blockquote {
    font-size: .9rem; color: var(--text); font-style: normal;
    margin-bottom: 20px; line-height: 1.6;
}
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-bg); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8rem;
}
.testimonial-card .author-info strong { font-size: .85rem; font-weight: 600; }
.testimonial-card .author-info span { font-size: .75rem; color: var(--text-muted); display: block; }

/* ═══ CTA ═══ */
.cta-section {
    text-align: center; padding: 80px 32px;
    background: var(--bg-dark); color: #fff;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; top: -30%; left: 50%; width: 600px; height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(127,87,241,.2) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    position: relative;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 14px;
}
.cta-section p {
    position: relative; opacity: .65; font-size: 1rem;
    margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto;
}
.cta-section .btn { position: relative; }

/* ═══ PAGE HEADER ═══ */
.page-header {
    padding: 140px 32px 64px; text-align: center; position: relative;
}
.page-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(127,87,241,.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-header h1 {
    position: relative;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
    margin-bottom: 14px;
}
.page-header h1 span { color: var(--primary); }
.page-header p {
    position: relative; color: var(--text-secondary);
    font-size: 1.05rem; max-width: 520px; margin: 0 auto;
}

/* ═══ FAQ ═══ */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; background: none; border: none;
    padding: 22px 0; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: inherit; font-size: .95rem; font-weight: 600;
    color: var(--text); text-align: left;
}
.faq-question::after {
    content: '+'; font-size: 1.3rem; font-weight: 300;
    color: var(--text-muted); transition: transform .3s;
    flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 22px; }
.faq-answer p { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--bg-dark); color: #fff; padding: 56px 32px 28px; }
.footer-container { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 10px; display: inline-block; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .85rem; max-width: 260px; line-height: 1.5; }
.footer-links h4 {
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 14px; color: rgba(255,255,255,.5);
}
.footer-links a {
    display: block; color: rgba(255,255,255,.55);
    font-size: .85rem; margin-bottom: 8px; transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 22px; text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .8rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image-side { order: -1; max-width: 400px; margin: 0 auto; }
    .hero-text { text-align: center; }
    .hero-text .subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-social-proof { margin-left: auto; margin-right: auto; }
    .hero-badge-float { left: auto; right: -10px; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar nav {
        display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 32px; gap: 24px; align-items: flex-start;
    }
    .navbar nav.open { display: flex; }
    .navbar nav a { font-size: 1.1rem; }
    .hamburger { display: flex; }
    .nav-actions { display: none; }
    .hero { padding: 120px 20px 60px; }
    .section { padding: 70px 20px; }
    .footer-top { grid-template-columns: 1fr; }
}
