/* =========================================================
   DYC SECURITY — LANDING "LAVORI IN CORSO"
   ========================================================= */


/* =========================
   FONT (locali, nessun CDN)
   ========================= */

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Display";
    src: url("../fonts/InterDisplay-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* =========================
   TOKEN
   ========================= */

:root {

    --bg: #070407;
    --surface: #110c11;
    --surface-2: #1d151c;
    --border: #312933;

    --text: #fcf2f9;
    --text-soft: #d3cdd2;
    --text-muted: #9a9299;

    --accent: #ff4fa3;
    --accent-border: #ff7ce8;
    --accent-soft: rgba(255, 79, 163, 0.14);
    --accent-glow: rgba(255, 79, 163, 0.35);

    --ok: #4fe3a1;
    --ok-soft: rgba(79, 227, 161, 0.14);

    --lime: #b6ff4d;

    --radius: 18px;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Inter Display", "Inter", -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

}


/* =========================
   BASE
   ========================= */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {

    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(ellipse 70% 50% at 75% 35%, rgba(255, 79, 163, 0.10), transparent 70%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(255, 79, 163, 0.06), transparent 70%),
        var(--bg);

    color: var(--text);

    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;

}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent-border);
    outline-offset: 3px;
    border-radius: 6px;
}

.mono {

    font-family: var(--font-mono);

    /* come JetBrains Mono NL: niente legature */
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;

}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================
   NASTRO DA CANTIERE
   ========================= */

.tape {

    height: 14px;

    background:
        repeating-linear-gradient(
            -45deg,
            var(--accent) 0 16px,
            #0b080b 16px 32px
        );

    background-size: 45.25px 45.25px;

    box-shadow: 0 0 24px var(--accent-glow);

    animation: tape-move 2.4s linear infinite;

}

.tape--bottom {
    margin-top: auto;
    height: 10px;
    animation-direction: reverse;
}

@keyframes tape-move {
    to {
        background-position: 45.25px 0;
    }
}


/* =========================
   HEADER
   ========================= */

.site-header {

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 22px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

}

.brand {

    display: inline-flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

}

/* Logo DYC nel cerchio */
.brand-logo {

    flex-shrink: 0;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    box-shadow:
        0 0 0 2px rgba(255, 124, 232, 0.35),
        0 6px 28px var(--accent-glow);

    transition: transform 0.2s ease;

}

.brand:hover .brand-logo {
    transform: rotate(-6deg) scale(1.04);
}

.brand-name {

    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.2px;

}

.brand-name span {
    color: var(--text-muted);
    font-weight: 400;
}

.status-chip {

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 14px;

    border: 1px solid rgba(255, 79, 163, 0.4);
    border-radius: 999px;

    background: var(--accent-soft);

    color: var(--accent-border);

    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    white-space: nowrap;

}

.status-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 0 0 var(--accent-glow);

    animation: pulse 1.8s ease-out infinite;

}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 79, 163, 0.6);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(255, 79, 163, 0);
    }
}


/* =========================
   HERO
   ========================= */

.hero {

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 24px 20px 56px;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
        "text art"
        "text log";
    align-items: center;
    column-gap: 48px;
    row-gap: 22px;

}

.hero-text {
    grid-area: text;
    min-width: 0;
}

.eyebrow {

    margin: 0 0 22px;

    color: var(--accent);

    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;

}

.hero h1 {

    margin: 0 0 22px;

    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(48px, 7.4vw, 92px);
    line-height: 0.98;
    letter-spacing: -2px;

}

.hero h1 em {

    font-style: normal;

    color: var(--accent);

    text-shadow: 0 0 40px var(--accent-glow);

}

.lead {

    max-width: 540px;

    margin: 0 0 30px;

    color: var(--text-soft);

    font-size: clamp(17px, 1.6vw, 20px);

}

.lead strong {
    color: var(--text);
    font-weight: 600;
}


/* =========================
   BARRA INDIRIZZI (omnibox)
   ========================= */

.omnibox {

    max-width: 540px;

    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 30px;
    padding: 0 18px;

    height: 54px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #0b080b;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);

}

.omnibox-lock {

    flex-shrink: 0;

    width: 20px;
    height: 20px;

    color: var(--ok);

}

.omnibox-url {

    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;

    overflow: hidden;

    font-size: clamp(15px, 1.7vw, 19px);
    white-space: pre;

}

.url-domain {
    color: var(--text);
}

.url-path {
    color: var(--accent);
    text-shadow: 0 0 16px var(--accent-glow);
}

/* Caret fisso, stile DYC (non lampeggia) */
.caret {

    flex-shrink: 0;

    width: 3px;
    height: 24px;

    margin-left: 2px;

    border-radius: 2px;

    background: var(--accent);

    box-shadow: 0 0 10px var(--accent-glow);

}

.url-status {

    flex-shrink: 0;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 500;

    background: var(--accent-soft);
    color: var(--accent-border);

    transition: background 0.2s ease, color 0.2s ease;

}

.url-status.is-ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.url-status[hidden] {
    display: none;
}


