/* ============================================
   KOLOK - AI Agents Website
   Style: Modern, Clean, Professional
   ============================================ */

/* ==================== RESET & VARIABLES ==================== */

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

:root {
    /* Colors */
    --color-primary: #0f172a;        /* Dark navy - buttons, headlines */
    --color-accent: #3b82f6;         /* Blue - highlights */
    --color-accent-light: #60a5fa;
    --color-text: #0f172a;           /* Dark - main text */
    --color-text-muted: #64748b;     /* Gray - secondary text */
    --color-bg: #ffffff;             /* White background */
    --color-bg-light: #f8fafc;       /* Very light gray */
    --color-bg-section: #f0fdf4;     /* Very light mint (for hero) */
    --color-border: #e2e8f0;         /* Light border */
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 400ms ease;
}

/* ==================== BASE ==================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

/* Page wrapper dengan border kiri-kanan */
.page-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    background-color: var(--color-bg);
    min-height: 100vh;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .page-wrapper {
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Content center wrapper */
.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-icon {
    transition: transform var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-filled,
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-filled:hover,
.btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

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

.btn-white:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-bg-light);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ==================== HEADER ==================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
}

.logo {
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.logo-lok {
    background-color: var(--color-primary);
    color: white;
    padding: 0 0.35em;
    border-radius: var(--radius-sm);
    margin-left: 0.05em;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

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

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

.nav-cta {
    display: flex;
    gap: var(--space-sm);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ==================== HERO ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-section);
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.hero-text {
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-line {
    display: block;
}

.hero-italic {
    font-family: var(--font-accent);
    font-style: italic;
}

.accent-text {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 400px;
}

.hero-actions {
    margin-bottom: var(--space-lg);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

.hero-link:hover {
    color: var(--color-primary);
}

.hero-link-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
}

.hero-link-text {
    font-size: 0.9375rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background-color: var(--color-bg);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.placeholder-icon {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Floating Action Button */
.hero-fab {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
}

.fab-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.3);
    transition: all var(--transition);
}

.fab-btn:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.4);
}

/* ==================== SECTION COMMON ==================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ==================== PROBLEM ==================== */

.problem {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.problem-card {
    padding: var(--space-lg);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.problem-card:hover {
    background-color: var(--color-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.problem-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.problem-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.problem-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==================== SOLUTION ==================== */

.solution {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg-light);
}

.solution-content {
    max-width: 640px;
}

.solution h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.solution-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.solution-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==================== FEATURES ==================== */

.features {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.feature-card:hover {
    background-color: var(--color-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==================== HOW IT WORKS ==================== */

.how-it-works {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.step-card {
    text-align: center;
    padding: var(--space-xl);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: var(--space-md);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ==================== CTA ==================== */

.cta {
    padding: var(--space-3xl) 0;
    background-color: var(--color-primary);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.cta .accent-text {
    color: var(--color-accent-light);
}

.cta p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== FORM PAGE ==================== */

.form-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-lg) var(--space-2xl);
    background-color: var(--color-bg-section);
}

.form-page-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--color-primary);
}

.form-page-card {
    background-color: var(--color-bg);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.form-page-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.form-page-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-form {
    text-align: left;
}

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

/* ==================== SUCCESS PAGE ==================== */

.success-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-lg) var(--space-2xl);
    background-color: var(--color-bg-section);
}

.success-page-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.success-page-card {
    background-color: var(--color-bg);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.success-icon-large {
    margin-bottom: var(--space-lg);
}

.success-page-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.success-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* ==================== FOOTER ==================== */

.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ==================== CONTACT FORM ==================== */

.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg);
}

.contact-wrapper {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: var(--space-xl);
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.contact-header p {
    color: var(--color-text-muted);
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Contact Success */
.contact-success {
    padding: var(--space-xl);
    text-align: center;
}

.success-icon {
    margin-bottom: var(--space-md);
}

.contact-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.contact-success p {
    color: var(--color-text-muted);
}

/* ==================== FOOTER ==================== */

.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-content .logo {
    font-size: 1.125rem;
}

.footer-content p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .section-header h2,
    .solution h2,
    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        display: flex;
        justify-content: center;
    }
    
    .hero-link {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: var(--space-lg);
    }
    
    .hero-image-placeholder {
        max-width: 360px;
    }
    
    .problem-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .hero-fab {
        position: static;
        text-align: center;
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .section-header h2,
    .solution h2,
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
