/* ============================================================
   TableTap — Modern SaaS Landing Page Stylesheet
   Typography: Poppins | Theme: Clean White & Emerald SaaS
   ============================================================ */

:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #ecfdf5;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 8px 30px rgba(16, 185, 129, 0.22);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1. Header & Navigation (Glassmorphism)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    transition: all 0.25s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.25rem;
}

.logo-dot, .logo span {
    color: var(--primary);
}

.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-login {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-btn-login:hover {
    background: var(--bg-surface);
    color: var(--primary);
}

.nav-btn-cta {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.nav-btn-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ============================================================
   2. Modern SaaS Hero Section
   ============================================================ */
.hero-saas {
    position: relative;
    padding: 70px 20px 100px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    font-size: 0.84rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 24px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 400;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
}

.btn-hero-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(16, 185, 129, 0.35);
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
    background: var(--bg-surface);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 50px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    color: var(--primary);
}

/* ============================================================
   3. Interactive Phone Mockup Preview
   ============================================================ */
.hero-mockup-wrapper {
    position: relative;
    max-width: 360px;
    margin: 20px auto 0;
}

.mockup-floating-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    text-align: left;
    animation: floatUpDown 4s ease-in-out infinite;
}

.pill-left {
    top: 25%;
    left: -130px;
}

.pill-right {
    bottom: 22%;
    right: -130px;
    animation-delay: 2s;
}

.pill-icon {
    font-size: 1.4rem;
}

.pill-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
}

.pill-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.phone-frame {
    background: #0f172a;
    border: 9px solid #1e293b;
    border-radius: 44px;
    padding: 10px;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 18px;
    background: #1e293b;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 8px;
}

.phone-screen {
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    padding: 16px 14px 24px;
    text-align: center;
}

.demo-menu-header {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.demo-logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.demo-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.demo-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.demo-wifi-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    color: var(--text-main);
    font-weight: 500;
}

.demo-btn-copy {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.demo-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.demo-card-img {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.demo-card-body {
    padding: 6px 8px;
}

.demo-card-body strong {
    display: block;
    font-size: 0.72rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-card-body span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================================
   4. Features Section
   ============================================================ */
.features-section {
    padding: 100px 20px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-container {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.section-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    text-align: left;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.icon-blue    { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.icon-purple  { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.icon-amber   { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.icon-rose    { background: rgba(244, 63, 94, 0.12);  color: #e11d48; }
.icon-cyan    { background: rgba(6, 182, 212, 0.12);  color: #0891b2; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   5. Steps / Timeline Section
   ============================================================ */
.steps-section {
    padding: 100px 20px;
    background: #ffffff;
}

.steps-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    position: relative;
    transition: all 0.22s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.step-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.18);
    position: absolute;
    top: 20px;
    right: 24px;
    line-height: 1;
}

.step-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   6. CTA Banner
   ============================================================ */
.cta-banner {
    padding: 70px 20px;
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 14px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cta-banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-light {
    background: #ffffff;
    color: #065f46;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-cta-light:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ============================================================
   7. Contact Section
   ============================================================ */
.contact-section {
    padding: 90px 20px;
    background: var(--bg-surface);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.contact-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-green { background: rgba(34, 197, 94, 0.12); color: #16a34a; }

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.contact-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: gap 0.2s ease;
}

.contact-card:hover .contact-action {
    color: var(--primary-hover);
}

/* ============================================================
   8. Modern Dark Footer
   ============================================================ */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 20px 30px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-brand .logo .logo-img {
    background: #ffffff;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.84rem;
    color: #64748b;
}

/* ============================================================
   9. Responsive Breakpoints
   ============================================================ */
@media (max-width: 900px) {
    .mockup-floating-pill {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
    }

    .nav-links {
        display: none; /* Mobile menu can be expanded or keep header minimal */
    }

    .hero-saas {
        padding: 50px 16px 70px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-trust {
        gap: 14px;
        font-size: 0.82rem;
    }

    .features-section, .steps-section, .contact-section {
        padding: 60px 16px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 14px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-buttons {
        gap: 6px;
    }

    .nav-btn-login {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .nav-btn-cta {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .hero-saas {
        padding: 36px 14px 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .hero-mockup-wrapper {
        max-width: 100%;
    }

    .phone-frame {
        border-width: 6px;
        border-radius: 36px;
        padding: 6px;
    }

    .phone-notch {
        width: 90px;
        height: 14px;
    }

    .phone-screen {
        border-radius: 26px;
        padding: 12px 10px 18px;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 50px 16px;
        border-radius: 20px;
        margin: 20px 14px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
