*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: #0f172a;
    background: #f5f7fb;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 40px;
    gap: 32px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
}

.brand__title {
    font-size: 18px;
    font-weight: 700;
}

.brand__caption {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: center;
    background: #ffffff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.hero__eyebrow {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6366f1;
    font-weight: 600;
}

.hero__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    margin: 12px 0 16px;
}

.hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__preview {
    display: flex;
    justify-content: center;
}

.preview {
    position: relative;
    width: min(360px, 90%);
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    background: linear-gradient(160deg, #1e293b, #0f172a);
    padding: 24px;
    display: grid;
    place-items: center;
}

.preview__screen {
    position: absolute;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: grid;
    place-items: center;
    color: #e2e8f0;
    font-size: 13px;
}

.preview__screen--main {
    inset: 24px 32px 44px 24px;
}

.preview__screen--side {
    width: 120px;
    height: 80px;
    bottom: 24px;
    right: 24px;
    background: rgba(99, 102, 241, 0.35);
}

.preview__label {
    opacity: 0.9;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section__title {
    font-size: 22px;
    font-weight: 700;
}

.section__hint {
    color: #64748b;
    font-size: 14px;
}

.rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.room-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.room-card--placeholder {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.room-card__title {
    font-size: 16px;
    font-weight: 600;
}

.room-card__meta {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.step {
    padding: 18px;
    border-radius: 16px;
    background: #e0e7ff;
}

.step__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.step__text {
    font-size: 14px;
    color: #334155;
}

.section--compact {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.section--dark {
    padding: 24px;
    border-radius: 24px;
    background: #0f172a;
    color: #f8fafc;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.preview-grid__card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-grid__title {
    font-size: 14px;
    font-weight: 600;
}

video {
    width: 100%;
    min-height: 220px;
    border-radius: 14px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.footer {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.form__label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.form__input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background: #ffffff;
}

.form__input:focus {
    outline: 2px solid rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.form__hint {
    font-size: 13px;
    color: #64748b;
}

.room-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.video--mirror {
    transform: scaleX(-1);
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn--secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn--ghost {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.btn--link {
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
}

.btn--primary:hover,
.btn--secondary:hover,
.btn--ghost:hover,
.btn--link:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 24px;
    }
}