/* =========================================================
   SMARTCODE HERO CSS
========================================================= */

/* =========================
   RESET / BASE
========================= */
html {
    scroll-behavior: smooth;
}

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

body {
    background-color: rgb(1, 5, 18);
    color: #fff;
    font-family: Inter, Arial, sans-serif;
}

/* =========================
   ROOT VARIABLES
========================= */

:root {
    --bg-dark: rgb(1, 5, 18);

    --cyan: #00e5ff;
    --cyan-soft: rgba(0, 229, 255, 0.35);

    --blue: #3a8bff;
    --violet: #8b35ff;
    --violet-soft: rgba(139, 53, 255, 0.45);

    --text-soft: rgba(255,255,255,0.78);
    --glass-border: rgba(115, 210, 255, 0.35);

    --radius-md: 14px;
    --radius-lg: 20px;

    --neon-shadow:
        0 0 20px rgba(0, 200, 255, 0.35),
        0 0 40px rgba(120, 60, 255, 0.25);

    --icon-color-1: #8b35ff;
    --icon-color-2: #3a8bff;
}

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

.hero-smartcode {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        radial-gradient(circle at 68% 38%, rgba(0, 180, 255, 0.33), transparent 34%),
        radial-gradient(circle at 95% 45%, rgba(150, 0, 255, 0.38), transparent 36%),
        var(--bg-dark);
}

.hero-smartcode::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;

    background: linear-gradient(
        to bottom,
        rgba(1, 5, 18, 0) 0%,
        rgba(1, 5, 18, 0.45) 45%,
        rgb(1, 5, 18) 100%
    );

    z-index: 2;
    pointer-events: none;
}

#constellationCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    z-index: 1;

    filter: blur(0.5px);
    opacity: 0.9;
}

/* =========================
   NAVIGATION
========================= */

.nav-contact .contact-icon {
    display: none;
}

.nav-toggle {
    display: none;
}

