/* =========================================================
   SMS Webhook — Creative Professional Frontend
   Golden Blue Theme
   ========================================================= */

.frontend-body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
    background: var(--gb-body-bg);
    color: var(--gb-text);
    overflow-x: hidden;
}

/* Top accent bar */
.top-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gb-blue), var(--gb-gold), var(--gb-blue));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1060;
}
@keyframes shimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ===================== Navbar ===================== */
.frontend-navbar {
    background: transparent;
    padding: 1.1rem 0;
    transition: all .3s ease;
}
.frontend-navbar.scrolled {
    background: rgba(15, 28, 63, .97);
    backdrop-filter: blur(10px);
    padding: .65rem 0;
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.frontend-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.3rem;
}
.brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--gb-gold), var(--gb-gold-600));
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(245,181,10,.35);
}
.frontend-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    transition: all .15s;
}
.frontend-navbar .nav-link:hover {
    color: var(--gb-gold) !important;
    background: rgba(255,255,255,.06);
}
.frontend-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 1.1rem;
    border-radius: 8px;
    padding: .4rem .65rem;
}
.nav-cta {
    padding: .5rem 1.25rem !important;
    border-radius: 10px;
    font-weight: 600;
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--gb-dark) 0%, var(--gb-blue-600) 60%, var(--gb-blue) 100%);
    color: #fff;
    overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .25;
}
.shape-1 {
    width: 400px; height: 400px;
    background: var(--gb-gold);
    top: -100px; right: -80px;
    animation: float 8s ease-in-out infinite;
}
.shape-2 {
    width: 300px; height: 300px;
    background: var(--gb-blue-400);
    bottom: -50px; left: 10%;
    animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 200px; height: 200px;
    background: var(--gb-gold-500);
    top: 40%; left: 45%;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(245,181,10,.15);
    color: var(--gb-gold);
    border: 1px solid rgba(245,181,10,.35);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -.5px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--gb-gold), var(--gb-gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.65;
}
.hero-actions { margin-bottom: 2.5rem; }
.hero-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,.25);
    color: #fff;
    font-weight: 600;
}
.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
}
.hero-trust {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: rgba(255,255,255,.7);
}
.trust-item i { color: var(--gb-gold); font-size: 1rem; }

/* Hero wave */
.hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ===================== Phone Mockup ===================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.phone-mockup {
    width: 280px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.05);
    position: relative;
    animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-15px) rotate(1deg); }
}
.phone-notch {
    width: 90px; height: 22px;
    background: #1a1a2e;
    border-radius: 0 0 14px 14px;
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.phone-screen {
    background: #f0f2f5;
    border-radius: 26px;
    padding: 2rem 1rem 1rem;
    min-height: 380px;
}
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .72rem;
    color: #333;
    margin-bottom: 1.25rem;
    padding: 0 .25rem;
}
.phone-icons { display: flex; gap: .35rem; }
.phone-sms {
    background: #fff;
    border-radius: 14px;
    padding: .85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 1rem;
}
.phone-sms-sender {
    font-weight: 700;
    color: var(--gb-blue);
    font-size: .82rem;
    margin-bottom: .35rem;
}
.phone-sms-body {
    font-size: .75rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: .35rem;
}
.phone-sms-time {
    font-size: .65rem;
    color: #999;
    text-align: right;
}
.phone-forward {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--gb-blue-500);
    padding: .5rem .75rem;
    background: var(--gb-blue-soft);
    border-radius: 10px;
    margin-bottom: .75rem;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .6; }
}
.phone-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .5rem .75rem;
    border-radius: 10px;
}
.phone-status.success {
    color: var(--gb-success);
    background: var(--gb-success-soft);
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: .6rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gb-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: .5rem;
    z-index: 2;
}
.float-badge-1 {
    top: 15%; right: 5%;
    animation: floatBadge 4s ease-in-out infinite;
}
.float-badge-1 i { color: var(--gb-blue); }
.float-badge-2 {
    bottom: 15%; left: 0;
    animation: floatBadge 5s ease-in-out infinite .5s;
}
.float-badge-2 i { color: var(--gb-success); }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ===================== Stats Bar ===================== */
.stats-bar {
    padding: 3rem 0;
    background: #f4f6fb;
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gb-blue), var(--gb-gold-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    color: var(--gb-muted);
    font-size: .9rem;
    font-weight: 500;
    margin-top: .35rem;
}

