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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #00ff88;
    --accent-dim: #00ff8830;
    --border: #222222;
}

body {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 1;
}

/* Main content */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Status indicator */
.status-indicator {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-dim);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent);
    }
    70% {
        box-shadow: 0 0 0 10px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.status-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

/* Hero section */
.hero-section {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Code window */
.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(2deg);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(2deg) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(2deg) translateY(0);
    }
}

.window-header {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.control:hover {
    opacity: 0.8;
}

.control.red {
    background: #ff5f57;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #28c940;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.code-content {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.line {
    display: block;
    margin: 0.25rem 0;
}

.keyword {
    color: #ff79c6;
}

.variable {
    color: #50fa7b;
}

.property {
    color: #8be9fd;
}

.string {
    color: #f1fa8c;
}

/* Main title */
.main-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.1s;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--accent), #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Description */
.description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Access info cards */
.access-info {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.info-card .icon {
    font-size: 1.5rem;
}

.info-card .text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.float-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
}

.float-element:nth-child(1) {
    background: var(--accent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    background: #00ffff;
    top: 60%;
    right: 10%;
    animation-delay: 7s;
}

.float-element:nth-child(3) {
    background: #ff79c6;
    bottom: 20%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Brand terminal */
.brand-terminal {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(17, 17, 17, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    animation: terminalFadeIn 1s ease-out;
}

@keyframes terminalFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-terminal .prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.brand-terminal .command {
    color: #8be9fd;
}

.brand-terminal .output {
    display: block;
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    color: var(--text-primary);
    opacity: 0;
    animation: typeIn 0.5s ease-out 0.5s forwards;
}

@keyframes typeIn {
    to {
        opacity: 1;
    }
}

/* Access Terminal */
.access-terminal {
    margin-top: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.access-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100px);
    }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.terminal-prompt {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.terminal-form {
    position: relative;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dim);
}

.input-prompt {
    color: var(--accent);
    font-weight: 600;
}

.terminal-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    min-width: 200px;
}

.terminal-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.submit-btn {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #00ff88cc;
    transform: translateX(2px);
}

.submit-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    transition: transform 0.3s ease;
}

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

.access-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    height: 20px;
}

.access-status.success {
    color: var(--accent);
    animation: fadeIn 0.5s ease-out;
}

.access-status.error {
    color: #ff5555;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .brand-terminal {
        top: 4rem;
        left: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .access-terminal {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    .status-indicator {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .status-text {
        display: none;
    }
    
    .code-window {
        margin-bottom: 2rem;
        transform: none;
    }
    
    .access-info {
        flex-direction: column;
        width: 100%;
    }
    
    .info-card {
        width: 100%;
        justify-content: center;
    }
}