:root {
    --kp: #6c47ff;
    --kp-light: #ede9ff;
    --kp-hover: #5835e0;
    --dark-bg: #1a1d2e;
    --dark-card: #21253a;
    --dark-border: #2e3350;
    --text-muted-custom: #6b7280;
    --text-dark: #111827;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* ─── NAVBAR ─── */
.kstarter-navbar {
    background: #fff;
    border-bottom: 1px solid #f0f0f5;
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.kstarter-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.kstarter-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #7c5cff 0%, #5835e0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.kstarter-logo .logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.kstarter-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kstarter-nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.2s;
    position: relative;
}

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

.kstarter-nav-links a.active {
    color: var(--kp);
    font-weight: 600;
}

.kstarter-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: var(--kp);
    border-radius: 2px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-github {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-github:hover {
    border-color: var(--kp);
    color: var(--kp);
}
button.btn-github {
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.btn-download-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 9px;
    background: var(--kp);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}

.btn-download-nav:hover {
    background: var(--kp-hover);
    color: #fff;
}

/* ─── HERO ─── */
.hero-section {
    background: #fff;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 20%, rgba(108, 71, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* dot grid on right */
.hero-section::after {
    content: '';
    position: absolute;
    top: 30px;
    right: 20px;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(circle, #d1c8ff 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
    pointer-events: none;
    border-radius: 50%;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--kp-light);
    color: var(--kp);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 13px;
}

.hero-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--kp);
}

.hero-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--kp);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary-hero:hover {
    background: var(--kp-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--text-dark);
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline-hero:hover {
    border-color: var(--kp);
    color: var(--kp);
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.tech-badge .tech-dot {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.tech-dot.laravel {
    background: #ff2d20;
}

.tech-dot.php {
    background: #777bb4;
}

.tech-dot.bootstrap {
    background: #7952b3;
    font-size: 10px;
}

.tech-dot.vite {
    background: linear-gradient(135deg, #646cff, #ff7ac6);
}

/* ─── CODE EDITOR MOCKUP ─── */
.hero-visual {
    flex: 0 0 500px;
    max-width: 500px;
    position: relative;
}

.code-editor {
    background: var(--dark-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(108, 71, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.code-editor-header {
    background: #151828;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--dark-border);
}

.editor-dots {
    display: flex;
    gap: 7px;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.editor-title {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    margin-left: 6px;
}

.code-editor-body {
    padding: 22px 24px 24px;
}

.code-comment {
    color: #6b7280;
    font-size: 13.5px;
    font-family: 'Courier New', monospace;
    margin-bottom: 6px;
    display: block;
}

.code-line {
    font-size: 13.5px;
    font-family: 'Courier New', monospace;
    display: block;
    line-height: 1.65;
}

.code-kw {
    color: #c084fc;
}

.code-fn {
    color: #60a5fa;
}

.code-str {
    color: #34d399;
}

.code-punc {
    color: #e2e8f0;
}

.code-blank {
    display: block;
    height: 14px;
}

.feature-list-dark {
    margin-top: 20px;
    border-top: 1px solid var(--dark-border);
    padding-top: 18px;
}

.feature-item-dark {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13.5px;
    color: #d1d5db;
}

.feature-item-dark i {
    color: #34d399;
    font-size: 13px;
    flex-shrink: 0;
}

/* dot decoration bottom-left */
.dot-decoration-bl {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(circle, #c4b5fd 1.2px, transparent 1.2px);
    background-size: 16px 16px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

/* ─── FEATURES ─── */
.features-section {
    padding: 72px 24px;
    background: #fafafa;
    border-top: 1px solid #f0f0f5;
    border-bottom: 1px solid #f0f0f5;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 16px;
    padding: 28px 26px;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 8px 30px rgba(108, 71, 255, 0.1);
    transform: translateY(-3px);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--kp-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-wrap i {
    font-size: 22px;
    color: var(--kp);
}

.feature-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ─── STATS BANNER ─── */
.stats-section {
    padding: 48px 24px;
    background: #fff;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    border: 1px solid #f0f0f5;
    border-radius: 18px;
    overflow: hidden;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-right: 1px solid #f0f0f5;
    transition: background 0.2s;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: #fafaff;
}

.stat-icon-wrap {
    width: 46px;
    height: 46px;
    background: var(--kp-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrap i {
    font-size: 20px;
    color: var(--kp);
}

.stat-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.stat-desc {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* ─── FOOTER ─── */
.kstarter-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f5;
    padding: 56px 24px 36px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo .logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #7c5cff 0%, #5835e0 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.footer-logo .logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-logo .logo-text span {
    color: var(--kp);
}

.footer-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.65;
    max-width: 300px;
}

.footer-copy {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.footer-col-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #374151;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 13.5px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--kp);
}

.footer-links a i {
    font-size: 13px;
    opacity: 0.75;
}

.footer-creator-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px;
}

.footer-support-text {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 14px;
}

.footer-donation {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
}

.donation-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.donation-iban {
    font-size: 12px;
    color: #374151;
    background: none;
    padding: 0;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    display: block;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .hero-visual {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .stats-inner {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 50%;
        border-right: 1px solid #f0f0f5;
    }

    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid #f0f0f5;
    }

    .stat-item:last-child {
        border-top: 1px solid #f0f0f5;
        flex: 0 0 100%;
        border-right: none;
    }

    .kstarter-nav-links {
        display: none;
    }

    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 50px 16px 40px;
    }

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

    .stats-inner {
        border-radius: 12px;
    }

    .stat-item {
        flex: 0 0 100%;
        border-right: none;
        border-top: 1px solid #f0f0f5;
    }

    .stat-item:first-child {
        border-top: none;
    }

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

    .footer-brand-col {
        grid-column: auto;
    }
}
