:root {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --tile-bg: #1e293b;
    --tile-hover: #334155;
    --gold: #fbbf24;
    --gold-hover: #f59e0b;
    --blue: #38bdf8;
    --matrix-color: #00ffa4;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

header {
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

header p {
    color: #94a3b8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tile {
    background-color: var(--tile-bg);
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tile:hover {
    background-color: var(--tile-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.tile-content {
    text-align: center;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tile h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tile p {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Gold Tile Styling */
.tile-gold {
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    border-color: var(--gold);
}

.tile-gold:hover {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.tile-gold h2, .tile-gold .icon {
    color: var(--gold);
}

.tile-gold p {
    color: rgba(251, 191, 36, 0.7);
}

/* Blue Tile Styling */
.tile-blue {
    border-color: var(--blue);
}

.tile-blue h2, .tile-blue .icon {
    color: var(--blue);
}

/* Matrix Tile & Form Styling */
.tile-matrix {
    cursor: pointer;
    overflow: hidden;
    min-height: 200px;
    position: relative;
}

.tile-matrix.active {
    cursor: default;
    background-color: var(--tile-bg);
    transform: none;
}

.matrix-form {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: white;
    font-family: inherit;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
}

#submit-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background-color: var(--matrix-color);
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#submit-btn:hover {
    filter: brightness(0.9);
}

footer {
    font-size: 0.875rem;
    color: #64748b;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    background: var(--matrix-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    max-width: 280px;
}

.toast.toast-error {
    background: #f87171;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Matrix success state */
.matrix-success {
    position: absolute;
    inset: 0;
}

.matrix-success img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
}
