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

:root {
    --g-blue: #1a73e8;
    --g-red: #d93025;
    --g-yellow: #f9ab00;
    --g-green: #188038;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --surface: #ffffff;
    --surface-alt: #f8f9fa;
    --border: #e0e3e7;
    --focus: #1a73e8;
    --radius-l: 16px;
    --radius-m: 12px;
    --radius-s: 8px;
    --shadow: 0 1px 3px rgba(60,64,67,.3), 0 1px 2px rgba(60,64,67,.15);
    --shadow-hover: 0 4px 8px rgba(60,64,67,.3), 0 2px 4px rgba(60,64,67,.15);
}

body {
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: var(--surface-alt);
    color: var(--text-primary);
}

/* Header */
.header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.rapih {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rapih img {
    width: 3%;
    margin-bottom: 10px;
    
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.25rem;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.navbar a:hover {
    color: var(--g-blue);
}

.navbar a::after { display: none; }

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.typed-line {
    min-height: 1.5em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--g-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.cta-button:hover { filter: brightness(0.95); box-shadow: var(--shadow-hover); }

/* Tutorial Section */
.tutorial-section {
    margin-top: 2rem;
    padding: 4rem 2rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-title p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Dropdown Component */
.dropdown-container {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.dropdown-item {
    background: var(--surface);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dropdown-item:hover { box-shadow: var(--shadow-hover); }

.dropdown-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header:hover { background: var(--surface-alt); }

.dropdown-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: #fff;
    background: var(--g-blue);
}

.dropdown-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.dropdown-content.active {
    max-height: 500px;
}

.dropdown-arrow.active { transform: rotate(180deg); }

.dropdown-body {
    padding: 1rem 1.5rem 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.step-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 0.75rem;
}

.step-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-s);
    background: var(--surface);
}

.step-caption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.dropdown-body p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dropdown-body ol {
    margin-left: 1rem;
}

.dropdown-body li { margin-bottom: 0.5rem; color: var(--text-secondary); }

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

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

/* Content grid for ambassador page */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.content-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.content-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--radius-s);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 12px;
    margin: 0 auto 0.75rem;
}

.content-card h4 { margin: 0.5rem 0; font-weight: 500; color: var(--text-primary); }
.content-card p { color: var(--text-secondary); margin-bottom: 1rem; }
.content-card .cta-button { align-self: flex-start; margin-top: auto; }

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-m);
    background: var(--surface-alt);
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--g-blue);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0.5rem 0 0.5rem;
    color: var(--text-primary);
}

.feature-card p { color: var(--text-secondary); }

/* Footer */
.footer {
    background: var(--surface);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

/* Image Modal */
.img-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.img-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
}

.img-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32,33,36,0.7);
    backdrop-filter: blur(2px);
}

.img-modal__content {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: min(88vh, 900px);
    background: var(--surface);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.img-modal__caption {
    padding: 0.75rem 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.img-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.img-modal__close:hover { filter: brightness(0.96); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .mobile-toggle { display: block; }

    .navbar {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-m);
        box-shadow: var(--shadow);
        display: none;
    }

    .navbar.active { display: block; }

    .navbar ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .navbar li { border-bottom: 1px solid var(--border); }
    .navbar li:last-child { border-bottom: 0; }
    .navbar a { padding: 1rem 1.25rem; display: block; }

    .hero h2 { font-size: 2rem; }

    .hero p { font-size: 1rem; }

    .section-title h3 { font-size: 1.5rem; }

    .dropdown-title {
        font-size: 1.1rem;
    }

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

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

    .content-image { height: 150px; padding: 10px; }

    .rapih img {
        width: 10%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}