/* ============================================================
   THE VIBEATHON — SH_2026
   styles.css
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --bg-dark:         #091F38;
    --brand-blue:      #275FA9;
    --tech-teal:       #72FFD6;
    --secondary-blue:  #357ABC;
    --white:           #FFFFFF;
    --terminal-bg:     rgba(5, 15, 30, 0.92);
    --card-bg:         rgba(9, 31, 56, 0.75);
    --border-subtle:   rgba(39, 95, 169, 0.2);
    --border-teal:     rgba(114, 255, 214, 0.3);
    --text-body:       rgba(255, 255, 255, 0.82);
    --text-muted:      rgba(255, 255, 255, 0.65);
    --text-dim:        rgba(255, 255, 255, 0.4);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Subtle grid overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(39, 95, 169, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 95, 169, 0.055) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* ============================================================
   PLASMA GLOWS
   ============================================================ */
.plasma-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.plasma-glow--1 {
    top: 5%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(39, 95, 169, 0.15) 0%, transparent 70%);
}

.plasma-glow--2 {
    top: 40%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(114, 255, 214, 0.08) 0%, transparent 70%);
    animation: plasma-pulse 8s ease-in-out infinite alternate;
}

@keyframes plasma-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1;   }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo-badge {
    height: 46px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2.5px;
    color: var(--white);
}

.logo-badge--gsbn {
    border-left: 3px solid var(--brand-blue);
}

.logo-badge--smdg {
    border-left: 3px solid var(--secondary-blue);
}

