:root {
    --id-red: #C41E3A;
    --id-red-dark: #9B1830;
    --id-red-light: #E8445A;
    --id-white: #FFFFFF;
    --id-cream: #FFF8F0;
    --id-gold: #D4A843;
    --id-dark: #1A1A2E;
    --id-dark-secondary: #16213E;
    --id-gray-100: #F8F9FA;
    --id-gray-200: #E9ECEF;
    --id-gray-300: #DEE2E6;
    --id-gray-600: #6C757D;
    --id-gray-800: #343A40;
    --id-accent: var(--id-red);
    --id-accent-hover: var(--id-red-dark);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-base: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--id-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--id-white);
}

.main-content {
    padding-top: 80px;
}

#mainNav {
    background: linear-gradient(135deg, var(--id-dark) 0%, var(--id-dark-secondary) 100%);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

#mainNav.scrolled {
    padding: 0.3rem 0;
    box-shadow: var(--shadow-md);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--id-red);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
}

.brand-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.footer-brand-icon {
    background: rgba(255, 255, 255, 0.15);
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    letter-spacing: -0.3px;
}

.brand-sub-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -2px;
    margin-left: 48px;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--id-red);
    border-radius: 2px;
}

.lang-switch .btn {
    border-color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.lang-switch .btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.nav-auth-btn {
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-accent {
    background: var(--id-red);
    border-color: var(--id-red);
    color: white;
}

.btn-accent:hover {
    background: var(--id-red-dark);
    border-color: var(--id-red-dark);
    color: white;
}

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--id-dark) 0%, var(--id-dark-secondary) 50%, #0F3460 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--id-red) 0%, var(--id-gold) 50%, var(--id-red) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-slogan {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-slogan .highlight {
    color: var(--id-red-light);
    position: relative;
}

.hero-sub-slogan {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-btns .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.hero-btns .btn-primary {
    background: var(--id-red);
    border-color: var(--id-red);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
}

.hero-btns .btn-primary:hover {
    background: var(--id-red-dark);
    border-color: var(--id-red-dark);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.hero-btns .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}

.hero-domain-preview {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-domain-preview .suffix {
    color: var(--id-red-light);
}

.hero-domain-badge {
    display: inline-block;
    background: rgba(196, 30, 58, 0.2);
    color: var(--id-red-light);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--id-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--id-gray-600);
    margin-bottom: 3rem;
}

.why-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--id-gray-200);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--id-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    background: rgba(196, 30, 58, 0.08);
    color: var(--id-red);
}

.why-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--id-dark);
}

.why-card p {
    color: var(--id-gray-600);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.stats-section {
    background: linear-gradient(135deg, var(--id-dark) 0%, var(--id-dark-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number .accent {
    color: var(--id-red-light);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.popular-section {
    background: var(--id-gray-100);
}

.domain-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    border: 1px solid var(--id-gray-200);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.domain-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--id-red);
}

.domain-suffix {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--id-red);
    margin-bottom: 0.5rem;
}

.domain-card-desc {
    font-size: 0.85rem;
    color: var(--id-gray-600);
    margin-bottom: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--id-red) 0%, var(--id-red-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section .section-title {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-section .btn {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.page-header {
    background: linear-gradient(135deg, var(--id-dark) 0%, var(--id-dark-secondary) 50%, #0F3460 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--id-red) 0%, var(--id-gold) 50%, var(--id-red) 100%);
}

.page-header .section-title {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.content-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--id-gray-200);
}

.content-card h3 {
    font-weight: 700;
    color: var(--id-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--id-gray-200);
    position: relative;
}

.content-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--id-red);
}

.content-card p {
    color: var(--id-gray-600);
    line-height: 1.8;
}

.rule-item {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--id-gray-100);
    margin-bottom: 1rem;
    border-left: 3px solid var(--id-red);
}

.rule-item h5 {
    font-weight: 600;
    color: var(--id-dark);
    margin-bottom: 0.5rem;
}

.rule-item p {
    color: var(--id-gray-600);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.query-section {
    min-height: 60vh;
}

.query-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.query-input-group {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--id-gray-200);
    transition: var(--transition-base);
}

.query-input-group:focus-within {
    border-color: var(--id-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.query-input-group input {
    flex: 1;
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    font-family: var(--font-primary);
    outline: none;
}

.query-input-group select {
    border: none;
    border-left: 1px solid var(--id-gray-200);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: var(--id-gray-100);
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

.query-input-group .btn-query {
    background: var(--id-red);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.query-input-group .btn-query:hover {
    background: var(--id-red-dark);
}

.query-input-group .btn-query:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.query-result {
    margin-top: 2rem;
    display: none;
}

.query-result.show {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.result-card.available {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 1px solid #A5D6A7;
}

.result-card.taken {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 1px solid #FFCC80;
}

.result-card.error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 1px solid #EF9A9A;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-card.available .result-icon {
    color: #2E7D32;
}

.result-card.taken .result-icon {
    color: #E65100;
}

.result-card.error .result-icon {
    color: #C62828;
}

.result-domain {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-card.available .result-domain {
    color: #2E7D32;
}

.result-card.taken .result-domain {
    color: #E65100;
}

.result-message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.result-card.available .result-message {
    color: #388E3C;
}

.result-card.taken .result-message {
    color: #EF6C00;
}

.result-card.error .result-message {
    color: #D32F2F;
}

.result-actions .btn {
    padding: 0.6rem 1.75rem;
    font-weight: 600;
}

.suggest-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.suggest-section h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--id-dark);
}

.suggest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggest-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: white;
    border: 1px solid var(--id-gray-300);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--id-dark);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.suggest-tag:hover {
    background: var(--id-red);
    color: white;
    border-color: var(--id-red);
}

.query-tips {
    max-width: 700px;
    margin: 2rem auto 0;
}

.tips-card {
    background: var(--id-gray-100);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.tips-card h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--id-dark);
}

.tips-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-card ul li {
    padding: 0.35rem 0;
    color: var(--id-gray-600);
    font-size: 0.9rem;
}

.tips-card ul li i {
    color: var(--id-red);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.type-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--id-gray-200);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.type-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--id-red);
}

.type-suffix {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--id-red);
    margin-bottom: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(196, 30, 58, 0.06);
    border-radius: var(--radius-sm);
}

.type-card h5 {
    font-weight: 600;
    color: var(--id-dark);
    margin-bottom: 0.75rem;
}

.type-card p {
    color: var(--id-gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}

.type-scene {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--id-gray-200);
    font-size: 0.82rem;
    color: var(--id-gray-600);
}

.type-scene i {
    color: var(--id-red);
    margin-right: 0.35rem;
}

.site-footer {
    background: linear-gradient(135deg, var(--id-dark) 0%, var(--id-dark-secondary) 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--id-red-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--id-red-light);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    padding-bottom: 2rem;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.brand-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.brand-link:hover {
    color: var(--id-red-light);
}

.indonesia-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--id-red) 50%, white 50%);
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-base);
}

@media (max-width: 991.98px) {
    .hero-slogan {
        font-size: 2.4rem;
    }

    .hero-visual {
        margin-top: 2.5rem;
    }

    .nav-right {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slogan {
        font-size: 2rem;
    }

    .hero-sub-slogan {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .query-input-group {
        flex-direction: column;
    }

    .query-input-group select {
        border-left: none;
        border-top: 1px solid var(--id-gray-200);
    }

    .query-input-group .btn-query {
        border-top: 1px solid var(--id-gray-200);
    }

    .query-box {
        padding: 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slogan {
        font-size: 1.75rem;
    }

    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
}
