* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    cursor: none;
    user-select: none;
}

#display {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 26, .24), transparent 30%),
        radial-gradient(circle at 90% 78%, rgba(37, 99, 235, .24), transparent 36%),
        linear-gradient(135deg, #0f172a 0%, #111827 46%, #020617 100%);
}

#slides {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .75s ease, transform 1.15s ease;
    overflow: hidden;
    color: var(--slide-text, #ffffff);
    background: var(--slide-bg, #0f172a);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 122, 26, .23), transparent 32%),
        radial-gradient(circle at 86% 70%, rgba(59, 130, 246, .18), transparent 36%),
        linear-gradient(135deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, black, transparent 85%);
}

.slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 5vw;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 4vw;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    width: fit-content;
    margin-bottom: 1.3vw;
    padding: .7vw 1vw;
    border-radius: 999px;
    border: 1px solid rgba(255,122,26,.42);
    background: rgba(255,122,26,.12);
    color: #ffb37c;
    font-size: .85vw;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-left h1,
.pricing-header h1,
.offer-layout h1,
.matrix-main-layout h1,
.window-layout h1 {
    margin: 0;
    color: #ffffff;
    font-size: 5.1vw;
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.055em;
}

.hero-left p,
.pricing-header p,
.offer-panel p,
.matrix-main-layout p,
.window-layout p {
    max-width: 44vw;
    margin: 1.4vw 0 2vw;
    color: rgba(255,255,255,.82);
    font-size: 1.35vw;
    line-height: 1.48;
    font-weight: 600;
}

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

.primary-btn,
.secondary-btn,
.offer-cta,
.window-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 1.8vw;
    border-radius: 18px;
    font-size: .95vw;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.primary-btn,
.offer-cta,
.window-cta {
    background: #ff7a1a;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(255,122,26,.35);
}

.secondary-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: 100%;
    min-height: 56vh;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 42px 120px rgba(0,0,0,.5);
}

.image-card img,
.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card {
    padding: 3vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.service-logo {
    font-size: 3.4vw;
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.06em;
}

.service-lines {
    display: grid;
    gap: .8vw;
}

.service-lines span,
.matrix-services span {
    padding: .8vw 1vw;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    font-weight: 900;
    letter-spacing: .08em;
}

/* Pricing */
.pricing-layout {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2vw;
}

.pricing-header h1 {
    font-size: 4.6vw;
}

.pricing-header p {
    margin-bottom: 0;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2vw;
}

.package-card {
    padding: 1.5vw;
    border-radius: 28px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.3);
}

.package-card h2 {
    margin: 0 0 1vw;
    font-size: 1.6vw;
}

.package-card .price {
    color: #ff7a1a;
    font-size: 3vw;
    font-weight: 900;
    letter-spacing: -.04em;
    margin-bottom: 1vw;
}

.package-card ul {
    margin: 0;
    padding-left: 1.1vw;
    color: rgba(255,255,255,.78);
    font-size: .95vw;
    line-height: 1.7;
    font-weight: 700;
}

/* Offer */
.offer-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4vw;
}

.offer-panel {
    padding: 3vw;
    border-radius: 34px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 34px 100px rgba(0,0,0,.35);
}

.offer-panel p {
    max-width: none;
    font-size: 2vw;
}

/* Counter */
.counter-layout {
    width: 100%;
    height: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 18%, rgba(255,122,26,.28), transparent 28%),
        linear-gradient(135deg, #0f172a, #020617);
}

.counter-kicker {
    color: #ff7a1a;
    font-size: 1.2vw;
    font-weight: 900;
    letter-spacing: .2em;
    margin-bottom: 1vw;
}

.counter-title {
    font-size: 7vw;
    font-weight: 900;
    line-height: .86;
    letter-spacing: -.065em;
}

.counter-copy {
    max-width: 72vw;
    margin-top: 2vw;
    color: rgba(255,255,255,.82);
    font-size: 2vw;
    font-weight: 700;
}

.counter-bottom {
    position: absolute;
    left: 5vw;
    right: 5vw;
    bottom: 3vw;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.72);
    font-size: 1.1vw;
    font-weight: 900;
    letter-spacing: .1em;
}

/* Window */
.window-layout {
    width: 100%;
    height: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 15%, rgba(255,122,26,.28), transparent 30%),
        linear-gradient(135deg, #0f172a, #020617);
}

.window-brand {
    color: #ff7a1a;
    font-size: 1.3vw;
    font-weight: 900;
    letter-spacing: .24em;
    margin-bottom: 1.5vw;
}

.window-layout h1 {
    max-width: 12ch;
    font-size: 7vw;
}

.window-layout p {
    max-width: 70vw;
    font-size: 2.1vw;
}

.window-cta {
    margin-top: 1vw;
}

/* Matrix */
.matrix-viewport {
    overflow: hidden;
}

.matrix-canvas {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: top left;
    overflow: hidden;
}

.matrix-main-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 7vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,122,26,.28), transparent 32%),
        radial-gradient(circle at 80% 70%, rgba(59,130,246,.22), transparent 34%),
        linear-gradient(135deg, #0f172a, #020617);
}

.matrix-brand {
    color: #ff7a1a;
    font-size: 1.4vw;
    font-weight: 900;
    letter-spacing: .24em;
    margin-bottom: 2vw;
}

.matrix-main-layout h1 {
    max-width: 13ch;
    font-size: 6vw;
}

.matrix-main-layout p {
    max-width: 55vw;
    font-size: 2vw;
}

.matrix-services {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    margin-top: 2vw;
}

/* Portfolio */
.portfolio-stack {
    position: relative;
    height: 65vh;
}

.portfolio-card {
    position: absolute;
    width: 78%;
    height: 44vh;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 36px 100px rgba(0,0,0,.42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 2.4vw;
    font-weight: 900;
    letter-spacing: .08em;
}

.card-one {
    top: 0;
    right: 0;
    z-index: 3;
}

.card-two {
    top: 8vh;
    right: 8vw;
    z-index: 2;
}

.card-three {
    top: 16vh;
    right: 16vw;
    z-index: 1;
}

/* Screen adjustments */
.screen-counter-mode .slide {
    transform: scale(1.01);
}

.screen-tv-mode .hero-left h1 {
    font-size: 4.7vw;
}

.screen-window-mode .counter-bottom,
.screen-window-mode .actions {
    display: none;
}

#connectionState {
    position: absolute;
    z-index: 100;
    left: 50%;
    bottom: 2vw;
    transform: translateX(-50%);
    padding: .8vw 1.4vw;
    border-radius: 999px;
    background: rgba(0,0,0,.78);
    color: white;
    font-size: .85vw;
    font-weight: 900;
    letter-spacing: .1em;
}

.hidden {
    display: none !important;
}