.hero-nav {
    position: relative;
    z-index: 5;

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-nav.sticky {
    position: fixed;
    top: 14px;
    left: 50%;
    width: min(1080px, calc(100% - 40px));

    transform: translateX(-50%) translateY(0);
    animation: stickyFromTop 0.35s ease forwards;

    padding: 0;

    background: rgba(5, 10, 30, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(120, 180, 255, 0.25);
    border-radius: 18px;

    box-shadow:
        0 0 22px rgba(0, 220, 255, 0.12),
        0 12px 38px rgba(0, 0, 0, 0.45);
}
.hero-nav.sticky .nav-inner {
    width: 100%;
    padding: 12px 18px;
}

@keyframes stickyFromTop {
    from {
        transform: translateX(-50%) translateY(-28px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* VNÚTORNÉ ZAROVNANIE */
.nav-inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;

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

    padding: 18px 0;
}

/* ANIMÁCIA PRECHODU */
.hero-nav {
    position: relative;
    z-index: 999;
    transition: transform 0.35s ease, opacity 0.35s ease;
}


.logo {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo::before {
    content: "";

    position: absolute;
    inset: -12px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,229,255,0.35) 0%,
            rgba(139,53,255,0.22) 45%,
            transparent 75%
        );

    opacity: 0;
    transform: scale(0.7);

    filter: blur(18px);

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

    pointer-events: none;
}

/* SVG LOGO */
.logo-svg {
    position: relative;
    z-index: 2;

    width: 150px;
    height: auto;

    display: block;

    transition:
        transform 0.35s ease;
}

/* hover glow */
.logo:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* hover scale */
.logo:hover .logo-svg {
    transform: scale(1.05);
}

.hero-nav nav {
    display: flex;
    gap: 34px;
}

.hero-nav nav a {
    position: relative;

    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    padding: 8px 0;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        transform 0.25s ease;
}

.hero-nav nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;

    width: 0;
    height: 2px;
    border-radius: 999px;

    background: linear-gradient(90deg, var(--cyan), var(--violet));

    box-shadow:
        0 0 10px rgba(0, 229, 255, 0.9),
        0 0 18px rgba(139, 53, 255, 0.7);

    transform: translateX(-50%);
    transition: width 0.28s ease;
}

.hero-nav nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -11px;

    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 10px var(--cyan),
        0 0 20px rgba(139, 53, 255, 0.9);

    opacity: 0;
    transform: translateX(-50%) scale(0);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.hero-nav nav a:hover {
    color: #fff;
    transform: translateY(-2px);

    text-shadow:
        0 0 12px rgba(0, 229, 255, 0.75),
        0 0 20px rgba(139, 53, 255, 0.55);
}

.hero-nav nav a:hover::before {
    width: 100%;
}

.hero-nav nav a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.nav-contact-icon {
    display: none;
}

.nav-contact span {
    display: inline;
}

/* =========================
   BUTTONS
========================= */

.btn,
.nav-btn {
    position: relative;
    display: inline-block;

    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    color: #fff;

    background: linear-gradient(135deg, #1ecbff, var(--blue), #7b3bff);
    background-size: 200% 200%;

    border: 1px solid rgba(255,255,255,0.18);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: var(--neon-shadow);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-position 0.4s ease;
}

.btn {
    padding: 16px 28px;
    font-size: 14px;
}

.nav-btn {
    padding: 12px 22px;
    font-size: 13px;
}

.btn-primary {
    padding: 18px 32px;
    font-size: 15px;
}

.btn-secondary {
    padding: 18px 28px;

    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
}

.btn:hover,
.nav-btn:hover {
    transform: translateY(-3px) scale(1.04);

    background-position: right center;

    box-shadow:
        0 0 25px rgba(0, 220, 255, 0.7),
        0 0 55px rgba(140, 60, 255, 0.5);
}

.btn::before,
.nav-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );

    transform: skewX(-25deg);
}

.btn:hover::before,
.nav-btn:hover::before {
    animation: shine 0.9s ease;
}

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

.hero-content {
    position: relative;
    z-index: 4;

    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;

    min-height: calc(100vh - 105px);

    display: grid;
    grid-template-columns: 0.95fr 1.20fr;
    align-items: center;
    gap: 10px;
}

.hero-text {
    position: relative;
    z-index: 20;

    transform: translateY(-10px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 20px;
    border-radius: 999px;

    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);

    color: rgba(255,255,255,0.82);

    margin-bottom: 28px;
}

.hero-badge span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #00d9ff;
    box-shadow: 0 0 18px #00d9ff;
}

