/* =========================================================
   SPEEDYWAY.NET
   Simple Modern Hosting Landing Page
   Matches:
   - index.php (new simplified rebuild)
   - assets/js/script.js (new simplified rebuild)
========================================================= */

/* ==============================
   ROOT / RESET
============================== */
:root{
    --bg: #f5f7fb;
    --bg-alt: #eef3f9;
    --surface: #ffffff;
    --surface-2: #f9fbff;

    --text: #111827;
    --muted: #5f6b7a;
    --line: #dbe4f0;

    --primary: #0f62fe;
    --primary-dark: #0a4fd0;
    --primary-soft: rgba(15, 98, 254, 0.10);

    --accent: #00b8a9;
    --accent-soft: rgba(0, 184, 169, 0.10);

    --success: #16a34a;
    --danger: #ef4444;

    --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 18px 50px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 24px 80px rgba(16, 24, 40, 0.14);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --container: 1180px;
    --header-height: 84px;

    --transition: 0.28s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter', sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.65;
    overflow-x:hidden;
}

body.menu-open{
    overflow:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input{
    font:inherit;
}

button{
    border:none;
    background:none;
    cursor:pointer;
}

ul{
    list-style:none;
}

/* ==============================
   LAYOUT
============================== */
.container{
    width:min(100% - 32px, var(--container));
    margin-inline:auto;
}

.section{
    padding:96px 0;
}

.section-alt{
    background:var(--bg-alt);
}

.section-heading{
    max-width:760px;
    margin-bottom:42px;
}

.section-heading.centered{
    text-align:center;
    margin-inline:auto;
    margin-bottom:48px;
}

.section-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:var(--primary-soft);
    color:var(--primary);
    font-size:0.85rem;
    font-weight:700;
    margin-bottom:16px;
}

.section-heading h2{
    font-size:clamp(2rem, 4vw, 3rem);
    line-height:1.15;
    letter-spacing:-0.02em;
    margin-bottom:16px;
}

.section-heading p{
    color:var(--muted);
    font-size:1.04rem;
}

/* ==============================
   BUTTONS
============================== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:0 22px;
    border-radius:999px;
    font-weight:700;
    transition:var(--transition);
    border:1px solid transparent;
    white-space:nowrap;
}

.btn:hover{
    transform:translateY(-2px);
}

.btn-primary{
    background:var(--primary);
    color:#fff;
    box-shadow:0 14px 30px rgba(15,98,254,0.22);
}

.btn-primary:hover{
    background:var(--primary-dark);
}

.btn-outline{
    background:#fff;
    color:var(--text);
    border-color:var(--line);
}

.btn-outline:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.btn-full{
    width:100%;
}

/* ==============================
   HEADER
============================== */
.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(245,247,251,0.82);
    backdrop-filter:blur(16px);
    border-bottom:1px solid transparent;
    transition:var(--transition);
}

.site-header.scrolled{
    box-shadow:var(--shadow-sm);
    border-bottom-color:rgba(219,228,240,0.8);
}

