/* ========== Main Stylesheet ========== */

/* ========== CSS Variables ========== */
:root {
    --bg: #0b1220;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --line: #1f2937;
    --accent: #38bdf8;
    --btn: #0ea5e9;
    --btnink: #fff;
    --panel: #fff;
    --panelink: #0f172a;
    --shadow: 0 30px 80px rgba(0, 0, 0, .35);
    --radius: 18px;
    --header-h: 86px;
    
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 968px;
    --breakpoint-large: 1200px;
}

/* ========== Reset Styles ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

body {
    font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== Container ========== */
.container {
    max-width: 1588px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ========== Common Button Styles ========== */
.btn {
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--btn);
    color: #fff;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    font-size: 14px;
}

.btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
}

.btn.secondary {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========== Common Card Styles ========== */
.card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 24px;
}

/* ========== Common Section Styles ========== */
.section {
    padding: 70px 0;
}

/* ========== Grid Utilities ========== */
.grid {
    display: grid;
    gap: 16px;
}

/* ========== Header / Navbar Styles ========== */
.header {
    position: fixed;
    inset: auto 0 0 0;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(11, 18, 32, .95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    z-index: 41;
}

.brand i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(56, 189, 248, .15);
}

.brand svg {
    width: 22px;
    height: 22px;
    display: block;
}

.brand img {
    max-width: 270px;
    height: auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 41;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--ink);
    background: rgba(255, 255, 255, .08);
}

.cta {
    margin-left: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--btn);
    color: var(--btnink);
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* ========== Header Responsive ========== */
@media (max-width: 968px) {
    .header {
        height: 70px;
    }

    :root {
        --header-h: 70px;
    }

    .brand img {
        max-width: 200px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(11, 18, 32, .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        padding: 14px 16px;
        text-align: center;
        border-radius: 10px;
    }

    .nav .cta {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .brand img {
        max-width: 150px;
    }

    .header .container {
        padding: 0 12px;
    }
}

/* ========== Page Hero (Common) ========== */
.page-hero {
    margin-top: var(--header-h);
    background: linear-gradient(135deg, rgba(56, 189, 248, .1) 0%, rgba(14, 165, 233, .05) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Hero Utility Classes */
.hero-large {
    padding: 100px 0;
}

.hero-title-large {
    font-size: clamp(3rem, 6vw, 4.5rem);
}

.hero-content-large {
    max-width: 900px;
}

@media (max-width: 968px) {
    .hero-large {
        padding: 80px 0;
    }
    
    .hero-title-large {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
}

@media (max-width: 768px) {
    .hero-large {
        padding: 70px 0;
    }
    
    .hero-title-large {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .hero-large {
        padding: 60px 0;
    }
    
    .hero-title-large {
        font-size: clamp(2rem, 9vw, 3rem);
    }
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(56,189,248,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, .1);
    border: 1px solid rgba(56, 189, 248, .2);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Footer Styles ========== */
.footer {
    background: rgba(11, 18, 32, .95);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.foot-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footbrand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.footlinks {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footlinks a {
    color: var(--muted);
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footlinks a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .08);
}

.footcopy {
    color: #94a3b8;
    font-size: 14px;
    margin-left: 6px;
}

.foot-contact {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.foot-contact span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ========== Footer Responsive ========== */
@media (max-width: 968px) {
    .footer {
        padding: 30px 0;
    }

    .footwrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .foot-left {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .footlinks {
        justify-content: center;
    }

    .foot-contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .foot-contact span {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 24px 0;
    }

    .footwrap {
        gap: 16px;
    }

    .foot-left {
        gap: 12px;
    }

    .footbrand {
        font-size: 14px;
    }

    .footlinks {
        gap: 8px;
    }

    .footlinks a {
        font-size: 13px;
        padding: 5px 8px;
    }

    .foot-contact {
        font-size: 13px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0;
    }

    .footwrap {
        gap: 14px;
    }

    .foot-left {
        gap: 10px;
    }

    .footbrand {
        font-size: 12px;
    }

    .footlinks {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footlinks a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .foot-contact {
        font-size: 12px;
        gap: 6px;
    }

    .foot-contact span {
        font-size: 11px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}