.hero-text h1 {
    font-size: clamp(40px, 4vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.045em;

    margin-bottom: 26px;
}

.hero-text h1 span {
    color: #00cfff;
}

.hero-text h1 strong {
    font-weight: 800;

    background: linear-gradient(135deg, #8d4dff, #00d9ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.55;

    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 18px;

    margin-bottom: 52px;
}

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

.hero-features {
    position: relative;
    z-index: 30;
 padding-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: nowrap;

    margin-top: 52px;

    width: max-content;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;

    color: rgba(255,255,255,0.72);

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.feature-icon {
    width: 62px;
    height: 62px;

    flex-shrink: 0;

    transition:
        transform 0.28s ease,
        filter 0.28s ease;
}

.feature-line {
    fill: none;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;

    filter:
        drop-shadow(0 0 10px rgba(68, 138, 209, 0.75))
        drop-shadow(0 0 20px rgba(10, 36, 121, 0.75));

    transition:
        transform 0.28s ease,
        filter 0.28s ease;
}



.feature-item:hover {
    transform: translateY(-2px);
    color: #fff;
}

.feature-item:hover .feature-icon {
    transform: scale(1.18);

    filter:
        drop-shadow(0 0 14px rgba(68, 138, 209, 0.95))
        drop-shadow(0 0 28px rgba(10, 36, 121, 0.9));
}

/* =========================
   HERO VISUAL / LAPTOP
========================= */

.hero-visual {
    position: relative;
    z-index: 5;

    min-height: 620px;
}

.laptop-wrap {
    position: absolute;

    right: -80px;
    top: 0;

    width: 900px;
}

/* =========================
   SPODNÝ LAPTOP
   glow + tieň
========================= */

.laptop-img {
    position: relative;
    z-index: 1;

    width: 100%;
    display: block;

    filter:
        drop-shadow(-5px 25px 5px rgba(0, 0, 0, 0.9))
        drop-shadow(-5px -10px 20px rgba(0, 200, 255, 0.15))
        drop-shadow(25px -30px 20px rgba(150, 0, 255, 0.45));
}

/* =========================
   VRCHNÝ LAPTOP
   čistý frame
========================= */

.laptop-front {
    position: absolute;
    inset: 0;

    z-index: 3;

    width: 100%;
    height: 100%;

    display: block;

    pointer-events: none;
    filter: none;
}

/* =========================
   LAPTOP SCREEN CONTENT
========================= */

.screen-content {
    position: absolute;
    z-index: 2;

    left: 33%;
    top: 13%;

    width: 458px;
    height: 300px;

    padding: 10px;

    overflow: hidden;

    border-radius: 3px;
    background-color: rgb(12, 15, 45);

    color: white;
    pointer-events: none;

    transform:
        perspective(850px)
        rotateX(4.3deg)
        rotateY(-18.3deg)
        rotateZ(4deg)
        skewY(-1.5deg)
        skewX(-3deg)
        translateY(0);
}


/* =========================
   SCREEN TEXT
========================= */

.screen-content h3 {
    font-size: 24px;
    font-style: italic;
}

.screen-content h2 {
    font-size: 30px;
    line-height: 1;

    margin-bottom: 12px;

    background: linear-gradient(135deg, #00dcff, #9b45ff);

    -webkit-background-clip: text;
    color: transparent;
}

.screen-content p {
    font-size: 10px;
    color: rgba(255,255,255,0.65);

    margin-bottom: 14px;
}

.screen-content button {
    border: 0;
    border-radius: 6px;

    padding: 8px 14px;

    color: white;
    font-size: 10px;

    background: linear-gradient(135deg, #149cff, #8037ff);
}

/* =========================
   GLASS PANELS
========================= */

.preference-panel,
.code-panel {
    z-index: 4;
}

/* =========================
   GLASS PANELS BASE
========================= */

.glass-panel {
    position: absolute;
    z-index: 4;

    background: rgba(12, 24, 55, 0.02);
    border: 1px solid var(--glass-border);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 0 35px rgba(0, 221, 255, 0.18),
        inset 0 0 30px rgba(255,255,255,0.04);
}

/* =========================
   PREFERENCE PANEL
========================= */

.preference-panel {
    left: 20%;
    top: 31%;

    width: 150px;
    height: 190px;

    border-radius: var(--radius-lg);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transform:
        perspective(850px)
        rotateX(9.3deg)
        rotateY(-20.3deg)
        rotateZ(5deg)
        skewY(0deg);

    animation: floatPanel 4s ease-in-out infinite;
}

.circle-progress {
    width: 74px;
    height: 74px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    color: var(--cyan);
    font-size: 25px;
    font-weight: 800;

    background:
        radial-gradient(circle, rgba(12, 24, 55, 0.95) 58%, transparent 60%),
        conic-gradient(
            var(--cyan) calc(var(--percent, 0) * 1%),
            rgba(0, 219, 255, 0.18) 0
        );

    box-shadow: 0 0 30px rgba(0, 220, 255, 0.35);
}

.preference-panel small {
    margin-top: 12px;

    color: rgba(255,255,255,0.72);
}

/* =========================
   MINI CHART
========================= */

.mini-chart {
    position: relative;

    width: 90px;
    height: 28px;

    margin-top: 18px;

    border-bottom: 1px solid rgba(91, 108, 255, 0.7);
    border-left: 2px solid rgba(255,255,255,0.2);

    overflow: hidden;
}

.chart-line {
    position: absolute;
    left: 5px;
    bottom: 4px;

    width: 82px;
    height: 22px;

    background: linear-gradient(90deg, var(--cyan), var(--violet));

    clip-path: polygon(
        0% 85%,
        18% 78%,
        35% 68%,
        52% 52%,
        70% 35%,
        88% 18%,
        100% 8%,
        100% 20%,
        88% 30%,
        70% 47%,
        52% 64%,
        35% 80%,
        18% 90%,
        0% 96%
    );

    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.75));
}

.mini-chart::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(12, 24, 55, 0.9);

    transform: translateX(calc(var(--chart, 0) * 100%));
    transition: transform 0.08s linear;
}

/* =========================
   CODE PANEL
========================= */

.code-panel {
    right: 2%;
    top: 24%;

    width: 250px;
    height: 220px;

    border-radius: 18px;
    padding: 14px 16px;

    overflow: hidden;

    background: linear-gradient(
        160deg,
        rgba(15, 33, 78, 0.72),
        rgba(8, 13, 35, 0.58)
    );

    transform:
        perspective(850px)
        rotateX(6.3deg)
        rotateY(-12.3deg)
        rotateZ(3deg)
        skewY(0deg);

    animation: floatPanel2 5s ease-in-out infinite;
}

.code-panel::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            120deg,
            rgba(0, 220, 255, 0.25),
            transparent 40%,
            rgba(142, 55, 255, 0.28)
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(160, 60, 255, 0.22),
            transparent 45%
        );

    pointer-events: none;
}