.header-inner{
    min-height:var(--header-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

.brand-logo{
    width:44px;
    height:44px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg, var(--primary), #4c8dff);
    color:#fff;
    font-weight:800;
    box-shadow:0 14px 30px rgba(15,98,254,0.22);
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.brand-text strong{
    font-size:1rem;
    letter-spacing:-0.01em;
}

.brand-text span{
    color:var(--muted);
    font-size:0.84rem;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:28px;
    margin-left:auto;
}

.nav-link{
    position:relative;
    color:var(--muted);
    font-weight:600;
    transition:var(--transition);
}

.nav-link:hover,
.nav-link.active{
    color:var(--text);
}

.nav-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:var(--primary);
    border-radius:999px;
    transition:var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after{
    width:100%;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:14px;
    position:relative;
}

.desktop-cta{
    display:inline-flex;
}

/* ==============================
   LOGIN DROPDOWN
============================== */
.login-wrap{
    position:relative;
}

.login-toggle{
    min-height:44px;
    padding:0 16px;
    border-radius:999px;
    border:1px solid var(--line);
    background:#fff;
    font-weight:700;
    color:var(--text);
    transition:var(--transition);
}

.login-toggle:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.login-dropdown{
    position:absolute;
    top:calc(100% + 14px);
    right:0;
    width:340px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow-md);
    padding:22px;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:var(--transition);
}

.login-dropdown.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.login-dropdown h4{
    font-size:1.15rem;
    margin-bottom:8px;
}

.login-dropdown p{
    color:var(--muted);
    font-size:0.95rem;
    margin-bottom:18px;
}

.login-form{
    display:grid;
    gap:14px;
}

.form-group{
    display:grid;
    gap:8px;
}

.form-group label{
    font-size:0.92rem;
    font-weight:600;
}

.form-group input{
    width:100%;
    min-height:46px;
    padding:0 14px;
    border-radius:12px;
    border:1px solid var(--line);
    background:#fff;
    outline:none;
    transition:var(--transition);
}

.form-group input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(15,98,254,0.10);
}

.login-links{
    margin-top:14px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.login-links a{
    color:var(--primary);
    font-size:0.94rem;
    font-weight:600;
}

/* ==============================
   MOBILE MENU BUTTON
============================== */
.mobile-menu-toggle{
    width:46px;
    height:46px;
    border-radius:14px;
    border:1px solid var(--line);
    background:#fff;
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    padding:0 12px;
}

.mobile-menu-toggle span{
    display:block;
    height:2px;
    width:100%;
    background:var(--text);
    border-radius:999px;
    transition:var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2){
    opacity:0;
}

.mobile-menu-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

/* ==============================
   HERO
============================== */
.hero-section{
    padding:84px 0 72px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.08fr 0.92fr;
    align-items:center;
    gap:48px;
}

.hero-copy h1{
    font-size:clamp(2.4rem, 5vw, 4.5rem);
    line-height:1.03;
    letter-spacing:-0.03em;
    margin-bottom:18px;
    max-width:12ch;
}

.hero-copy p{
    max-width:60ch;
    color:var(--muted);
    font-size:1.05rem;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:28px;
}

.hero-stats{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:16px;
    margin-top:34px;
}

.hero-stat{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px 18px;
    box-shadow:var(--shadow-sm);
}

.hero-stat strong{
    display:block;
    font-size:1.2rem;
    margin-bottom:4px;
}

.hero-stat span{
    color:var(--muted);
    font-size:0.95rem;
}

.hero-visual{
    position:relative;
}

/* ==============================
   IMAGE PLACEHOLDER / IMAGE CARD
============================== */
.image-card{
    position:relative;
    min-height:380px;
    border-radius:26px;
    overflow:hidden;
    background:linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
    border:1px solid var(--line);
    box-shadow:var(--shadow-md);
}

.image-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    position:absolute;
    inset:0;
    z-index:2;
}

.image-placeholder{
    position:absolute;
    inset:0;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:10px;
    padding:24px;
    color:var(--muted);
    background:
        linear-gradient(135deg, rgba(15,98,254,0.06), rgba(0,184,169,0.08));
}

.image-placeholder span{
    font-size:1rem;
    font-weight:800;
    color:var(--text);
    letter-spacing:0.04em;
}

.image-placeholder small{
    font-size:0.92rem;
}

.image-card.empty-image{
    border-style:dashed;
}

/* ==============================
   TRUST BAR
============================== */
.trust-bar{
    padding:0 0 26px;
}

.trust-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:18px;
}

.trust-item{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px 20px;
    text-align:center;
    font-weight:700;
    color:var(--muted);
    box-shadow:var(--shadow-sm);
}

/* ==============================
   GENERIC GRIDS / CARDS
============================== */
.card-grid{
    display:grid;
    gap:24px;
}

.three-col{
    grid-template-columns:repeat(3, minmax(0,1fr));
}

