/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F86F7;
    --secondary-color: #FF6B35;
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --text-secondary: #B0B0B0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-main);
    background-color: #000000;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    background-color: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header */
header {
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Mobile Menu Toggle - Hidden by default on desktop */
header #mobile-menu-checkbox {
    display: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    z-index: 1001;
}

.toggle-bars {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    transition: transform 0.5s ease;
}

.bar {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: all 0.5s ease;
}

#bar1 {
    width: 50%;
}

#bar2 {
    width: 75%;
    transition: transform 0.8s ease, opacity 0.1s ease;
}

#bar3 {
    width: 100%;
}

/* Hamburger Animation */
header #mobile-menu-checkbox:checked ~ .container nav .mobile-menu-toggle .toggle-bars {
    transform: rotate(180deg);
}

header #mobile-menu-checkbox:checked ~ .container nav .mobile-menu-toggle .bar {
    position: absolute;
}

header #mobile-menu-checkbox:checked ~ .container nav .mobile-menu-toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
}

header #mobile-menu-checkbox:checked ~ .container nav .mobile-menu-toggle #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

header #mobile-menu-checkbox:checked ~ .container nav .mobile-menu-toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(68, 68, 68, 0);
    z-index: 999;
}

header #mobile-menu-checkbox:checked ~ .container .mobile-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    border-bottom-color: rgba(68, 68, 68, 0.5);
}

.mobile-menu-content {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-content a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-content a:hover,
.mobile-menu-content a:active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: #007aff;
}

.mobile-menu-content a:active {
    transform: scale(0.98);
}

.mobile-menu-content a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.mobile-menu-content a:hover i {
    color: #007aff;
}

/* Performance optimizations */
.mobile-menu,
.mobile-menu-content,
.mobile-menu-toggle,
.toggle-bars,
.bar {
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.logo-highlight {
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.nav-login-btn):hover {
    color: #007aff;
}

.nav-links a:not(.nav-login-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-login-btn):hover::after {
    width: 100%;
}

.nav-login-btn {
    width: 100px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    background: linear-gradient(
        to bottom right,
        #2e8eff 0%,
        rgba(46, 142, 255, 0) 30%
    );
    background-color: rgba(46, 142, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    outline: none;
    position: relative;
}

.nav-login-btn:hover,
.nav-login-btn:focus {
    background-color: rgba(46, 142, 255, 0.7);
    box-shadow: 0 0 10px rgba(46, 142, 255, 0.5);
    outline: none;
}

.nav-login-btn::after {
    content: attr(data-text);
    width: 96px;
    height: 36px;
    border-radius: 6px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    position: absolute;
}

/* Main Content */
main {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px);
    position: relative;
}

/* Left Section */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.65rem;
    color: var(--text-color);
    font-weight: 500;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.5rem;
}

.status-message {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.status-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.status-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

/* Right Section */
.right-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.background-image {
    position: absolute;
    right: -60%;
    top: 0%;
    width: 200%;
    max-width: none;
    z-index: 0;
}

.background-image img {
    width: 100%;
    height: auto;
    display: block;
    mask-image: radial-gradient(ellipse 100% 100% at 70% 30%, black 80%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 70% 30%, black 80%, transparent 100%);
}

.glass-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 5;
    margin-top: 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-header i {
    color: #FFFFFF;
    font-size: 1.5rem;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-weight: 400;
}

.card-note {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.875rem;
    font-weight: 400;
}

.card-content {
    position: relative;
    display: block;
}

.api-url {
    display: block;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.875rem 3.5rem 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.copy-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.copy-btn.copied {
    color: #4ade80;
}

/* Explore Button */
.explore-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 256px;
    height: 64px;
    padding: 0.75rem;
    margin-top: 1rem;
    background-color: #0f172a;
    border: 2px solid #14b8a6;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 1;
}

.explore-btn::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    right: 8px;
    top: 8px;
    z-index: -1;
    background-color: #6366f1;
    border-radius: 50%;
    filter: blur(20px);
    transition: all 0.5s ease;
}

.explore-btn::after {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    right: 24px;
    top: 16px;
    z-index: -1;
    background-color: #2dd4bf;
    border-radius: 50%;
    filter: blur(20px);
    transition: all 0.5s ease;
}

.explore-btn:hover {
    transform: scale(1.05);
    border-color: #34d399;
    color: #6ee7b7;
}

.explore-btn:hover::before {
    right: 40px;
    bottom: -16px;
    filter: blur(10px);
}

.explore-btn:hover::after {
    right: -24px;
    transform: scale(1.1);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    header {
        padding: 1rem 0;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide regular nav links except login button */
    .nav-links a:not(.nav-login-btn) {
        display: none;
    }

    /* Show mobile menu */
    .mobile-menu {
        display: block;
    }

    nav {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
        justify-self: center;
    }

    .nav-links {
        justify-self: end;
        gap: 0;
    }

    .nav-login-btn {
        width: 90px;
        height: 36px;
    }

    .nav-login-btn::after {
        width: 86px;
        height: 32px;
        font-size: 13px;
    }

    main {
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: calc(100vh - 180px);
        padding-top: 2rem;
    }

    .left-section {
        gap: 2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .explore-btn {
        width: 220px;
        height: 56px;
        font-size: 0.95rem;
    }

    .right-section {
        position: relative;
        justify-content: center;
        min-height: 400px;
        margin-top: 2rem;
    }

    .background-image {
        position: absolute;
        right: 50%;
        top: 50%;
        transform: translate(50%, -50%);
        width: 150%;
        max-width: 600px;
    }

    .background-image img {
        mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 70%, transparent 95%);
        -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 70%, transparent 95%);
    }

    .glass-card {
        position: relative;
        max-width: 100%;
        z-index: 10;
        margin-top: auto;
        padding: 1.5rem 1.75rem;
    }

    .card-header {
        font-size: 1.35rem;
    }

    .card-header i {
        font-size: 1.35rem;
    }

    .card-description {
        font-size: 0.875rem;
    }

    .card-note {
        font-size: 0.825rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    header {
        padding: 0.875rem 0;
    }

    nav {
        grid-template-columns: 36px 1fr auto;
        gap: 0.75rem;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        gap: 7px;
    }

    .toggle-bars {
        gap: 7px;
    }

    .bar {
        height: 2.5px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-login-btn {
        width: 80px;
        height: 32px;
    }

    .nav-login-btn::after {
        width: 76px;
        height: 28px;
        font-size: 12px;
    }

    .mobile-menu {
        top: 70px;
    }

    .mobile-menu-content {
        padding: 1rem 0;
    }

    .mobile-menu-content a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .mobile-menu-content a i {
        font-size: 1rem;
        width: 20px;
    }

    .content-wrapper {
        padding-top: 3rem;
    }

    main {
        padding-top: 70px;
    }

    .main-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-top: 1rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .explore-btn {
        width: 100%;
        max-width: 280px;
        height: 52px;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    .left-section {
        gap: 1.5rem;
    }

    .right-section {
        min-height: 350px;
        margin-top: 1rem;
    }

    .background-image {
        width: 180%;
        max-width: 500px;
    }

    .glass-card {
        padding: 1.25rem 1.5rem;
        border-width: 1.5px;
    }

    .card-header {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }

    .card-header i {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.85rem;
        margin-bottom: 0.875rem;
    }

    .card-note {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .api-url {
        font-size: 0.75rem;
        padding: 0.75rem 3rem 0.75rem 0.875rem;
        line-height: 1.5;
    }

    .copy-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        right: 0.5rem;
    }

    footer {
        padding: 1.5rem 0;
    }

    footer p {
        font-size: 0.8rem;
    }
}