/* =========================
   CTA
   ========================= */

.cta-group {

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

}

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 56px;

    padding: 0 26px;

    border-radius: 14px;

    font-weight: 600;
    font-size: 17px;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;

}

.btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.btn-primary {

    background: var(--accent);

    color: #14050d;

    box-shadow:
        0 0 0 1px var(--accent-border),
        0 12px 40px var(--accent-glow);

}

.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 0 1px var(--accent-border),
        0 16px 50px rgba(255, 79, 163, 0.5);

}

.btn-ghost {

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.02);

    color: var(--text);

}

.btn-ghost:hover {

    border-color: var(--accent-border);

    background: var(--accent-soft);

}

.btn[hidden] {
    display: none;
}

.cta-note {

    margin: 16px 0 0;

    color: var(--text-muted);

    font-size: 14px;

}


/* =========================
   SCENA: CONO + TRANSENNA
   ========================= */

.scene {

    grid-area: art;

    min-width: 0;

    display: flex;
    justify-content: center;
    align-self: end;

}

.scene-art {

    width: 100%;
    max-width: 460px;

    height: auto;

    filter: drop-shadow(0 0 40px rgba(255, 79, 163, 0.22));

}

.cone {

    transform-origin: 330px 316px;

    animation: wobble 5s ease-in-out infinite;

}

@keyframes wobble {
    0%, 100% {
        transform: rotate(0deg);
    }
    45% {
        transform: rotate(-1.6deg);
    }
    55% {
        transform: rotate(1.2deg);
    }
}


/* =========================
   BUILD LOG (terminale)
   ========================= */

.terminal {

    grid-area: log;
    justify-self: center;
    align-self: start;

    width: 100%;
    max-width: 460px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(17, 12, 17, 0.92);

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

}

.terminal-bar {

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 16px;

    border-bottom: 1px solid var(--border);

    background: var(--surface-2);

}

.terminal-bar i {

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #3a2f39;

}

.terminal-bar i:first-child {
    background: var(--accent);
}

.terminal-title {

    margin-left: 8px;

    color: var(--text-muted);

    font-size: 13px;

}

.terminal-body {

    margin: 0;
    padding: 16px 18px 18px;

    list-style: none;

    font-size: 13.5px;
    line-height: 1.9;

}

.log-line {

    display: flex;
    gap: 10px;

    color: var(--text-soft);

    opacity: 1;
    transform: none;

    transition: opacity 0.35s ease, transform 0.35s ease;

}

.js .log-line.is-pending {
    opacity: 0;
    transform: translateY(4px);
}

.log-tag {

    flex-shrink: 0;

    font-weight: 500;

}

.log-tag.ok {
    color: var(--ok);
}

.log-tag.wip {
    color: var(--accent);
}

.progress {

    margin-top: 14px;

}

.progress-head {

    display: flex;
    justify-content: space-between;

    color: var(--text-muted);

    font-size: 12.5px;

}

.progress-track {

    height: 10px;

    margin-top: 6px;

    border-radius: 999px;

    background: #0b080b;

    border: 1px solid var(--border);

    overflow: hidden;

}

.progress-fill {

    width: 37%;
    height: 100%;

    background:
        repeating-linear-gradient(
            -45deg,
            var(--accent) 0 8px,
            #c2337a 8px 16px
        );

    background-size: 22.6px 22.6px;

    box-shadow: 0 0 14px var(--accent-glow);

    animation: tape-move 1.2s linear infinite;

    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);

}

.js .progress-fill.is-start {
    width: 0;
}


/* =========================
   FOOTER
   ========================= */

.site-footer {

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 26px 20px 30px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;

    color: var(--text-muted);

    font-size: 14px;

}

.site-footer a {
    color: var(--text-soft);
    text-decoration-color: rgba(255, 79, 163, 0.5);
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--accent-border);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .hero {

        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "art"
            "text"
            "log";

        row-gap: 30px;

        padding-top: 8px;

    }

    .scene-art {
        max-width: 340px;
    }

}

@media (max-width: 560px) {

    body {
        font-size: 16px;
    }

    .site-header {
        padding: 18px 16px;
    }

    .brand-name span {
        display: none;
    }

    .status-chip {
        padding: 6px 11px;
        font-size: 11.5px;
    }

    .hero {
        padding: 4px 16px 44px;
    }

    .hero h1 {
        letter-spacing: -1.2px;
    }

    .omnibox {
        height: 50px;
        padding: 0 14px;
        gap: 10px;
    }

    .url-status {
        display: none;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .scene-art {
        max-width: 280px;
    }

    .site-footer {
        padding: 22px 16px 26px;
        flex-direction: column;
    }

}


/* =========================
   MOVIMENTO RIDOTTO
   ========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}


/* =========================
   LAMPEGGIANTI TRANSENNA
   ========================= */

.beacon {

    animation: beacon 1.6s ease-in-out infinite;

}

.beacon--late {
    animation-delay: 0.8s;
}

@keyframes beacon {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}

.terminal-body.progress {
    margin-top: 0;
    padding-top: 0;
}
