@import url('/assets/fonts/inter.css');

:root {
    --cyan-blue: #00BFFF;
    --royal-blue: #4169E1;
    --dark-blue: #1E3A8A;
    --light-blue: #87CEEB;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --medium-gray: #E5E7EB;
    --dark-gray: #1F2937;
    --text-gray: #4B5563;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--royal-blue) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-container a:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s, transform 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--royal-blue);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--royal-blue);
    transform: translateY(-2px);
}

.nav a:hover::after {
    width: 100%;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--royal-blue) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-visualization {
    position: relative;
    width: 100%;
    height: 100%;
}

.network-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cyan-blue), var(--royal-blue));
    animation-delay: 0s;
}

.node-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0.2s;
}

.node-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.4s;
}

.node-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 0.6s;
}

.node-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 0.8s;
}

.node-5 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.network-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    transform-origin: left center;
    animation: pulse-line 2s ease-in-out infinite;
}

.line-1 {
    top: 30%;
    left: 30%;
    width: 150px;
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.line-2 {
    top: 25%;
    right: 25%;
    width: 120px;
    transform: rotate(45deg);
    animation-delay: 0.3s;
}

.line-3 {
    bottom: 30%;
    left: 20%;
    width: 180px;
    transform: rotate(25deg);
    animation-delay: 0.6s;
}

.line-4 {
    bottom: 25%;
    right: 30%;
    width: 140px;
    transform: rotate(-40deg);
    animation-delay: 0.9s;
}

.line-5 {
    top: 50%;
    left: 15%;
    width: 200px;
    transform: rotate(10deg);
    animation-delay: 1.2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

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

section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero {
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--royal-blue) 100%);
    box-shadow: none;
    margin: 0;
    border-radius: 0;
}

.demo-hero {
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--royal-blue) 100%);
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    padding: 4rem 2rem;
}

@media (min-width: 768px) {
    section {
        padding: 4rem 3rem;
        margin: 3rem 2rem;
    }
    
    .hero {
        margin: 0;
        padding: 5rem 3rem;
    }
    
    .demo-hero {
        margin: 0;
        padding: 5rem 3rem;
    }
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-blue), var(--royal-blue));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

