/* ==========================================================
   EventWings — Homepage CSS
   File: assets/css/public/home.css
   Scope: app/Views/public/index.php only
   Theme: Dark — matches eventwings.com design language
========================================================== */

/* ---- TOKENS ---- */
:root {
    --hw-bg:         #0b1220;
    --hw-surface:    rgba(255,255,255,0.055);
    --hw-surface-2:  rgba(17,28,50,0.92);
    --hw-border:     rgba(255,255,255,0.08);
    --hw-border-2:   rgba(255,255,255,0.13);
    --hw-text:       #e6eef8;
    --hw-muted:      rgba(230,238,248,0.62);
    --hw-accent:     #7c3aed;
    --hw-accent-lt:  #a78bfa;
    --hw-accent-bg:  rgba(109,40,217,0.12);
    --hw-accent-bdr: rgba(109,40,217,0.26);
}

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after { box-sizing: border-box; }

body.hw-page {
    margin: 0;
    background: radial-gradient(circle at center top, #122040 0%, #0b1220 60%);
    background-attachment: fixed;
    color: var(--hw-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.hw-page a { color: var(--hw-accent-lt); text-decoration: none; }
body.hw-page a:hover { text-decoration: underline; }

/* ==============================
   HEADER
============================== */
.hw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,18,32,0.88);
    border-bottom: 1px solid var(--hw-border);
    backdrop-filter: blur(14px);
}

.hw-nav {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hw-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hw-brand img {
    width: 32px;
    height: 32px;
}

.hw-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.hw-brand-tagline {
    font-size: 11px;
    color: var(--hw-muted);
}

.hw-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hw-nav-links a {
    font-size: 14px;
    color: rgba(230,238,248,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.hw-nav-links a:hover { color: #fff; text-decoration: none; }

.hw-nav-login {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hw-login-btn {
    padding: 8px 18px;
    background: var(--hw-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hw-login-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* Mobile hamburger */
.hw-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--hw-text);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
}

/* Mobile menu */
.hw-mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(9,15,28,0.98);
    border-top: 1px solid var(--hw-border);
    padding: 16px 24px;
    gap: 14px;
}

.hw-mobile-menu.open { display: flex; }

.hw-mobile-menu a {
    font-size: 15px;
    color: rgba(230,238,248,0.8);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--hw-border);
}

.hw-mobile-menu a:last-child { border-bottom: none; }

.hw-mobile-menu .hw-login-btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

/* ==============================
   HERO
============================== */
.hw-hero {
    padding: 60px 24px 48px;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hw-badge {
    display: inline-block;
    background: var(--hw-accent-bg);
    color: var(--hw-accent-lt);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    border: 1px solid var(--hw-accent-bdr);
    letter-spacing: 0.3px;
}

.hw-hero h1 {
    font-size: clamp(24px,4.5vw,42px);
    line-height: 1.22;
    font-weight: 800;
    margin: 0 0 18px;
    color: #fff;
}

.hw-hero h1 em {
    font-style: normal;
    color: var(--hw-accent-lt);
}

.hw-hero-sub {
    font-size: 15px;
    line-height: 1.78;
    color: var(--hw-muted);
    max-width: 600px;
    margin: 0 auto 38px;
}

/* ==============================
   LOGIN CARD
============================== */
.hw-login-card {
    background: var(--hw-surface-2);
    border: 1px solid var(--hw-border-2);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 420px;
    margin: 0 auto 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.hw-login-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.hw-login-card > p {
    font-size: 14px;
    color: var(--hw-muted);
    margin: 0 0 24px;
}

/* Buttons */
.hw-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--hw-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
    text-decoration: none;
}

.hw-btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109,40,217,0.4);
    text-decoration: none;
    color: #fff;
}

.hw-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--hw-surface);
    color: rgba(230,238,248,0.82);
    border: 1px solid var(--hw-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    text-decoration: none;
}

.hw-btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
    text-decoration: none;
    color: rgba(230,238,248,0.82);
}

.hw-divider-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: rgba(230,238,248,0.25);
    font-size: 12px;
}

.hw-divider-or::before,
.hw-divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hw-border);
}

.hw-signup-note {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(230,238,248,0.45);
    text-align: center;
}

.hw-signup-note a {
    color: var(--hw-accent-lt);
    font-weight: 600;
}

/* Hero trust line */
.hw-hero-trust {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(230,238,248,0.38);
    text-align: center;
}

/* ==============================
   HIGHLIGHT PILLS
============================== */
.hw-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 64px;
    padding: 0 8px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hw-pill {
    background: var(--hw-surface);
    border: 1px solid var(--hw-border);
    border-radius: 999px;
    padding: 6px 15px;
    font-size: 13px;
    color: rgba(230,238,248,0.72);
    white-space: nowrap;
}

/* ==============================
   SECTIONS
============================== */
.hw-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.hw-section-title {
    font-size: clamp(20px,3vw,27px);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 12px;
}

.hw-section-sub {
    font-size: 15px;
    line-height: 1.78;
    color: var(--hw-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px;
}

/* ==============================
   CARD GRID
============================== */
.hw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 18px;
}

.hw-card {
    background: var(--hw-surface);
    border: 1px solid var(--hw-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.25s, border-color 0.25s;
}

.hw-card:hover {
    transform: translateY(-4px);
    border-color: var(--hw-accent-bdr);
}

/* Icon + heading in one row */
.hw-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hw-card-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.hw-card h3 { font-size: 14px; font-weight: 700; color: #fff; margin: 0; }

.hw-card p { font-size: 13px; line-height: 1.68; color: var(--hw-muted); margin: 0; }

.hw-card a { color: var(--hw-accent-lt); }

/* ==============================
   STEPS
============================== */
.hw-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 18px;
}

.hw-step {
    background: var(--hw-surface);
    border: 1px solid var(--hw-border);
    border-radius: 16px;
    padding: 24px;
}

/* Fix 2: number + heading in one row */
.hw-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hw-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--hw-accent-bg);
    color: var(--hw-accent-lt);
    font-size: 14px; font-weight: 800;
    flex-shrink: 0;
    border: 1px solid var(--hw-accent-bdr);
}