/* ===================== Section Headers ===================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.section-eyebrow {
    display: inline-block;
    background: var(--gb-blue-soft);
    color: var(--gb-blue);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-bottom: .85rem;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--gb-dark);
    margin-bottom: .75rem;
    letter-spacing: -.3px;
}
.section-subtitle {
    color: var(--gb-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ===================== Features ===================== */
.features { padding: 5rem 0; background: #fff; }
.feature-card {
    background: #fff;
    border: 1px solid var(--gb-border);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: var(--gb-shadow);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gb-blue), var(--gb-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gb-shadow-lg);
    border-color: var(--gb-blue-400);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform .25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.icon-blue   { background: var(--gb-blue-soft);   color: var(--gb-blue); }
.icon-gold   { background: var(--gb-gold-soft);   color: var(--gb-gold-600); }
.icon-green  { background: var(--gb-success-soft); color: var(--gb-success); }
.icon-purple { background: #f0e6ff; color: #7c3aed; }
.icon-red    { background: var(--gb-danger-soft);  color: var(--gb-danger); }
.icon-teal   { background: #e0f7f7; color: #0d9488; }
.feature-card h5 {
    color: var(--gb-dark);
    font-weight: 700;
    margin-bottom: .65rem;
    font-size: 1.15rem;
}
.feature-card p {
    color: var(--gb-muted);
    margin: 0;
    font-size: .92rem;
    line-height: 1.6;
}

/* ===================== How It Works ===================== */
.how { padding: 5rem 0; background: var(--gb-body-bg); }
.how-timeline { position: relative; }
.timeline-line {
    position: absolute;
    top: 50px; left: 10%; right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--gb-blue), var(--gb-gold), var(--gb-blue));
    border-radius: 3px;
    opacity: .2;
}
.step-card {
    background: #fff;
    border: 1px solid var(--gb-border);
    border-radius: 18px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--gb-shadow);
    position: relative;
    transition: all .25s ease;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gb-shadow-lg);
}
.step-num {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gb-gold), var(--gb-gold-600));
    color: #1a1a1a;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(245,181,10,.4);
    z-index: 2;
}
.step-icon {
    width: 70px; height: 70px;
    background: var(--gb-blue-soft);
    color: var(--gb-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem;
    transition: transform .25s ease;
}
.step-card:hover .step-icon {
    transform: scale(1.1);
    background: var(--gb-blue);
    color: #fff;
}
.step-card h5 {
    color: var(--gb-dark);
    font-weight: 700;
    margin-bottom: .65rem;
    font-size: 1.15rem;
}
.step-card p {
    color: var(--gb-muted);
    margin: 0;
    font-size: .92rem;
    line-height: 1.6;
}

/* ===================== Webhook Demo ===================== */
.webhook-demo {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gb-dark), var(--gb-darker));
    color: #fff;
}
.webhook-demo .section-title { color: #fff; }
.webhook-demo .section-subtitle { color: rgba(255,255,255,.7); }
.webhook-demo .section-eyebrow {
    background: rgba(245,181,10,.15);
    color: var(--gb-gold);
}
.demo-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.demo-features li {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem 0;
    color: rgba(255,255,255,.85);
    font-size: .95rem;
}
.demo-features li i {
    color: var(--gb-gold);
    font-size: .85rem;
}

.code-block {
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.08);
}
.code-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.25rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.code-dot.red    { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #27c93f; }
.code-title {
    margin-left: .75rem;
    color: rgba(255,255,255,.5);
    font-size: .82rem;
    font-weight: 500;
}
.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}
.code-body pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: .85rem;
    line-height: 1.7;
    color: #c9d1d9;
}
.code-body code { color: inherit; }
.code-comment  { color: #6a737d; }
.code-method   { color: #f0883e; font-weight: 700; }
.code-url      { color: #79c0ff; }
.code-param    { color: #d2a8ff; }
.code-success  { color: #27c93f; font-weight: 700; }
.code-warning  { color: #ffbd2e; font-weight: 700; }

/* ===================== FAQ ===================== */
.faq { padding: 5rem 0; background: #fff; }
.faq-item {
    background: var(--gb-body-bg);
    border: 1px solid var(--gb-border);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--gb-shadow); }
.faq-header { margin: 0; }
.faq-button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gb-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: color .15s;
}
.faq-button:hover { color: var(--gb-blue); }
.faq-button:not(.collapsed) { color: var(--gb-blue); }
.faq-icon {
    transition: transform .25s ease;
    color: var(--gb-muted);
    font-size: .85rem;
}
.faq-button:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
    color: var(--gb-blue);
}
.faq-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--gb-muted);
    font-size: .92rem;
    line-height: 1.65;
}
.faq-body code {
    background: var(--gb-blue-soft);
    color: var(--gb-blue);
    padding: .15rem .4rem;
    border-radius: 5px;
    font-size: .85rem;
}

/* ===================== CTA ===================== */
.cta-section { padding: 5rem 0; background: var(--gb-body-bg); }
.cta-card {
    background: linear-gradient(135deg, var(--gb-blue), var(--gb-blue-600));
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30,58,138,.3);
}
.cta-glow {
    position: absolute;
    top: -50%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,181,10,.3), transparent 70%);
    border-radius: 50%;
}
.cta-icon {
    font-size: 2.5rem;
    color: var(--gb-gold);
    margin-bottom: 1rem;
    position: relative;
}
.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .75rem;
    position: relative;
}
.cta-card p {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    position: relative;
}
.cta-card .btn { position: relative; }