.two-col{
    grid-template-columns:repeat(2, minmax(0,1fr));
}

.info-card,
.feature-box,
.pricing-card,
.why-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:28px;
    box-shadow:var(--shadow-sm);
    transition:var(--transition);
}

.info-card:hover,
.feature-box:hover,
.pricing-card:hover,
.why-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-md);
}

.info-card.featured,
.pricing-card.featured{
    border-color:rgba(15,98,254,0.28);
    box-shadow:0 20px 55px rgba(15,98,254,0.14);
}

.card-badge{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    background:#f2f6fb;
    color:var(--muted);
    font-size:0.84rem;
    font-weight:700;
    margin-bottom:18px;
}

.badge-primary{
    background:var(--primary-soft);
    color:var(--primary);
}

.info-card h3,
.feature-box h3,
.pricing-card h3,
.why-card h3{
    font-size:1.35rem;
    margin-bottom:12px;
    letter-spacing:-0.02em;
}

.info-card p,
.feature-box p,
.pricing-card p,
.why-card p{
    color:var(--muted);
}

/* ==============================
   FEATURE LIST
============================== */
.feature-list{
    display:grid;
    gap:12px;
    margin-top:22px;
}

.feature-list li{
    position:relative;
    padding-left:28px;
    color:var(--text);
}

.feature-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:10px;
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 0 6px var(--accent-soft);
}

/* ==============================
   FEATURES SECTION
============================== */
.feature-box{
    text-align:left;
}

.feature-icon{
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:var(--primary-soft);
    font-size:1.35rem;
    margin-bottom:18px;
}

/* ==============================
   SPLIT SECTION
============================== */
.split-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.split-copy p{
    color:var(--muted);
    margin-bottom:10px;
}

/* ==============================
   PRICING
============================== */
.pricing-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:24px;
}

.price-row{
    display:flex;
    align-items:flex-end;
    gap:6px;
    margin:16px 0 12px;
}

.price{
    font-size:2.5rem;
    line-height:1;
    font-weight:800;
    letter-spacing:-0.03em;
}

.price-term{
    color:var(--muted);
    font-weight:600;
    margin-bottom:4px;
}

.pricing-card .btn{
    margin-top:24px;
}

/* ==============================
   WHY SPEEDYWAY
============================== */
.why-card{
    min-height:180px;
}

/* ==============================
   FAQ
============================== */
.faq-list{
    max-width:920px;
    margin:0 auto;
    display:grid;
    gap:16px;
}

.faq-item{
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:var(--transition);
}

.faq-item.open{
    box-shadow:var(--shadow-md);
}

.faq-question{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    text-align:left;
    padding:22px 24px;
    font-weight:700;
    color:var(--text);
}

.faq-symbol{
    font-size:1.35rem;
    line-height:1;
    transition:var(--transition);
    color:var(--primary);
}

.faq-item.open .faq-symbol{
    transform:rotate(45deg);
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.35s ease, padding 0.35s ease;
    padding:0 24px;
}

.faq-item.open .faq-answer{
    max-height:220px;
    padding:0 24px 22px;
}

.faq-answer p{
    color:var(--muted);
}

/* ==============================
   CONTACT
============================== */
.contact-box{
    background:linear-gradient(135deg, #0f62fe 0%, #1657d8 100%);
    color:#fff;
    border-radius:28px;
    padding:42px;
    display:grid;
    grid-template-columns:1.2fr auto;
    gap:28px;
    align-items:center;
    box-shadow:var(--shadow-lg);
}

.contact-copy .section-kicker{
    background:rgba(255,255,255,0.14);
    color:#fff;
}

.contact-copy h2{
    font-size:clamp(2rem, 4vw, 2.8rem);
    line-height:1.12;
    margin-bottom:16px;
}

.contact-copy p{
    color:rgba(255,255,255,0.88);
    max-width:58ch;
}

.contact-list{
    display:grid;
    gap:10px;
    margin-top:22px;
    color:rgba(255,255,255,0.92);
}

.contact-buttons{
    display:flex;
    flex-direction:column;
    gap:14px;
    min-width:220px;
}

.contact-box .btn-outline{
    background:rgba(255,255,255,0.08);
    border-color:rgba(255,255,255,0.22);
    color:#fff;
}

.contact-box .btn-outline:hover{
    background:#fff;
    color:var(--primary);
}

/* ==============================
   FOOTER
============================== */
.site-footer{
    background:#0b1220;
    color:#d6deea;
    padding:70px 0 26px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr repeat(3, 1fr);
    gap:28px;
}

.footer-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    color:#fff;
}

