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

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    background: linear-gradient(170deg, #000010 0%, #000033 50%, #000010 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

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

.header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.logo-container {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    overflow: hidden;
}

.logo-container svg {
    filter: grayscale(100%) brightness(0.7) drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    opacity: 0.3;
    transition: all 0.3s ease;
}

.logo-container:hover svg {
    animation: colorFlash 0.3s ease-out;
}

@keyframes colorFlash {
    0% {
        filter: grayscale(100%) brightness(0.7) drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    }
    50% {
        filter: grayscale(100%) brightness(1.2) drop-shadow(2px 2px 8px rgba(255,255,255,0.3));
    }
    100% {
        filter: grayscale(100%) brightness(0.7) drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    }
}

.vault-branding {
    margin-bottom: 1rem;
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInDelayed 0.8s ease-out 1s forwards;
}

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

.vault-title {
    font-size: 5rem;
    font-weight: 100;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vault-icon {
    width: 96px;
    height: 96px;
}

.vault-separator {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
}

.brand-form {
    background: linear-gradient(45deg, #1a1a1a 0%, transparent 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(51, 51, 51, 0.5);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.brand-form.fade-out {
    animation: fadeOutDown 0.6s ease-out forwards;
}

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

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

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 300;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.services-section {
    display: none;
}

.services-section.show {
    display: block;
    animation: fadeInUp 0.8s ease-out forwards;
}

.brand-form.hidden {
    display: none;
}

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

.service-card {
    background: linear-gradient(45deg, #1a1a1a 0%, transparent 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.service-card.connected {
    border-color: #48bb78;
}

.service-card.connected::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #48bb78;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(192, 192, 192, 0.9);
    position: relative;
    display: inline-block;
    perspective: 100px;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    fill: rgba(192, 192, 192, 0.9);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: filter 0.3s ease;
}

.service-card:hover .service-icon svg {
    animation: iconColorFlash 0.3s ease-out;
}

@keyframes iconColorFlash {
    0% {
        fill: rgba(192, 192, 192, 0.9);
        filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    }
    50% {
        fill: rgba(255, 255, 255, 0.95);
        filter: brightness(1.2) drop-shadow(2px 2px 8px rgba(255,255,255,0.3));
    }
    100% {
        fill: rgba(192, 192, 192, 0.9);
        filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    }
}

.service-name {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.service-status {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.button-container {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin: 0.25rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(10deg, #000000 0%, #000010 50%, transparent 100%);
    color: white;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 16, 0.3);
}

.btn-secondary {
    background: rgba(45, 45, 45, 0.5);
    color: #aaa;
    border: 1px solid rgba(68, 68, 68, 0.5);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    display: block;
    margin: 0.5rem auto 0;
}

.btn-secondary:hover {
    background: rgba(61, 61, 61, 0.5);
    border-color: rgba(85, 85, 85, 0.7);
    color: #ccc;
}

.api-form {
    margin-top: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
}

.api-form.active {
    max-height: 200px;
    opacity: 1;
    padding-top: 0.5rem;
}

.success-message {
    background: rgba(26, 71, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #48bb78;
    color: #68d391;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.error-message {
    background: rgba(71, 42, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #f56565;
    color: #fc8181;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.instructions {
    background: linear-gradient(45deg, #1a1a1a 0%, transparent 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 3rem;
    opacity: 0.9;
}

.instructions h3 {
    margin-bottom: 1rem;
    color: #667eea;
    font-weight: 300;
}

.instructions ol {
    margin-left: 1.5rem;
    color: #ccc;
}

.instructions li {
    margin-bottom: 0.5rem;
    font-weight: 300;
}

h2 {
    font-weight: 300;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin: 1.5rem auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.brand-tag span {
    color: white;
    font-weight: 300;
}

.brand-tag .separator {
    color: rgba(255, 255, 255, 0.3);
}

.brand-tag .not-me-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
    font-weight: 300;
}

.brand-tag .not-me-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 4rem;
}

/* Help modal styles */
.help-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.help-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.modal-overlay {
    position: absolute;
    top: 70px;
    right: 20px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(45deg, #1a1a1a 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    width: 400px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h3 {
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 1.5rem;
}

.modal p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .vault-title {
        font-size: 3rem;
    }
    
    .vault-icon {
        width: 64px;
        height: 64px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        position: static;
        margin-bottom: 2rem;
    }
    
    .vault-branding {
        margin-top: 0;
    }
}