.code-header {
    position: relative;
    z-index: 2;

    display: flex;
    gap: 6px;

    margin-bottom: 10px;
}

.dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-body {
    position: relative;
    z-index: 2;

    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    line-height: 1.75;
    font-weight: 700;

    white-space: pre-wrap;

    color: #cfefff;
}

.kw {
    color: #4fc3ff;
}

.fn {
    color: #00e6a8;
}

.num {
    color: #ffd166;
}

.str {
    color: #ff7edb;
}

.bool {
    color: #a78bfa;
}

.obj {
    color: #8cecff;
}

/* =========================
   GLASS NEON BUTTON
========================= */

.glass-neon-btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 50px;
    padding: 16px 28px;

    border-radius: var(--radius-md);

    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(30, 220, 255, 0.22),
            rgba(80, 120, 255, 0.16),
            rgba(190, 55, 255, 0.28)
        ),
        rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.28);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        inset 0 1px 8px rgba(255,255,255,0.45),
        inset 0 -2px 12px rgba(180, 60, 255, 0.45),
        0 0 18px rgba(0, 220, 255, 0.35),
        0 0 38px rgba(170, 60, 255, 0.45),
        0 14px 45px rgba(150, 40, 255, 0.45);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.glass-neon-btn::before {
    content: "";

    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -6px;

    height: 18px;
    border-radius: 999px;

    background: linear-gradient(90deg, #27e7ff, #764cff, #ff4df3);

    filter: blur(12px);
    opacity: 0.9;
}

.glass-neon-btn::after {
    content: "";

    position: absolute;
    top: 8px;
    left: 18px;

    width: 70px;
    height: 28px;

    border-radius: 50%;

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

    filter: blur(12px);
    opacity: 0.65;

    transform: rotate(-25deg);
}

.glass-neon-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        inset 0 1px 10px rgba(255,255,255,0.55),
        inset 0 -2px 14px rgba(180, 60, 255, 0.55),
        0 0 25px rgba(0, 220, 255, 0.55),
        0 0 55px rgba(170, 60, 255, 0.65),
        0 18px 60px rgba(150, 40, 255, 0.6);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes shine {
    0% {
        left: -60%;
    }

    100% {
        left: 130%;
    }
}

@keyframes floatPanel {
    0%,
    100% {
        transform:
            perspective(850px)
            rotateX(9.3deg)
            rotateY(-20.3deg)
            rotateZ(5deg)
            skewY(0deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(850px)
            rotateX(9.3deg)
            rotateY(-20.3deg)
            rotateZ(5deg)
            skewY(0deg)
            translateY(10px);
    }
}

@keyframes floatPanel2 {
    0%,
    100% {
        transform:
            perspective(850px)
            rotateX(6.3deg)
            rotateY(-12.3deg)
            rotateZ(3deg)
            skewY(0deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(850px)
            rotateX(6.3deg)
            rotateY(-12.3deg)
            rotateZ(3deg)
            skewY(0deg)
            translateY(10px);
    }
}
