/* ===== KaroBuy Main Stylesheet ===== */

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2A2A30;
    background-color: #F9F7F9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: #141317;
}

/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 28px;
    height: 2.5px;
    background-color: #F4F4F8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -9px;
}

.hamburger::after {
    top: 9px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== Navbar (CLASS selector: .site-navbar) ===== */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #141317;
    border-bottom: 1px solid rgba(244, 244, 248, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-navbar.scrolled {
    background: rgba(20, 19, 23, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #F4F4F8;
    letter-spacing: -0.5px;
}

.brand-icon {
    color: #C2185B;
    font-size: 28px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #C9C9D4;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #F4F4F8;
    background: rgba(194, 24, 91, 0.15);
}

/* ===== Hero Section (CLASS selector) ===== */
.hero-section {
    position: relative;
    background: linear-gradient(165deg, #141317 0%, #1E1C28 50%, #1A1A24 100%);
    color: #F4F4F8;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #F9F7F9;
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

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

.hero-tag {
    display: inline-block;
    background: rgba(0, 172, 193, 0.12);
    color: #00ACC1;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: #F4F4F8;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 17px;
    color: #B0B0BD;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 540px;
}

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

/* ----- Hero Metrics ----- */
.hero-metrics {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(244, 244, 248, 0.1);
}

.metric-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: #FF8A65;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 13px;
    color: #90909E;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ----- Hero Graphic ----- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 380px;
    height: 380px;
}

.graphic-node {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    z-index: 2;
}

.node-1 {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #C2185B;
    box-shadow: 0 8px 30px rgba(194, 24, 91, 0.4);
    border-radius: 50%;
}

.node-2 {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: #00ACC1;
    box-shadow: 0 8px 30px rgba(0, 172, 193, 0.4);
    border-radius: 50%;
}

.node-3 {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF8A65;
    box-shadow: 0 8px 30px rgba(255, 138, 101, 0.4);
    border-radius: 50%;
}

.node-4 {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    background: #C2185B;
    box-shadow: 0 8px 30px rgba(194, 24, 91, 0.3);
    border-radius: 50%;
}

.graphic-edge {
    position: absolute;
    background: rgba(0, 172, 193, 0.2);
    z-index: 1;
}

.edge-1 {
    top: 88px;
    left: 50%;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(194, 24, 91, 0.5), rgba(0, 172, 193, 0.2));
}

.edge-2 {
    top: 50%;
    right: 78px;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 172, 193, 0.3), rgba(255, 138, 101, 0.2));
}

.edge-3 {
    bottom: 88px;
    left: 50%;
    width: 2px;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 138, 101, 0.5), rgba(0, 172, 193, 0.2));
}

.edge-4 {
    top: 50%;
    left: 78px;
    width: 80px;
    height: 2px;
    background: linear-gradient(to left, rgba(194, 24, 91, 0.3), rgba(0, 172, 193, 0.2));
}

.graphic-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 172, 193, 0.06);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.8); }
}

/* ===== Section Shared ===== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    color: #C2185B;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: #141317;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: #5A5A6A;
    line-height: 1.7;
}

/* ===== About Section (CLASS selector) ===== */
.about-section {
    padding: 100px 0;
    background: #F9F7F9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(20, 19, 23, 0.06);
    border: 1px solid #EBE9F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(20, 19, 23, 0.1);
}

.about-card-icon {
    font-size: 32px;
    color: #C2185B;
    margin-bottom: 20px;
    display: block;
}

.about-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #141317;
    margin-bottom: 12px;
}

.about-card-text {
    font-size: 15px;
    color: #5A5A6A;
    line-height: 1.7;
}