.hw-step h3 { font-size: 14px; font-weight: 700; color: #fff; margin: 0; }
.hw-step p  { font-size: 13px; line-height: 1.68; color: var(--hw-muted); margin: 0; }

/* ==============================
   FAQ
============================== */
.hw-faq { max-width: 720px; margin: 0 auto; }

.hw-faq-item {
    border-bottom: 1px solid var(--hw-border);
    padding: 20px 0;
    text-align: left;
}

.hw-faq-item:last-child { border-bottom: none; }
.hw-faq-item h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.hw-faq-item p  { font-size: 13px; line-height: 1.68; color: var(--hw-muted); margin: 0; }

/* ==============================
   DIVIDER
============================== */
.hw-hr {
    border: none;
    border-top: 1px solid var(--hw-border);
    max-width: 980px;
    margin: 0 auto 64px;
}

/* ==============================
   BOTTOM CTA
============================== */
.hw-cta-band {
    background: var(--hw-accent-bg);
    border: 1px solid var(--hw-accent-bdr);
    border-radius: 20px;
    padding: 52px 32px;
    text-align: center;
    max-width: 980px;
    margin: 0 24px 64px;
}

@media (min-width: 1028px) { .hw-cta-band { margin: 0 auto 64px; } }

.hw-cta-band h2 { font-size: clamp(20px,3vw,28px); font-weight: 800; color: #fff; margin: 0 0 10px; }
.hw-cta-band p  { font-size: 15px; color: var(--hw-muted); margin: 0 0 30px; }

.hw-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hw-cta-actions .hw-btn-primary,
.hw-cta-actions .hw-btn-secondary {
    width: auto;
    padding: 14px 30px;
}

/* ==============================
   FOOTER — Premium
============================== */
.hw-footer {
    background: #070c16;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

/* Subtle top accent line */
.hw-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--hw-accent-lt), transparent);
    opacity: 0.5;
}

.hw-footer-grid {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Brand column */
.hw-footer-brand .hw-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none;
}

.hw-footer-brand .hw-footer-logo-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--hw-accent-bg);
    border: 1px solid rgba(124,58,237,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.hw-footer-brand strong {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.hw-footer-brand .hw-footer-tagline {
    font-size: 11px;
    color: rgba(230,238,248,0.4);
    letter-spacing: 0.3px;
}

.hw-footer-brand .hw-footer-desc {
    font-size: 13px;
    color: rgba(230,238,248,0.55);
    line-height: 1.68;
    margin: 0 0 16px;
    max-width: 260px;
}

.hw-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(230,238,248,0.6);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s, color 0.2s;
}

.hw-footer-email:hover {
    border-color: rgba(124,58,237,0.3);
    color: var(--hw-accent-lt);
    text-decoration: none;
}

.hw-footer-email i { font-size: 12px; color: var(--hw-accent-lt); }

/* Link columns */
.hw-footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(230,238,248,0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 16px;
}

.hw-footer-col a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(230,238,248,0.62);
    text-decoration: none;
    margin-bottom: 11px;
    transition: color 0.2s, gap 0.2s;
    line-height: 1.4;
}

.hw-footer-col a::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(124,58,237,0.4);
    flex-shrink: 0;
    transition: background 0.2s;
}

.hw-footer-col a:hover {
    color: #fff;
    gap: 8px;
    text-decoration: none;
}

.hw-footer-col a:hover::before { background: var(--hw-accent-lt); }

/* Bottom bar */
.hw-footer-bottom {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: rgba(230,238,248,0.35);
    flex-wrap: wrap;
    gap: 12px;
}

.hw-footer-bottom a {
    color: rgba(230,238,248,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.hw-footer-bottom a:hover { color: var(--hw-accent-lt); }

.hw-footer-social {
    display: flex;
    gap: 8px;
}

.hw-footer-social a {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    color: rgba(230,238,248,0.5);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.hw-footer-social a:hover {
    background: var(--hw-accent-bg);
    border-color: rgba(124,58,237,0.3);
    color: var(--hw-accent-lt);
}

/* ==============================
   MOBILE
============================== */
@media (max-width: 768px) {
    .hw-nav-links { display: none; }
    .hw-hamburger { display: block; }
    .hw-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
    .hw-hero        { padding: 40px 16px 36px; }
    .hw-login-card  { padding: 26px 18px; border-radius: 16px; }
    .hw-grid, .hw-steps { grid-template-columns: 1fr; }
    .hw-section     { padding: 0 16px 48px; }
    .hw-pills       { gap: 8px; }
    .hw-pill        { font-size: 12px; padding: 5px 12px; }
    .hw-cta-band    { padding: 36px 20px; border-radius: 16px; margin: 0 16px 48px; }
    .hw-cta-actions .hw-btn-primary,
    .hw-cta-actions .hw-btn-secondary { width: 100%; }
    .hw-nav-login .hw-login-btn { display: none; }
}

/* Fix 1: Mobile footer — single column, tap-friendly links */
@media (max-width: 768px) {
    .hw-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .hw-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 20px 28px;
    }

    .hw-footer-brand .hw-footer-desc { max-width: 100%; }

    .hw-footer-col a {
        padding: 7px 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        margin-bottom: 0;
        font-size: 14px;
    }

    .hw-footer-col a:last-child { border-bottom: none; }

    .hw-footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 18px 20px 28px;
        gap: 10px;
    }
}