.footer-brand p{
    max-width:40ch;
    color:#98a6b9;
}

.footer-column h4{
    color:#fff;
    margin-bottom:16px;
    font-size:1rem;
}

.footer-column ul{
    display:grid;
    gap:10px;
}

.footer-column a{
    color:#aeb9c9;
    transition:var(--transition);
}

.footer-column a:hover{
    color:#fff;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.08);
    margin-top:34px;
    padding-top:22px;
    text-align:center;
    color:#98a6b9;
    font-size:0.95rem;
}

/* ==============================
   BACK TO TOP
============================== */
.back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    width:52px;
    height:52px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--primary);
    color:#fff;
    font-size:1.2rem;
    box-shadow:var(--shadow-md);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:var(--transition);
    z-index:1200;
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.back-to-top:hover{
    background:var(--primary-dark);
}

/* ==============================
   REVEAL ANIMATION
============================== */
.reveal{
    opacity:0;
    transform:translateY(28px);
    transition:opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1100px){
    .hero-grid,
    .split-grid{
        grid-template-columns:1fr;
    }

    .hero-copy h1{
        max-width:14ch;
    }

    .contact-box{
        grid-template-columns:1fr;
    }

    .contact-buttons{
        flex-direction:row;
        flex-wrap:wrap;
        min-width:0;
    }
}

@media (max-width: 992px){
    .desktop-cta{
        display:none;
    }

    .mobile-menu-toggle{
        display:flex;
    }

    .nav-menu{
        position:absolute;
        top:calc(100% + 14px);
        left:16px;
        right:16px;
        background:#fff;
        border:1px solid var(--line);
        border-radius:22px;
        box-shadow:var(--shadow-md);
        padding:18px;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
        opacity:0;
        visibility:hidden;
        transform:translateY(10px);
        pointer-events:none;
    }

    .nav-menu.open{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
        pointer-events:auto;
    }

    .three-col,
    .pricing-grid,
    .trust-grid{
        grid-template-columns:1fr 1fr;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 768px){
    .section{
        padding:78px 0;
    }

    .hero-section{
        padding:56px 0 48px;
    }

    .hero-stats{
        grid-template-columns:1fr;
    }

    .three-col,
    .two-col,
    .pricing-grid,
    .trust-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .header-inner{
        gap:14px;
    }

    .brand-text span{
        display:none;
    }

    .login-dropdown{
        width:min(92vw, 340px);
        right:-6px;
    }

    .contact-box{
        padding:30px 24px;
    }

    .contact-buttons{
        flex-direction:column;
    }

    .back-to-top{
        right:16px;
        bottom:16px;
    }
}

@media (max-width: 560px){
    .container{
        width:min(100% - 20px, var(--container));
    }

    .site-header{
        background:rgba(245,247,251,0.94);
    }

    .header-actions{
        gap:10px;
    }

    .login-toggle{
        min-height:42px;
        padding:0 14px;
    }

    .hero-copy h1{
        font-size:2.15rem;
    }

    .info-card,
    .feature-box,
    .pricing-card,
    .why-card{
        padding:22px;
    }

    .faq-question{
        padding:18px 18px;
    }

    .faq-item.open .faq-answer{
        padding:0 18px 18px;
    }

    .faq-answer{
        padding:0 18px;
    }
}