section h2 {
    color: var(--royal-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    section h2 {
        font-size: 2.5rem;
    }
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--royal-blue) 100%);
    color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(65, 105, 225, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-metric {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.asset-demo {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.asset-item {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border-radius: 16px;
    border-left: 5px solid var(--royal-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.asset-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.asset-item h3 {
    color: var(--royal-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.image-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--cyan-blue);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.code-preview {
    background: var(--dark-gray);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.code-preview pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.font-demo {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid var(--medium-gray);
}

.font-sample {
    font-size: 3rem;
    color: var(--royal-blue);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.ttl-info {
    background: linear-gradient(135deg, var(--cyan-blue), var(--royal-blue));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.api-preview {
    background: var(--white);
    border: 3px solid var(--royal-blue);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    min-height: 120px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.1);
}

.cache-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cache-table th,
.cache-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.cache-table th {
    background: linear-gradient(135deg, var(--royal-blue), var(--dark-blue));
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cache-table tbody tr {
    transition: background 0.2s;
}

.cache-table tbody tr:hover {
    background: var(--light-gray);
}

.cache-table tbody tr:last-child td {
    border-bottom: none;
}

.challenge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.challenge-info,
.challenge-test {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.challenge-info h3,
.challenge-test h3 {
    color: var(--royal-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.challenge-info p,
.challenge-test p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.secure-paths {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.secure-path-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 3px solid var(--royal-blue);
}

.secure-path-item code {
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: inline-block;
}

.secure-path-item span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.test-button {
    background: linear-gradient(135deg, var(--royal-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.test-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

.test-button:active {
    transform: translateY(0);
}

.result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    min-height: 80px;
    background: var(--white);
    border: 2px solid var(--cyan-blue);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
}

.cta-section {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 4rem;
    margin: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(65, 105, 225, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1.2rem 3rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button.primary {
    background: var(--white);
    color: var(--royal-blue);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--white);
    margin-top: 4rem;
    opacity: 0.9;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 1;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.demo-overview, .caching-demo, .test-endpoints {
    margin: 2rem 0;
}

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

.demo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s;
    display: block;
}

.demo-card:hover {
    border-color: var(--royal-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.2);
}

.demo-card h3 {
    color: var(--royal-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.demo-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.demo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.demo-path {
    font-family: monospace;
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--royal-blue);
}

.demo-status {
    background: var(--cyan-blue);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.section-description {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.7;
    font-size: 1.05rem;
}

.demo-hero {
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.demo-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.demo-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.demo-info {
    margin: 2rem 0;
}

.config-box, .waf-rules {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--royal-blue);
}

.config-item, .rule-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.config-item strong, .rule-item strong {
    color: var(--royal-blue);
    font-weight: 600;
}

.test-section {
    margin: 2rem 0;
}

.test-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.test-button {
    background: linear-gradient(135deg, var(--royal-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.test-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

.test-button.secondary {
    background: var(--medium-gray);
    color: var(--dark-gray);
    box-shadow: none;
}

.test-button.secondary:hover {
    background: var(--text-gray);
    color: var(--white);
}

.rate-limit-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.status-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--royal-blue);
}

.test-cases {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.test-case {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--cyan-blue);
}

.test-case h3 {
    color: var(--royal-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.test-case code {
    display: block;
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.challenge-controls {
    margin-bottom: 2rem;
}

.token-input-group {
    margin-bottom: 1.5rem;
}

.token-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.token-input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: monospace;
}

.token-input-group input:focus {
    outline: none;
    border-color: var(--royal-blue);
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.endpoint-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--royal-blue);
}

.endpoint-item code {
    display: block;
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.endpoint-item p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.endpoint-result {
    margin-top: 1rem;
}

.test-endpoint-btn {
    background: var(--royal-blue);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.test-endpoint-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    min-height: 80px;
    background: var(--white);
    border: 2px solid var(--cyan-blue);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
}

.result-success {
    color: #059669;
    background: #D1FAE5;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #059669;
}

.result-error {
    color: #DC2626;
    background: #FEE2E2;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #DC2626;
}

.result-blocked {
    color: #D97706;
    background: #FEF3C7;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #D97706;
}

.result-success pre,
.result-error pre,
.result-blocked pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
}

.log-container {
    background: var(--dark-gray);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.log-entry {
    display: grid;
    grid-template-columns: 100px 120px 1fr 80px;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: #9CA3AF;
}

.log-status {
    font-weight: 700;
}

.log-entry.log-success .log-status {
    color: #10B981;
}

.log-entry.log-error .log-status,
.log-entry.log-blocked .log-status {
    color: #EF4444;
}

.log-entry.log-warning .log-status {
    color: #F59E0B;
}

.log-message {
    color: var(--white);
}

.log-duration {
    color: #9CA3AF;
    text-align: right;
}

.nav a.active {
    color: var(--royal-blue);
    font-weight: 700;
}

.nav a.active::after {
    width: 100%;
}

.protected-endpoints {
    margin: 2rem 0;
}

.test-urls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.url-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--royal-blue);
}

.url-item h3 {
    color: var(--royal-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.test-link {
    display: inline-block;
    background: var(--royal-blue);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    transition: all 0.2s;
}

.test-link:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.url-item p {
    color: var(--dark-gray);
    margin-top: 0.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.note {
    margin-top: 1rem;
    padding: 1rem;
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    border-radius: 6px;
    color: #78350F;
    font-size: 0.95rem;
    line-height: 1.6;
}

.instructions {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
    color: var(--dark-gray);
}

.instructions ol {
    margin-left: 1.5rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.instructions li {
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.instructions ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.code-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.code-example {
    background: var(--dark-gray);
    padding: 1.5rem;
    border-radius: 12px;
}

.code-example h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.code-example pre {
    margin: 0;
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-example code {
    color: var(--white);
}

.cookie-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.cookie-details {
    margin: 1.5rem 0;
}

.cookie-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.cookie-item strong {
    color: var(--royal-blue);
    font-weight: 600;
}

.cookie-status {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid var(--royal-blue);
}

.cookie-status h3 {
    color: var(--royal-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cookie-status p {
    color: var(--dark-gray);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        text-align: center;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .challenge-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 3rem 2rem;
        margin: 2rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cache-table {
        font-size: 0.9rem;
    }

    .cache-table th,
    .cache-table td {
        padding: 1rem;
    }

    .cta-section {
        padding: 4rem 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}