/* ===================== Footer ===================== */
.frontend-main { min-height: 60vh; }

.frontend-footer {
    background: var(--gb-darker);
    color: rgba(255,255,255,.7);
    padding: 0;
    position: relative;
}
.footer-wave {
    line-height: 0;
    margin-bottom: -1px;
}
.footer-wave svg {
    width: 100%;
    height: 60px;
    transform: rotate(180deg);
}
.frontend-footer .container {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer-desc {
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.footer-social {
    display: flex;
    gap: .65rem;
}
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.footer-social a:hover {
    background: var(--gb-gold);
    color: #1a1a1a;
    transform: translateY(-3px);
}
.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    transition: color .15s;
}
.footer-links a:hover { color: var(--gb-gold); }
.footer-endpoint {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .65rem .85rem;
    word-break: break-all;
}
.footer-endpoint i { color: var(--gb-gold); flex-shrink: 0; }
.footer-endpoint code {
    color: rgba(255,255,255,.85);
    font-size: .82rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .85rem;
}
.footer-built i { font-size: .8rem; }

/* ===================== Reveal Animation ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== Responsive ===================== */
@media (max-width: 991.98px) {
    .hero { padding: 7rem 0 4rem; }
    .hero-visual { margin-top: 2rem; }
    .timeline-line { display: none; }
    .frontend-navbar {
        background: rgba(15, 28, 63, .97);
        backdrop-filter: blur(10px);
    }
    .frontend-navbar .navbar-collapse {
        background: rgba(15, 28, 63, .95);
        border-radius: 12px;
        padding: 1rem;
        margin-top: .75rem;
    }
    .nav-cta { margin-top: .5rem; }
    .float-badge { display: none; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-trust { gap: 1rem; }
    .phone-mockup { width: 240px; }
    .cta-card { padding: 2.5rem 1.5rem; }
    .cta-card h2 { font-size: 1.5rem; }
}