/* ===== Services Section (CLASS selector) ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FAFAFB 0%, #F3F1F5 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    gap: 24px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 32px;
    border: 1px solid #EBE9F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 19, 23, 0.08);
}

.service-number {
    font-size: 48px;
    font-weight: 800;
    color: #00ACC1;
    line-height: 1;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.service-title {
    font-size: 19px;
    font-weight: 700;
    color: #141317;
    margin-bottom: 8px;
}

.service-text {
    font-size: 15px;
    color: #5A5A6A;
    line-height: 1.6;
}

/* ===== Features Section (CLASS selector) ===== */
.features-section {
    padding: 100px 0;
    background: #F9F7F9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    position: relative;
    padding-left: 28px;
}

.feature-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C2185B;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #141317;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 15px;
    color: #5A5A6A;
    line-height: 1.6;
}

/* ===== Clients Section (CLASS selector) ===== */
.clients-section {
    padding: 100px 0;
    background: linear-gradient(165deg, #141317 0%, #1E1C28 100%);
    color: #F4F4F8;
}

.clients-section .section-title {
    color: #F4F4F8;
}

.clients-section .section-subtitle {
    color: #B0B0BD;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.client-category {
    background: rgba(244, 244, 248, 0.03);
    border: 1px solid rgba(244, 244, 248, 0.08);
    border-radius: 14px;
    padding: 36px;
}

.client-category-title {
    font-size: 19px;
    font-weight: 700;
    color: #FF8A65;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.client-list li {
    padding: 8px 0;
    padding-left: 18px;
    position: relative;
    font-size: 15px;
    color: #C9C9D4;
    border-bottom: 1px solid rgba(244, 244, 248, 0.05);
}

.client-list li:last-child {
    border-bottom: none;
}

.client-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ACC1;
}

/* ===== Contact Section (CLASS selector) ===== */
.contact-section {
    padding: 100px 0;
    background: #F9F7F9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 22px;
    color: #C2185B;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #90909E;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    color: #141317;
    font-weight: 500;
}

a.contact-value:hover {
    color: #C2185B;
}

/* ----- Contact Form ----- */
.contact-form-wrapper {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(20, 19, 23, 0.06);
    border: 1px solid #EBE9F0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #141317;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0DEE8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #2A2A30;
    background: #FAFAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #B0B0BD;
}

.form-input:focus {
    border-color: #C2185B;
    box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.08);
    background: #FFFFFF;
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-feedback.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.form-feedback.error {
    background: #FFEBEE;
    color: #C62828;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-align: center;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: #C2185B;
    color: #FFFFFF;
    border-color: #C2185B;
}

.btn-primary:hover {
    background: #AD1457;
    border-color: #AD1457;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 24, 91, 0.3);
}

.btn-outline {
    background: transparent;
    color: #141317;
    border-color: #D0CDD8;
}

.btn-outline:hover {
    background: #141317;
    color: #F4F4F8;
    border-color: #141317;
}

.hero-section .btn-outline {
    color: #F4F4F8;
    border: 2px solid rgba(244, 244, 248, 0.25);
}

.hero-section .btn-outline:hover {
    background: #F4F4F8;
    color: #141317;
    border-color: #F4F4F8;
}

.btn-block {
    width: 100%;
}

/* ===== Footer ===== */
.site-footer {
    background: #141317;
    color: #90909E;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .brand-icon {
    font-size: 24px;
}

.footer-brand .brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #F4F4F8;
    margin-left: 8px;
}

.footer-desc {
    margin-top: 14px;
    font-size: 14px;
    color: #90909E;
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F4F4F8;
    margin-bottom: 18px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: #90909E;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #FF8A65;
}

.footer-bottom {
    border-top: 1px solid rgba(244, 244, 248, 0.08);
    padding: 22px 0;
}

.footer-copy {
    font-size: 13px;
    color: #70707E;
    text-align: center;
}

.footer-url {
    margin-top: 6px;
}

/* ===== Scroll Reveal (fade-up) ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 40px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-navbar .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #141317;
        padding: 16px 24px;
        border-top: 1px solid rgba(244, 244, 248, 0.08);
    }

    .site-navbar .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 16px;
        border-radius: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

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