/* ============================================================
   YUKALOKA Landing Page — Stylesheet
   Design: Clean, Flat, Professional — Soft Blue
   Font: Inter (Google Fonts)
   ============================================================ */

/* ——————————— RESET & BASE ——————————— */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary:       #3b82f6;
    --primary-dark:  #2563eb;
    --primary-light: #60a5fa;
    --primary-bg:    #eff6ff;
    --primary-border:#bfdbfe;

    --text:          #1e293b;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;

    --bg:            #ffffff;
    --bg-subtle:     #f8fafc;
    --bg-card:       #ffffff;

    --border:        #e2e8f0;
    --border-light:  #f1f5f9;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(59,130,246,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 10px 40px rgba(59,130,246,.10), 0 2px 8px rgba(0,0,0,.04);

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transition */
    --ease: all .25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, a { cursor: pointer; }

/* ——————————— UTILITY ——————————— */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ——————————— NAVBAR ——————————— */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--ease);
    padding: 0;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo .logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.navbar-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}

.navbar-logo .logo-text span {
    color: var(--primary);
}

/* Nav links */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* CTA buttons in nav */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-outline {
    font-size: .875rem;
    font-weight: 500;
    color: var(--primary);
    padding: 7px 16px;
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-sm);
    background: transparent;
    transition: var(--ease);
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.btn-primary {
    font-size: .875rem;
    font-weight: 600;
    color: white;
    padding: 8px 18px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,.25);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 5px;
    transition: var(--ease);
    padding: 4px;
}

.hamburger:hover { background: var(--bg-subtle); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.98);
    z-index: 999;
    flex-direction: column;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    display: block;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu .nav-link:last-child { border-bottom: none; }

.mobile-menu-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-actions .btn-outline,
.mobile-menu-actions .btn-primary {
    font-size: .95rem;
    padding: 13px 18px;
    text-align: center;
    border-radius: var(--radius-md);
    display: block;
}

/* ——————————— HERO / BANNER SECTION ——————————— */
.hero {
    margin-top: 64px; /* navbar height */
    background: var(--bg-subtle);
    overflow: hidden;
}

/* Slider wrapper */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8eef7;
    /* Desktop: 21:9 cinematic; adjust if needed */
    aspect-ratio: 16 / 6;
}

@media (max-width: 768px) {
    .banner-slider { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
    .banner-slider { aspect-ratio: 1 / 1; }
}

/* Slides track */
.slides-track {
    display: flex;
    height: 100%;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Individual slide */
.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

/* Placeholder when no image */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    gap: 16px;
}

.slide-placeholder .placeholder-icon {
    width: 80px;
    height: 80px;
    background: rgba(59,130,246,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-placeholder .placeholder-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--primary);
    fill: none;
}

.slide-placeholder p {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Slider controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: var(--shadow-sm);
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-prev:hover,
.slider-next:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev svg,
.slider-next svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    border: none;
    cursor: pointer;
    transition: var(--ease);
    padding: 0;
}

.dot.active {
    background: white;
    width: 22px;
    border-radius: 4px;
}

/* ——————————— FEATURES SECTION ——————————— */
.features {
    padding: 80px 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -.4px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--ease);
}

.feature-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ——————————— CTA SECTION ——————————— */
.cta {
    padding: 80px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.cta-box {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle bg decoration */
.cta-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 40%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.cta-content .cta-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.cta-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -.3px;
    line-height: 1.25;
}

.cta-content p {
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 0;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.btn-white {
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    transition: var(--ease);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-white:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.btn-white svg {
    width: 17px;
    height: 17px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-ghost {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    padding: 12px 20px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: var(--radius-md);
    transition: var(--ease);
    white-space: nowrap;
}

.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    color: white;
}

/* ——————————— DOWNLOAD SECTION ——————————— */
.download {
    padding: 80px 0;
    background: var(--bg);
}

.download-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-content .dl-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.download-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -.3px;
    line-height: 1.25;
}

.download-content p {
    font-size: .95rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.dl-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    transition: var(--ease);
    min-width: 160px;
}

.dl-btn:hover {
    border-color: var(--primary-border);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dl-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: var(--text);
}

.dl-btn .dl-text .dl-sub {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 500;
}

.dl-btn .dl-text .dl-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1px;
}

.download-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 380px;
    background: var(--bg-subtle);
    border: 2px solid var(--border);
    border-radius: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(59,130,246,.06);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
}

.phone-screen {
    width: calc(100% - 20px);
    height: calc(100% - 36px);
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.phone-screen .app-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen .app-logo svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.phone-screen .app-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: .5px;
}

/* ——————————— FOOTER ——————————— */
.footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 40px 0 28px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo .logo-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.footer-logo .logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.footer-logo .logo-text span { color: var(--primary); }

.footer-copy {
    font-size: .8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: .8rem;
    color: var(--text-muted);
    transition: var(--ease);
}

.footer-links a:hover { color: var(--primary); }

/* ——————————— RESPONSIVE ——————————— */
@media (max-width: 1024px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }

    .cta-content p { margin: 0 auto 0; }
    .cta-actions { justify-content: center; }

    .download-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .dl-buttons { justify-content: center; }
    .download-visual { display: none; }
}

@media (max-width: 768px) {
    .navbar-menu { display: none; }
    .navbar-actions { display: none; }
    .hamburger { display: flex; }

    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.65rem; }

    .cta-box { padding: 40px 24px; }
    .cta-content h2 { font-size: 1.5rem; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .features { padding: 60px 0; }
    .cta { padding: 60px 0; }
    .download { padding: 60px 0; }
}

@media (min-width: 640px) and (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ——————————— ANIMATIONS ——————————— */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp .5s ease both;
}

.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
