/* ══════════════════════════════════════
   Free Toilet — Landing Page Styles
   ══════════════════════════════════════ */

:root {
    --bg-primary: #0a1a1f;
    --bg-secondary: #0f2830;
    --bg-tertiary: #132f38;
    --accent-primary: #0d9488;
    --accent-secondary: #06b6d4;
    --accent-warm: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass: rgba(13, 148, 136, 0.08);
    --glass-border: rgba(13, 148, 136, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Gradient Utilities ── */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-warm {
    background: linear-gradient(135deg, var(--accent-warm), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Floating BG ── */
.floating-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.floating-bg span {
    position: absolute;
    opacity: 0.04;
    animation: floatUp 22s linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.04; }
    92%  { opacity: 0.04; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 26, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.35rem;
}
.logo-emoji { font-size: 1.8rem; }
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    color: white !important;
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    font-weight: 600 !important;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero p.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(13, 148, 136, 0.45);
}
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: rgba(13, 148, 136, 0.3);
}
.btn-lg-download {
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
}

/* ── Hero Stats ── */
.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

/* ── Phone Mockup ── */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.phone-frame {
    width: 300px;
    border-radius: 44px;
    border: 6px solid #1e3a42;
    background: var(--bg-secondary);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(13, 148, 136, 0.15);
    position: relative;
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1e3a42;
    border-radius: 0 0 20px 20px;
    z-index: 5;
}
.phone-screen {
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(180deg, #1a3a3a 0%, #0d2626 100%);
    position: relative;
    overflow: hidden;
}

/* Map-like mockup */
.mock-map {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, #1a3530 0%, #0f2a26 40%, #132e2a 100%);
}
.mock-map-grid {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}
.mock-road {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
}
.mock-road.h1 { top: 35%; left: 0; right: 0; height: 8px; }
.mock-road.h2 { top: 65%; left: 10%; right: 20%; height: 6px; }
.mock-road.v1 { left: 40%; top: 0; bottom: 0; width: 8px; }
.mock-road.v2 { left: 72%; top: 15%; bottom: 30%; width: 6px; }
.mock-road.d1 { left: 5%; top: 10%; width: 140px; height: 6px; transform: rotate(35deg); }

.mock-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pinDrop 0.6s ease-out both;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    z-index: 2;
}
.mock-pin .pin-head {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mock-pin .pin-head span {
    transform: rotate(45deg);
    font-size: 16px;
}
.mock-pin.free .pin-head { background: linear-gradient(135deg, #10b981, #34d399); }
.mock-pin.public .pin-head { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.mock-pin.accessible .pin-head { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.mock-pin.restaurant .pin-head { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

@keyframes pinDrop {
    0% { transform: translateY(-30px); opacity: 0; }
    60% { transform: translateY(4px); }
    100% { transform: translateY(0); opacity: 1; }
}
.mock-pin:nth-child(1) { animation-delay: 0.3s; }
.mock-pin:nth-child(2) { animation-delay: 0.5s; }
.mock-pin:nth-child(3) { animation-delay: 0.7s; }
.mock-pin:nth-child(4) { animation-delay: 0.9s; }
.mock-pin:nth-child(5) { animation-delay: 1.1s; }

.mock-user-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25);
}
.mock-search-bar {
    position: absolute;
    top: 40px;
    left: 16px;
    right: 16px;
    background: rgba(15, 40, 48, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
    border: 1px solid rgba(13, 148, 136, 0.2);
}
.mock-search-bar .search-icon { font-size: 14px; opacity: 0.5; }
.mock-search-bar .search-text { font-size: 13px; color: var(--text-muted); font-family: inherit; }
.mock-bottom-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 40, 48, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px 20px 0 0;
    padding: 18px 16px 24px;
    z-index: 4;
    border-top: 1px solid rgba(13, 148, 136, 0.15);
}
.mock-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 4px;
}
.mock-card-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-family: inherit;
    margin-bottom: 10px;
}
.mock-card-chips {
    display: flex;
    gap: 6px;
}
.mock-chip {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
}
.mock-chip.green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.mock-chip.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.mock-chip.purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

/* ── Sections Common ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Features ── */
.features {
    padding: 7rem 2rem;
    position: relative;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.1);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
    padding: 7rem 2rem;
    background: var(--bg-secondary);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}
.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.step-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* ── Fun Stats ── */
.fun-stats {
    padding: 5rem 2rem;
    position: relative;
}
.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-emoji { font-size: 2.2rem; margin-bottom: 0.75rem; display: block; }
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}
.stat-card .stat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Community CTA ── */
.community {
    padding: 7rem 2rem;
    background: var(--bg-secondary);
}
.community-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.community-card {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 28px;
    padding: 4rem 3rem;
}
.community-card .big-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}
.community-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.community-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Download CTA ── */
.download-section {
    padding: 7rem 2rem;
    position: relative;
}
.download-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.download-container .app-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
}
.download-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.download-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Footer ── */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.82rem;
}
.footer-bottom a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10, 26, 31, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 99;
    padding: 1rem 2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu a:last-child { border: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero p.hero-subtitle { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .phone-frame { width: 250px; }
    .community-card { padding: 3rem 1.5rem; }
    .community-card h2 { font-size: 1.8rem; }
    .download-container h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin-bottom: 2rem; }
    .footer-brand p { margin: 1rem auto 0; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding-top: 6rem; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stat-divider { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .steps-grid { grid-template-columns: 1fr; }
}
