/* Kivo Display Website Styles — Light Theme with Brand Colours */
:root {
    --primary: #2F61CD;
    --primary-light: #4A7DE8;
    --primary-dark: #1E4299;
    --accent: #5FE3F4;
    --accent-light: #8AEDF8;
    --accent-dark: #2BC5D6;
    --bg: #FFFFFF;
    --bg-alt: #F5F7FA;
    --bg-dark: #EDF0F5;
    --text: #2D3748;
    --text-light: #64748B;
    --text-white: #1A202C;
    --border: #E2E8F0;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(47, 97, 205, 0.12);
    --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo:hover { color: var(--primary-light); }

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary); }

/* Language switcher in nav */
.kivo-lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.kivo-lang-switcher a {
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.kivo-lang-switcher a:hover { background: var(--bg-alt); color: var(--text); }
.kivo-lang-switcher a.active { background: var(--primary); color: #fff; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* === HERO JUMBOTRON === */
.hero {
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 0;
    overflow: hidden;
}

/* Slide images — stacked, opacity-controlled */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-slide-image.active {
    opacity: 1;
}

/* Animated gradient overlay */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 135deg;
    inherits: false;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--gradient-angle),
        rgba(26, 58, 110, 0.88) 0%,
        rgba(20, 70, 140, 0.80) 30%,
        rgba(15, 90, 160, 0.72) 55%,
        rgba(10, 120, 170, 0.65) 75%,
        rgba(43, 197, 214, 0.60) 100%);
    animation: gradientSweep 30s linear infinite;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes gradientSweep {
    0% { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

/* Fallback for browsers that don't support @property (most mobile) */
@supports not (background: linear-gradient(var(--gradient-angle), red, blue)) {
    .hero-overlay {
        background: linear-gradient(135deg,
            rgba(26, 58, 110, 0.88) 0%,
            rgba(20, 70, 140, 0.80) 30%,
            rgba(15, 90, 160, 0.72) 55%,
            rgba(10, 120, 170, 0.65) 75%,
            rgba(43, 197, 214, 0.60) 100%);
        animation: none;
    }
}

/* Hero content layer */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Logo with glow */
.hero-logo-wrap {
    position: relative;
    margin-bottom: 2.5rem;
    opacity: 0; /* GSAP will animate in */
}

.hero-logo-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-logo-glow {
    position: absolute;
    inset: -20px -40px;
    background: radial-gradient(ellipse, rgba(95, 227, 244, 0.2) 0%, rgba(47, 97, 205, 0.15) 40%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0; /* GSAP will animate in */
}

/* Hero text */
.hero-text {
    max-width: 700px;
}

.hero h1,
.hero-heading {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.hero .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.hero .btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    border-color: var(--accent-light);
}

.hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Slide indicators */
.hero-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    opacity: 0; /* GSAP will animate in */
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    width: 32px;
    background: linear-gradient(to right, var(--accent), var(--primary));
}

/* Social proof in hero */
.social-proof {
    display: none;
}

.hero-social-proof {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0; /* GSAP will animate in */
}

.hero-social-proof p {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === SECTIONS === */
section {
    padding: 5rem 0;
    overflow: visible;
}

section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 1rem;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* === FEATURES === */
.features { background: var(--bg); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(47, 97, 205, 0.1);
    border-color: rgba(47, 97, 205, 0.25);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === HOW IT WORKS === */
.how-it-works {
    background: var(--bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.step { text-align: center; }

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === SCENARIOS (Starbucks-style parallax collages) === */
.scenarios {
    background: var(--bg);
    padding-bottom: 0;
    overflow: visible;
}

.scenario {
    padding: 4rem 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Each scenario stacks above the next so parallax images spill downward */
.scenario:nth-child(1) { z-index: 5; }
.scenario:nth-child(2) { z-index: 4; }
.scenario:nth-child(3) { z-index: 3; }
.scenario:nth-child(4) { z-index: 2; }

.scenario:nth-child(even) {
    background: var(--bg-alt);
}

.scenario-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.scenario--reverse .scenario-inner {
    direction: rtl;
}

.scenario--reverse .scenario-text {
    direction: ltr;
}

.scenario--reverse .scenario-collage {
    direction: ltr;
}

.scenario-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.scenario-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Collage — staggered image grid with depth — overflow spills into adjacent sections */
.scenario-collage {
    position: relative;
    height: 450px;
    overflow: visible;
    z-index: 2;
}

.collage-img {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    will-change: transform;
    transition: box-shadow 0.3s;
}

.collage-img:hover {
    box-shadow: 0 15px 40px rgba(47, 97, 205, 0.2);
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Large image — background anchor */
.collage-img--lg {
    width: 70%;
    height: 320px;
    top: 10%;
    left: 0;
    z-index: 1;
}

/* Medium image — overlapping mid-ground */
.collage-img--md {
    width: 55%;
    height: 220px;
    top: 40%;
    right: 0;
    z-index: 2;
}

/* Small image — foreground accent */
.collage-img--sm {
    width: 40%;
    height: 160px;
    bottom: 0;
    left: 15%;
    z-index: 3;
}

/* Placeholder div styling (replace with images later) */
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 50%, #E2E8F0 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: var(--radius);
}

.collage-img--lg .img-placeholder {
    background: linear-gradient(135deg, #E8EEF7 0%, #B8CCE8 50%, #E8EEF7 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

.collage-img--md .img-placeholder {
    background: linear-gradient(135deg, #E0F4F7 0%, #A8D8E0 50%, #E0F4F7 100%);
    background-size: 200% 200%;
    animation: shimmer 3.5s ease-in-out infinite;
}

.collage-img--sm .img-placeholder {
    background: linear-gradient(135deg, #F0E8F7 0%, #C8B8E8 50%, #F0E8F7 100%);
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive scenarios */
@media (max-width: 768px) {
    .scenario-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .scenario--reverse .scenario-inner {
        direction: ltr;
    }

    .scenario-collage {
        height: 300px;
    }

    .collage-img--lg {
        width: 75%;
        height: 220px;
    }

    .collage-img--md {
        width: 55%;
        height: 160px;
    }

    .collage-img--sm {
        width: 40%;
        height: 120px;
    }
}

/* === PRICING === */
.pricing { background: var(--bg); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    background: #F0F5FF;
    box-shadow: 0 10px 25px rgba(47, 97, 205, 0.12);
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.price-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-features {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text);
}

.price-features ul {
    list-style: none;
    padding: 0;
}

.price-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.price-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

/* === ABOUT === */
.about {
    background: var(--bg-alt);
}

.about-content {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* === FINAL CTA === */
.final-cta {
    background: linear-gradient(135deg, #1A3A6E 0%, #2F61CD 50%, #2BC5D6 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.final-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.final-cta p {
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    font-size: 1.1rem;
}

.final-cta .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.final-cta .btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    border-color: var(--accent-light);
}

/* === SECTION LOGO MARKS === */
.section-logo-mark {
    text-align: center;
    margin-bottom: 1.25rem;
}

.section-logo-mark img {
    height: 36px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* CTA section icon */
.cta-logo-icon {
    height: 48px;
    width: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

/* Footer brand logo */
.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo {
    height: 44px;
    width: auto;
}

/* === FOOTER === */
.site-footer {
    background: #1A2332;
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* === PAGE HEADER (inner pages) === */
.page-header {
    background: linear-gradient(135deg, #1A3A6E 0%, #2F61CD 50%, #2BC5D6 100%);
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero { min-height: 100vh; padding-top: 4rem; overflow: hidden; }
    .hero-slides { overflow: hidden; }
    .hero-slide-image { will-change: opacity; }
    .hero h1, .hero-heading { font-size: 2.25rem; }
    .hero-sub { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-logo-text { font-size: 2rem; }
    .nav-links { display: none; } /* TODO: hamburger menu */

    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-4px); }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    section h2 { font-size: 1.75rem; }
}

/* === RTL === */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .kivo-lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 1px solid var(--border);
}
[dir="rtl"] .price-features li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .price-features li::before { left: auto; right: 0; }