.partner-logo {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.brand-separator {
    opacity: 0.3;
    font-weight: 300;
    font-size: 22px;
    line-height: 1;
    user-select: none;
}

.tech-tag {
    font-family: 'Share Tech Mono', monospace;
    color: var(--tech-teal);
    font-size: 13px;
    letter-spacing: 2px;
    background: rgba(114, 255, 214, 0.06);
    padding: 6px 14px;
    border-radius: 3px;
    border: 1px solid var(--border-teal);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 110px 0 80px;
    border-top: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

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

.hero-video .video-card {
    aspect-ratio: 9 / 16;
    max-height: 480px;
    width: 100%;
    margin-top: 0;
}

.hero-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--tech-teal);
    letter-spacing: 2px;
    margin-bottom: 22px;
    opacity: 0.75;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-title--accent {
    color: var(--tech-teal);
    display: block;
    font-size: 50px;
    margin-top: 6px;
    text-shadow: 0 0 40px rgba(114, 255, 214, 0.22);
}

.hero-description {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 24px;
    max-width: 540px;
    line-height: 1.85;
}

.hero-code-sample {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    border: 1px solid rgba(114, 255, 214, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-family: 'Share Tech Mono', monospace;
    color: var(--white);
    margin-bottom: 36px;
    max-width: 100%;
}

.hero-code-sample span {
    color: var(--tech-teal);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-code-sample code {
    display: block;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.hero-visual {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-svg {
    width: 100%;
    max-height: 340px;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section {
    padding: 90px 0;
    border-top: 1px solid var(--border-subtle);
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 44px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 14px;
}

h2::before {
    content: '//';
    color: var(--tech-teal);
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    opacity: 0.9;
    flex-shrink: 0;
}

/* ============================================================
   ROOTS SECTION — text + terminal
   ============================================================ */
.roots-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-text p {
    color: var(--text-body);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.9;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* Terminal block */
.terminal-block {
    background: var(--terminal-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    width: 100%;
}

.terminal-header {
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 7px;
}

.terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
}

.terminal-dot--active {
    background: var(--tech-teal);
    box-shadow: 0 0 7px var(--tech-teal);
}

.terminal-filename {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 26px 28px;
    font-size: 13px;
    line-height: 2;
}

.terminal-cmd {
    color: var(--tech-teal);
    font-weight: 600;
}

.terminal-cmd--blue {
    color: #65a4ff;
}

.terminal-out {
    color: rgba(255, 255, 255, 0.62);
}

.terminal-out--dim {
    color: var(--text-dim);
}

.terminal-cursor {
    color: var(--tech-teal);
    animation: cursor-blink 1.1s step-end infinite;
    line-height: 1;
    display: inline-block;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(39, 95, 169, 0.3);
    border-radius: 6px;
    padding: 32px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
    transition: background 0.28s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-teal);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(114, 255, 214, 0.1);
}

.card:hover::before {
    background: linear-gradient(90deg, transparent, var(--tech-teal), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
}

.card-num {
    font-family: 'Share Tech Mono', monospace;
    color: var(--tech-teal);
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
}

.card-num--sm {
    font-size: 12px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    min-height: 56px;
}

.card-quote {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 2px solid rgba(114, 255, 214, 0.25);
    line-height: 1.6;
}

/* Video placeholder */
.video-placeholder {
    background: rgba(5, 15, 30, 0.8);
    border: 1px dashed rgba(114, 255, 214, 0.18);
    border-radius: 4px;
    height: 138px;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: rgba(114, 255, 214, 0.4);
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.video-placeholder:hover {
    border-color: rgba(114, 255, 214, 0.38);
    color: rgba(114, 255, 214, 0.7);
}

.video-icon {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.video-placeholder:hover .video-icon {
    opacity: 0.9;
}

/* Thumbnail Link */
.thumbnail-link {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 26px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 3 / 4;
}

.thumbnail-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.thumbnail-link:focus-visible {
    outline: 2px solid rgba(114, 255, 214, 0.5);
    outline-offset: 2px;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: rgba(5, 15, 30, 0.8);
    border: 1px solid rgba(114, 255, 214, 0.18);
    border-radius: 10px;
}

.card-img {
    width: 100%;
    margin-top: 26px;
    border: 1px dashed rgba(114, 255, 214, 0.18);
    border-radius: 10px;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.video-card {
    position: relative;
    width: 100%;
    margin-top: 26px;
    padding: 0;
    border: 1px dashed rgba(114, 255, 214, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(8, 20, 42, 0.95), rgba(5, 13, 26, 0.9));
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--white);
    overflow: hidden;
}

.video-card:hover,
.video-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(114, 255, 214, 0.36);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    outline: none;
}

.video-card:focus-visible {
    outline: 2px solid rgba(114, 255, 214, 0.5);
}

.video-card__thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-card__thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.08);
}

.video-card__play-icon {
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.video-modal--open {
    opacity: 1;
    visibility: visible;
}

.video-modal__content {
    width: min(960px, 100%);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(9, 18, 34, 0.97);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(114, 255, 214, 0.12);
}

.video-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(8, 15, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.video-modal__close {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.video-modal__close:hover {
    color: var(--white);
}

.video-modal__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* ============================================================
   EXAMPLES LIST
   ============================================================ */
.example-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    background: rgba(9, 31, 56, 0.5);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.list-item:first-child {
    border-radius: 6px 6px 0 0;
}

.list-item:last-child {
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0 0 6px 6px;
}

.list-item:hover {
    background: rgba(39, 95, 169, 0.1);
    border-color: rgba(114, 255, 214, 0.18);
}

.list-item-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--white);
}

.list-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
    background-color: var(--tech-teal);
    color: var(--bg-dark);
    padding: 17px 40px;
    box-shadow: 0 4px 24px rgba(114, 255, 214, 0.2);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(114, 255, 214, 0.48), 0 4px 20px rgba(114, 255, 214, 0.28);
}

.btn--outline {
    color: var(--tech-teal);
    border: 1px solid var(--border-teal);
    padding: 10px 18px;
    font-size: 12px;
}

.btn--outline:hover {
    background-color: var(--tech-teal);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(114, 255, 214, 0.3);
}

/* ============================================================
   GUARANTEE BOX
   ============================================================ */
.guarantee-box {
    background: linear-gradient(90deg, rgba(114, 255, 214, 0.04) 0%, transparent 100%);
    border-left: 4px solid var(--tech-teal);
    padding: 32px 40px;
    border-radius: 0 8px 8px 0;
    margin-top: 50px;
}

.guarantee-label {
    font-family: 'Share Tech Mono', monospace;
    color: var(--tech-teal);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.guarantee-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.85;
    max-width: 840px;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.section-cta {
    border-bottom: none;
    padding-bottom: 120px;
}

.cta-block {
    background: linear-gradient(135deg, rgba(9, 31, 56, 0.95) 0%, rgba(39, 95, 169, 0.32) 100%);
    border: 1px solid var(--border-teal);
    border-radius: 8px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(114, 255, 214, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    color: var(--white);
    font-size: 26px;
    display: inline-flex;
    margin-bottom: 20px;
}

/* Override h2::before for the CTA heading */
.cta-title::before {
    display: none;
}

.cta-desc {
    max-width: 540px;
    margin: 0 auto 48px;
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.85;
}

.cta-watermark {
    position: absolute;
    bottom: 16px;
    right: 22px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 2.5px;
    user-select: none;
}

/* ============================================================
   RESPONSIVE — 900px breakpoint
   ============================================================ */
@media (max-width: 900px) {
    .hero-layout,
    .roots-layout,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-video {
        order: -1;
    }

    .hero-video .video-card {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title--accent {
        font-size: 38px;
    }

    .hero-visual {
        height: 260px;
        order: -1;
    }

    h2 {
        font-size: 22px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .cta-block {
        padding: 60px 28px;
    }

    .cta-title {
        font-size: 22px;
    }

    section {
        padding: 70px 0;
    }

    .grid-2 {
        gap: 40px;
    }

    .guarantee-box {
        padding: 26px 28px;
    }
}

/* ============================================================
   RESPONSIVE — 600px breakpoint
   ============================================================ */
@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-title--accent {
        font-size: 30px;
    }

    h2 {
        font-size: 18px;
        gap: 10px;
    }

    h2::before {
        font-size: 16px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .cta-block {
        padding: 50px 20px;
    }

    .cta-title {
        font-size: 19px;
    }

    .brand-partnership {
        gap: 14px;
    }

    .logo-badge {
        font-size: 13px;
        letter-spacing: 2px;
    }
}
