/* ========================================
   UTOx402 — FULL style.css
   Responsive | No Overflow | Premium Design
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Smooth Scroll */
}

body {
    font-family: Monospace;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: 'Orbitron', monospace;
    color: #17f53d;
}

h1 { 
    font-size: 3rem; 
    font-weight: 900; 
    margin-bottom: 0.5rem; 
}

h2 { 
    font-size: 2.2rem; 
    text-align: center; 
    margin: 3rem 0 2rem; 
    position: relative; 
}

h3 { 
    font-size: 1.4rem; 
    margin-bottom: 0.8rem; 
}

h4 { 
    font-size: 1.1rem; 
    margin-top: 0.5rem; 
}

p { 
    color: #ccc; 
}

/* HEADER */
.header {
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #17f53d;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 2px solid #17f53d;
}

/* DESKTOP NAV */
.nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-desktop a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: #17f53d;
}

/* BUTTONS */
.btn-primary {
    background: #17f53d;
    color: #000;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #12cc3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23,245,61,0.3);
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-mobile {
    background: #17f53d;
    color: #000;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* HAMBURGER MENU (TOP-RIGHT) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #17f53d;
    border-radius: 3px;
    transition: 0.3s;
    box-shadow: 0 0 8px rgba(23,245,61,0.4);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* MOBILE MENU OVERLAY */
.mobile-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mobile-overlay.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

/* HERO SECTION */
.hero {
    padding: 5rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #aaa;
}

/* HERO VISUAL */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    max-width: 100%;
    display: block;
}

/* CODE BOX – FULLY RESPONSIVE, NO OVERFLOW */
.code-box {
    background: #111;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    color: #17f53d;
    line-height: 1.6;
    overflow-x: auto;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.code-box pre,
.code-box code {
    margin: 0;
    padding: 0;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    white-space: pre-wrap;
    /*word-break: break-all;*/
    /*overflow-x: anywhere;*/
}

.code-box .btn-primary {
    margin-top: 1.2rem;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
}

/* SECTION STYLES */
.section {
    padding: 4rem 0;
}

.bg-alt {
    background: #111;
}

.section-title {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #17f53d;
    border-radius: 2px;
}

/* GRID LAYOUTS */
.overview-grid,
.features-grid,
.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card,
.feature-item,
.use-item {
    background: #1a1a1a;
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s;
}

.overview-card:hover,
.feature-item:hover {
    border-color: #17f53d;
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(23,245,61,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-circle i {
    font-size: 1.6rem;
    color: #17f53d;
}

/* ARCHITECTURE DIAGRAM */
.arch-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    font-size: 1.1rem;
}

.arch-node {
    background: #17f53d;
    color: #000;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.arch-arrow {
    color: #17f53d;
    font-weight: bold;
}

.arch-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #aaa;
    margin-top: 1rem;
}

/* HOW IT WORKS STEPS */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    font-size: 1.1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: #17f53d;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.step-arrow {
    color: #17f53d;
    font-size: 1.5rem;
    align-self: center;
}

/* TECH TAGS */
.tech-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-tags span {
    background: #17f53d;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ROADMAP */
.roadmap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.road-item {
    background: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 0.95rem;
}

/* SYMBOLISM & LICENSE */
.symbol-license {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.symbol-license h3 {
    color: #17f53d;
    margin-bottom: 0.5rem;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

.footer a {
    color: #17f53d;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-banner {
        border-radius: 10px;
    }

    .code-box {
        font-size: 0.9rem;
        padding: 1.2rem;
    }

    .code-box .btn-primary {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-desktop {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .code-box {
        padding: 1rem;
    }

    .code-box pre,
    .code-box code {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .code-box {
        padding: 1rem;
    }

    .code-box pre,
    .code-box code {
        font-size: 0.78rem;
    }
}