/* ============================================================
   HYPRTILE PREMIUM CSS
   Futuristic Neon / Glassmorphism Design
   Fully Responsive
   ============================================================ */

:root {
    --color-bg: #050505;
    --color-text: #e8e8e8;

    --glow-cyan: rgba(0, 180, 255, 0.55);
    --glow-purple: rgba(255, 60, 255, 0.45);

    --tile-bg: rgba(255, 255, 255, 0.06);
    --tile-bg-hover: rgba(255, 255, 255, 0.10);

    --blur: blur(18px);

    --max-width: 1200px;
}

/* =========================
   GLOBAL BACKGROUND
   ========================= */

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Inter", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

/* big background image with atmospheric blur */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("images/hyprtile-logo-big.png") center/cover no-repeat;
    filter: blur(22px) brightness(0.35);
    z-index: -2;
}

/* neon glow top → bottom */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,160,255,0.25),
            transparent 70%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(200,30,255,0.18),
            transparent 70%
        );
    z-index: -1;
    pointer-events: none;
}

/* =========================
   GLOBAL LAYOUT UTILITIES
   ========================= */

section {
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: auto;
}

h1, h2, h3 {
    margin: 0 0 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

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

.hero {
    text-align: center;
    padding: 140px 30px 160px;
    position: relative;
}

.hero-inner {
    max-width: 760px;
    margin: auto;
}

/* main title */
.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
}

/* subtitle */
.hero h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    opacity: 0.9;
    margin-bottom: 30px;
}

/* paragraph */
.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    font-size: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

/* glowing hover effect */
.btn:hover {
    background: rgba(255,255,255,0.15);
    box-shadow:
        0 0 18px var(--glow-cyan),
        0 0 8px var(--glow-purple);
    transform: translateY(-2px);
}

/* =========================
   TEXT BLOCKS
   ========================= */

.text-block p {
    line-height: 1.65;
    opacity: 0.88;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

/* accent line under titles */
.text-block h2::after,
.feature-grid h2::after,
.image-showcase h2::after,
.cta-block h2::after {
    content: "";
    display: block;
    margin-top: 8px;
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--glow-cyan), var(--glow-purple));
}

/* =========================
   FEATURE GRID
   ========================= */

.feature-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* feature item card */
.feature-item {
    padding: 30px;
    background: var(--tile-bg);
    border-radius: 18px;
    backdrop-filter: var(--blur);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);

    transition: all 0.25s ease;
}

/* hover */
.feature-item:hover {
    background: var(--tile-bg-hover);
    box-shadow:
        0 0 15px var(--glow-cyan),
        0 0 15px var(--glow-purple);
    transform: translateY(-3px);
}

.feature-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* =========================
   IMAGE SHOWCASE
   ========================= */

.image-showcase p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 28px;
}

.showcase-grid figure {
    margin: 0;
}

.showcase-grid img {
    width: 100%;
    border-radius: 14px;
    box-shadow:
        0 0 14px rgba(0,0,0,0.5),
        0 0 25px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.showcase-grid img:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 25px var(--glow-cyan),
        0 0 25px var(--glow-purple);
}

.showcase-grid figcaption {
    margin-top: 8px;
    opacity: 0.8;
    font-size: 0.95rem;
    text-align: center;
}

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

.cta-block {
    text-align: center;
    padding: 120px 20px;
}

.cta-block p {
    opacity: 0.88;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.btn.big {
    padding: 18px 45px;
    font-size: 1.25rem;
    border-radius: 18px;
    background: rgba(0, 170, 255, 0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn.big:hover {
    background: rgba(0, 170, 255, 0.55);
}

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

/* phones */
@media (max-width: 600px) {
    section {
        padding: 60px 15px;
    }

    .hero {
        padding: 110px 20px 130px;
    }

    .feature-item {
        padding: 22px;
    }

    .btn {
        padding: 12px 22px;
    }
    
}

/* large screens */
@media (min-width: 1600px) {
    :root { --max-width: 1500px; }
    section { padding: 100px 40px; }
}

/* ============================================================
   CODE BLOCK – Futuristic Glassmorphism Terminal
   ============================================================ */

.code-block h2 {
    margin-bottom: 16px;
}

.code-wrapper {
    position: relative;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 12px rgba(0, 180, 255, 0.25),
        0 0 18px rgba(255, 60, 255, 0.22);
    overflow: auto;
}

.code-wrapper pre {
    margin: 0;
    padding: 0;
    color: #e4e4e4;
    font-size: 0.95rem;
    font-family: "JetBrains Mono", "FiraCode", monospace;
    line-height: 1.5;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,180,255,0.22);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0,180,255,0.45);
    box-shadow:
        0 0 10px rgba(0,180,255,0.8),
        0 0 10px rgba(255,60,255,0.6);
}

/* ============================================================
   REFINEMENT PASS – Spacing, Rhythm, Flow
   ============================================================ */

/* Einheitliches Spacing-System */
:root {
    --space-xxl: 140px;
    --space-xl: 110px;
    --space-lg: 80px;
    --space-md: 50px;
    --space-sm: 28px;
}

/* Abstand zwischen Sections verbessern */
section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

/* Abstand zwischen aufeinander folgenden Sections */
section + section {
    margin-top: var(--space-md);
}

/* Hero etwas geschmeidiger machen */
.hero {
    padding-top: 160px;
    padding-bottom: 180px;
}

/* Hero Buttons weiter vom Text separieren */
.hero-buttons {
    margin-top: 40px;
}

/* Text-Block Typografie ruhiger setzen */
.text-block p {
    margin-bottom: 22px;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Feature Grid – mehr Air */
.feature-grid {
    margin-top: var(--space-md);
}

.feature-grid .grid {
    gap: 38px;
}

/* Feature Cards: etwas größer, edler */
.feature-item {
    padding: 36px;
}

/* Image Showcase mehr Abstand */
.image-showcase p {
    margin-bottom: 32px;
}

.showcase-grid {
    gap: 34px;
}

/* CTA Block mehr Fokus */
.cta-block {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
}

/* Code Block vertikaler Abstand */
.code-block {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Code Box selbst: mehr Innenabstand */
.code-wrapper {
    padding: 28px;
}

/* COPY-Button etwas eleganter abgerückt */
.copy-btn {
    top: 16px;
    right: 16px;
}

/* Tablet optimierung */
@media (max-width: 900px) {
    section {
        padding: var(--space-lg) 18px;
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 150px;
    }

    .feature-item {
        padding: 26px;
    }

    .code-wrapper {
        padding: 22px;
    }
}

/* Mobile Verfeinerung */
@media (max-width: 600px) {
    section {
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
    }

    section + section {
        margin-top: var(--space-md);
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 120px;
    }
    
    /* 🚀 Buttons auf Mobile stark vergrößern */
    .btn {
        font-size: 1.7rem;
        padding: 18px 32px; /* optional, für größere Touchflächen */
        border-radius: 18px;
    }
}

/* ============================================
   RESPONSIVE VIDEO EMBED – Futuristic Glass
   ============================================ */

.video-embed {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 0; /* oben nah dran, unten ruhig */
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 responsive ratio */
    border-radius: 18px;
    overflow: hidden;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 0 18px rgba(0,180,255,0.4),
        0 0 28px rgba(255, 60, 255, 0.35);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Tuning */
@media (max-width: 600px) {
    .video-embed {
        padding: 20px 10px 0;
    }
}

