:root {
    --bg-color: #000000;
    --surface-color: #0A0A0A;
    --surface-light: #141414;
    --border-color: #222222;
    --primary-color: #FFFFFF;
    --primary-accent: #326CE5; 
    --primary-hover: #E5E5E5;
    --text-main: #EDEDED;
    --text-muted: #888888;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: #fff;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: #444;
    background-color: var(--surface-light);
}

.btn-secondary {
    background-color: var(--surface-light);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    height: 64px;
    background-color: rgba(0, 0, 0, 0.95);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.main-nav a:hover {
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(50, 108, 229, 0.15) 0%, rgba(0,0,0,0) 60%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--surface-light);
    color: var(--text-main);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Mockup / Visual */
.mockup-window {
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    height: 32px;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #333; }
.dot.yellow { background-color: #333; }
.dot.green { background-color: #333; }

.mockup-window:hover .dot.red { background-color: #EF4444; }
.mockup-window:hover .dot.yellow { background-color: #F59E0B; }
.mockup-window:hover .dot.green { background-color: #10B981; }

.mockup-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-video {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.video-cell {
    aspect-ratio: 16/9;
    background-color: var(--surface-light);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Abstract gradients simulating users' cameras to avoid AI generation completely, just pure CSS art */
.user-1 { background: radial-gradient(circle at center, #1e3a8a 0%, #000 100%); }
.user-2 { background: radial-gradient(circle at center, #064e3b 0%, #000 100%); }
.user-3 { background: radial-gradient(circle at center, #701a75 0%, #000 100%); }
.user-4 { background: radial-gradient(circle at center, #3f3f46 0%, #000 100%); }

.user-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.mockup-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--surface-light);
    color: #fff;
}

.control-btn.end {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.control-btn.end:hover {
    background-color: #EF4444;
    border-color: #EF4444;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
}

/* Onboarding / Ticket section */
.dark-section {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.onboarding-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.ticket-box {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.ticket-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-info {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.link-column h4 {
    font-size: 0.875rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.link-column a:hover {
    color: #fff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .onboarding-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero { padding-top: 120px; }
    .footer-container { grid-template-columns: 1fr; }
    h1 { font-size: 2.25rem; }
    .hero-buttons { flex-direction: column; }
    .btn-block { width: 100%; }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 450px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-submit.loading {
    pointer-events: none;
}
.btn-submit.loading .btn-text {
    display: none;
}
.btn-submit.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Document Pages */
.doc-section {
    padding: 140px 0 100px;
}

.doc-container {
    max-width: 800px;
    margin: 0 auto;
}

.doc-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.doc-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.doc-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.doc-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.doc-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
