

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Request Access - Rails Cloud</title>
    <link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
    <meta name="description" content="Rails Cloud is a cloud platform built for Africa. Deploy VPS instances, AI labs, managed databases, and container registries.">
    <link rel="canonical" href="https://railscloud.co">
    <meta name="robots" content="index, follow">

    
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="Rails Cloud">
    <meta property="og:title" content="Request Access - Rails Cloud">
    <meta property="og:description" content="Rails Cloud is a cloud platform built for Africa. Deploy VPS instances, AI labs, managed databases, and container registries.">
    <meta property="og:url" content="https://railscloud.co">

    
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Request Access - Rails Cloud">
    <meta name="twitter:description" content="Rails Cloud is a cloud platform built for Africa. Deploy VPS instances, AI labs, managed databases, and container registries.">

    <script defer src="/static/js/alpine.min.js"></script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --bg: #FFFFFF;
            --text: #17181C;
            --text-2: #55565E;
            --text-3: #8E8F98;
            --border: #EBEBEF;
            --border-strong: #DCDCE2;
            --panel-2: #F6F6F8;
            --accent: #4F46E5;
            --accent-hover: #4338CA;
            --accent-soft: #EEF2FF;
            --ink: #17181C;
            --c-launchpad: #F59E0B;
            --c-sites: #EC4899;
            --c-api: #8B5CF6;
            --c-baserock: #10B981;
            --c-registry: #3B82F6;
            --c-storage: #06B6D4;
        }
        html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
        html, body { overflow-x: clip; }
        html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; }
        :root {
            --grad: linear-gradient(120deg, #4F46E5 0%, #8B5CF6 45%, #06B6D4 100%);
            --grad-soft: linear-gradient(120deg, rgba(79,70,229,0.08), rgba(139,92,246,0.07) 45%, rgba(6,182,212,0.08));
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-feature-settings: 'liga' 1, 'calt' 1, 'cv11' 1;
            background-color: var(--bg);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.55;
            -webkit-font-smoothing: antialiased;
        }
        a { text-decoration: none; color: inherit; }

         
        .navbar-wrap {
            position: sticky; top: 0; z-index: 60;
            background: color-mix(in srgb, #FFFFFF 85%, transparent);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
        }
        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.875rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            position: sticky; top: 0; z-index: 60;
            background: color-mix(in srgb, #FFFFFF 85%, transparent);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            max-width: none;
        }
        .navbar-inner { max-width: 1200px; margin: 0 auto; }
        .navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
        .navbar-brand svg { width: 1.625rem; height: 1.625rem; color: var(--text); }
        .navbar-brand span { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
        .navbar-links { display: flex; align-items: center; gap: 1.5rem; }
        .navbar-links a {
            font-size: 0.8438rem;
            font-weight: 500;
            color: var(--text-2);
            transition: color 0.15s;
        }
        .navbar-links a:hover { color: var(--text); }
        .navbar-links a.navbar-cta,
        .navbar-mobile-menu a.navbar-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.4688rem 1rem;
            background-color: var(--ink);
            color: #FFFFFF;
            border-radius: 8px;
            font-size: 0.8125rem;
            font-weight: 600;
            transition: opacity 0.15s;
        }
        .navbar-links a.navbar-cta:hover,
        .navbar-mobile-menu a.navbar-cta:hover { opacity: 0.85; color: #FFFFFF; }

         
        .grad-text {
            background: var(--grad);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .btn-grad {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.625rem;
            background: var(--grad);
            background-size: 160% 160%;
            color: #FFFFFF;
            border-radius: 10px;
            font-size: 0.9375rem;
            font-weight: 600;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.6s ease;
            box-shadow: 0 4px 20px rgba(79, 70, 229, 0.28);
        }
        .btn-grad:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 28px rgba(79, 70, 229, 0.38);
            background-position: 100% 50%;
            color: #FFFFFF;
        }

         
        .hero {
            text-align: center;
            padding: 6.5rem 2rem 4.5rem;
            max-width: 860px;
            margin: 0 auto;
            position: relative;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: -8rem -20rem 0;
            z-index: -1;
            pointer-events: none;
            background:
                radial-gradient(38rem 24rem at 24% 12%, rgba(79, 70, 229, 0.13), transparent 60%),
                radial-gradient(30rem 22rem at 78% 6%, rgba(6, 182, 212, 0.11), transparent 60%),
                radial-gradient(26rem 20rem at 55% 42%, rgba(139, 92, 246, 0.09), transparent 65%);
            animation: mesh-drift 16s ease-in-out infinite alternate;
        }
        .hero::after {
            content: '';
            position: absolute;
            inset: -4rem 0 30%;
            z-index: -2;
            pointer-events: none;
            background-image: radial-gradient(rgba(23, 24, 28, 0.07) 1px, transparent 1px);
            background-size: 22px 22px;
            -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000 30%, transparent 100%);
            mask-image: radial-gradient(60% 60% at 50% 35%, #000 30%, transparent 100%);
        }
        @keyframes mesh-drift {
            from { transform: translate3d(0, 0, 0) scale(1); }
            to { transform: translate3d(2rem, 1.25rem, 0) scale(1.06); }
        }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3438rem 0.875rem;
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text-2);
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 1.75rem;
        }
        .hero-badge::before {
            content: '';
            width: 0.4375rem; height: 0.4375rem; border-radius: 50%;
            background: var(--accent);
        }
        .hero h1 {
            font-size: 4rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 1.04;
            margin-bottom: 1.375rem;
            color: var(--text);
        }
        .hero p {
            font-size: 1.125rem;
            color: var(--text-2);
            max-width: 600px;
            margin: 0 auto 2.5rem;
            line-height: 1.65;
        }
        .hero-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.625rem;
            background-color: var(--ink);
            color: #FFFFFF;
            border-radius: 10px;
            font-size: 0.9375rem;
            font-weight: 600;
            transition: opacity 0.15s, transform 0.15s;
        }
        .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.625rem;
            background-color: var(--bg);
            border: 1px solid var(--border-strong);
            color: var(--text-2);
            border-radius: 10px;
            font-size: 0.9375rem;
            font-weight: 600;
            transition: background-color 0.15s, border-color 0.15s;
        }
        .btn-secondary:hover { background-color: var(--panel-2); color: var(--text); }

         
        .features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.875rem;
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem 2rem 3rem;
        }
        .feature-card {
            padding: 1.75rem;
            border: 1px solid var(--border);
            border-radius: 16px;
            background: var(--bg);
            transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
        }
        .feature-card:hover {
            border-color: rgba(79, 70, 229, 0.35);
            box-shadow: 0 8px 32px rgba(79, 70, 229, 0.09);
            transform: translateY(-2px);
        }
        .feature-icon { width: 1.5rem; height: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
        .feature-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.375rem; }
        .feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

         
        .footer {
            border-top: 1px solid var(--border);
            padding: 2.5rem 2rem;
            text-align: center;
        }
        .footer p { font-size: 0.75rem; color: var(--text-3); }
        .footer-links {
            display: flex; align-items: center; justify-content: center;
            gap: 1.5rem; margin-bottom: 0.875rem;
        }
        .footer-links a {
            font-size: 0.8125rem; font-weight: 500; color: var(--text-2);
            transition: color 0.15s;
        }
        .footer-links a:hover { color: var(--text); }

         
        .cta { text-align: center; padding: 5rem 2rem; max-width: 640px; margin: 0 auto; }
        .cta h2 {
            font-size: 2.375rem; font-weight: 800; letter-spacing: -0.035em;
            line-height: 1.15; margin-bottom: 0.875rem; color: var(--text);
        }
        .cta p { font-size: 1.0313rem; color: var(--text-2); margin-bottom: 2rem; line-height: 1.65; }

         
        .navbar-toggle {
            display: none;
            align-items: center; justify-content: center;
            width: 2.5rem; height: 2.5rem;
            border: none; background: transparent; cursor: pointer;
            color: var(--text); border-radius: 8px;
        }
        .navbar-toggle:hover { background: var(--panel-2); }
        .navbar-toggle svg { width: 1.375rem; height: 1.375rem; }

        .navbar-mobile-menu {
            display: none;
            position: absolute;
            top: 100%; left: 0; right: 0;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            box-shadow: 0 12px 32px rgba(0,0,0,0.08);
            padding: 0.5rem 1.25rem 1rem;
            z-index: 50;
            flex-direction: column;
            gap: 0.125rem;
        }
        .navbar-mobile-menu.open { display: flex; }
        .navbar-mobile-menu a {
            display: block;
            padding: 0.75rem 0.75rem;
            font-size: 0.9375rem; font-weight: 500;
            color: var(--text-2); border-radius: 8px;
            transition: background 0.15s, color 0.15s;
        }
        .navbar-mobile-menu a:hover { background: var(--panel-2); color: var(--text); }
        .navbar-mobile-menu a.navbar-cta { margin-top: 0.5rem; }

         
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.375rem; }
            .features { grid-template-columns: 1fr; max-width: 420px; }
            .navbar-links { display: none; }
            .navbar-toggle { display: flex; }
            .navbar { padding: 0.75rem 1.25rem; }
            .cta h2 { font-size: 1.625rem; }
            .hero { padding: 3.5rem 1.5rem 2.5rem; }
            .hero-actions { flex-direction: column; }
            .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
            .footer-links { flex-wrap: wrap; }
        }

         
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(18px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .hero > * { animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
        .hero > *:nth-child(1) { animation-delay: 0.05s; }
        .hero > *:nth-child(2) { animation-delay: 0.15s; }
        .hero > *:nth-child(3) { animation-delay: 0.25s; }
        .hero > *:nth-child(4) { animation-delay: 0.35s; }
        .hero > *:nth-child(5) { animation-delay: 0.45s; }

        .rv {
            opacity: 0;
            transform: translateY(22px);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
            transition-delay: var(--rv-delay, 0s);
        }
        .rv.in-view { opacity: 1; transform: translateY(0); }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation: none !important; transition: none !important; }
            .rv { opacity: 1; transform: none; }
        }
    </style>
</head>
<body data-authenticated="false">
    

<nav class="navbar">
    <a href="/" class="navbar-brand">
        <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M12 3L21 12L12 21L3 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
            <path d="M3 12H21M12 3V21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
            <circle cx="12" cy="3" r="2" fill="currentColor"/><circle cx="21" cy="12" r="2" fill="currentColor"/>
            <circle cx="12" cy="21" r="2" fill="currentColor"/><circle cx="3" cy="12" r="2" fill="currentColor"/>
        </svg>
        <span>Rails Net</span>
    </a>
    <div class="navbar-links">
        <a href="/features">Features</a>
        <a href="/starter-kits">Starter Kits</a>
        <a href="/api-docs">API</a>
        <a href="/startup">Startups</a>
        <a href="/ubuntu-ignite">Ubuntu Ignite</a>
        <a href="/careers">Careers</a>
        <a href="/login" class="navbar-cta">Sign in</a>
    </div>
</nav>


<section class="hero" style="padding-bottom:2.5rem;">
    <h1>Request access to Rails Cloud</h1>
    <p>Rails builds digital infrastructure — and the software that runs on it: the Rails Cloud platform, Rails Books, Cane Planner for Tongaat Hulett, Fi Terra, and Agro Pro. Tell us what you're building below, or apply through one of our programs.</p>
</section>





<section class="ra-section" id="request-access" x-data="{ step: 1, totalSteps: 5 }">
    <div id="apply" class="ra-section-heading">
        <h2>Request access</h2>
        <p>Five short steps — who you are, what you do, and what you need. We review every request within 2&ndash;3 business days.</p>
    </div>

    <div class="ra-shell">
        
        <div class="ra-steps" style="margin-bottom:2rem;">
            <template x-for="i in totalSteps" :key="i">
                <div class="ra-step" :class="{ 'ra-step-active': step === i, 'ra-step-done': step > i }">
                    <div class="ra-step-dot"></div>
                    <span class="ra-step-label" x-text="['Account','Personal','Business','Project','Vision'][i-1]"></span>
                </div>
            </template>
        </div>

        

        <form method="POST" action="/request-access" x-ref="formAccess" novalidate style="display:flex;flex-direction:column;gap:0;">

            
            <div x-show="step === 1">
                <p class="ra-section-title">Account Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Full Name *</label><input class="ra-input" type="text" name="name" required placeholder="Jane Moyo"></div>
                    <div class="ra-field"><label class="ra-label">Email *</label><input class="ra-input" type="email" name="email" required placeholder="jane@company.com"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Password *</label><input class="ra-input" type="password" name="password" required minlength="8" placeholder="Min 8 characters"></div>
                    <div class="ra-field"><label class="ra-label">Phone *</label><input class="ra-input" type="tel" name="phone" required placeholder="+263 77 123 4567"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Date of Birth *</label><input class="ra-input" type="date" name="date_of_birth" required></div>
                    <div class="ra-field"><label class="ra-label">Country *</label>
                        <select class="ra-select" name="country" required>
                            <option value="" disabled selected>Select country</option><option value="ZW">Zimbabwe</option><option value="ZA">South Africa</option><option value="MZ">Mozambique</option><option value="BW">Botswana</option><option value="ZM">Zambia</option><option value="MW">Malawi</option><option value="NA">Namibia</option><option value="TZ">Tanzania</option><option value="KE">Kenya</option><option value="NG">Nigeria</option><option value="GH">Ghana</option><option value="RW">Rwanda</option><option value="UG">Uganda</option><option value="ET">Ethiopia</option><option value="US">United States</option><option value="GB">United Kingdom</option><option value="CA">Canada</option><option value="AU">Australia</option><option value="OTHER">Other</option>
                        </select>
                    </div>
                </div>
                <p class="ra-hint" style="margin-top:0.5rem;">Submitting creates your Rails ID and sends a one-time code to verify your email. Platform access is enabled once your request is approved.</p>
            </div>

            
            <div x-show="step === 2">
                <p class="ra-section-title">Personal Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">City *</label>
                        <select class="ra-select" name="city" required>
                            <option value="" disabled selected>Select city</option><option value="Harare">Harare</option><option value="Bulawayo">Bulawayo</option><option value="Mutare">Mutare</option><option value="Chiredzi">Chiredzi</option><option value="Gweru">Gweru</option><option value="Masvingo">Masvingo</option><option value="Cape Town">Cape Town</option><option value="Johannesburg">Johannesburg</option><option value="Durban">Durban</option><option value="Other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Your Role *</label>
                        <select class="ra-select" name="role_title" required>
                            <option value="" disabled selected>Select your role</option><option value="founder-ceo">Founder / CEO</option><option value="cto">CTO / Technical Lead</option><option value="developer">Software Developer</option><option value="designer">Designer</option><option value="product-manager">Product Manager</option><option value="business-ops">Business / Operations</option><option value="student">Student</option><option value="freelancer">Freelancer</option><option value="other">Other</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Technical Skill *</label>
                        <select class="ra-select" name="technical_skill" required>
                            <option value="" disabled selected>Select</option><option value="non-technical">Non-technical</option><option value="basic">Basic</option><option value="intermediate">Intermediate</option><option value="advanced">Advanced</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">LinkedIn Profile</label><input class="ra-input" type="url" name="linkedin_url" placeholder="https://linkedin.com/in/..."></div>
                </div>
            </div>

            
            <div x-show="step === 3">
                <p class="ra-section-title">Business Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Account Type *</label>
                        <select class="ra-select" name="account_type" required>
                            <option value="" disabled selected>Select account type</option><option value="personal">Sole / Individual</option><option value="startup">Startup</option><option value="business">Business</option><option value="team">Team</option><option value="enterprise">Enterprise</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Team Size *</label>
                        <select class="ra-select" name="team_size" required>
                            <option value="" disabled selected>Select</option><option value="solo">Solo / Individual</option><option value="2-3">2-3 people</option><option value="4-5">4-5 people</option><option value="6-10">6-10 people</option><option value="11-25">11-25 people</option><option value="26-50">26-50 people</option><option value="51-100">51-100 people</option><option value="100+">100+ people</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Organization / Company *</label><input class="ra-input" type="text" name="organization" required placeholder="Acme Corp"></div>
                    <div class="ra-field"><label class="ra-label">Website</label><input class="ra-input" type="url" name="website" placeholder="https://acme.co.zw"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Industry *</label>
                        <select class="ra-select" name="industry" required>
                            <option value="" disabled selected>Select industry</option><option value="fintech">Fintech</option><option value="healthtech">Healthtech</option><option value="edtech">Edtech</option><option value="ecommerce">E-commerce</option><option value="saas">SaaS</option><option value="agritech">Agritech</option><option value="ai-ml">AI / ML</option><option value="media">Media & Entertainment</option><option value="logistics">Logistics</option><option value="government">Government / NGO</option><option value="real-estate">Real Estate</option><option value="manufacturing">Manufacturing</option><option value="mining">Mining</option><option value="tourism">Tourism & Hospitality</option><option value="other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Registration Number</label><input class="ra-input" type="text" name="registration_number" placeholder="e.g. 2024/12345"></div>
                </div>
                <div class="ra-field"><label class="ra-label">Business Description</label><textarea class="ra-textarea" name="business_description" rows="2" placeholder="Brief description of what your business does..."></textarea></div>
            </div>

            
            <div x-show="step === 4">
                <p class="ra-section-title">Your Project</p>
                <div class="ra-field"><label class="ra-label">What do you want to build? *</label><textarea class="ra-textarea" name="use_case" required rows="3" placeholder="Describe your project, product, or idea in detail..."></textarea></div>
                <div class="ra-field" x-data="{ open: false, selected: [] }" style="position:relative;">
                    <label class="ra-label">What do you intend to use Rails Cloud for? *</label>
                    <input type="hidden" name="intention" :value="selected.join(', ')" required>
                    <div @click="open = !open" style="width:100%;padding:0.75rem 1rem;background:#FFFFFF;border:1px solid #DCDCE2;border-radius:10px;font-size:0.875rem;color:#17181C;cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:44px;">
                        <span x-text="selected.length ? selected.join(', ') : 'Select services...'" :style="!selected.length && 'color:#9CA3AF'" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 24px);"></span>
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#9CA3AF" stroke-width="2" style="flex-shrink:0;transition:transform 0.15s;" :style="open && 'transform:rotate(180deg)'"><polyline points="6 9 12 15 18 9"/></svg>
                    </div>
                    <div x-show="open" x-transition @click.outside="open = false" x-cloak style="position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid #EBEBEF;border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,0.08);margin-top:0.25rem;padding:0.5rem 0;max-height:260px;overflow-y:auto;z-index:50;">
                        <template x-for="opt in ['App Hosting', 'Managed Databases', 'Container Registry', 'Object Storage', 'AI / ML Workloads', 'API Development', 'Video Streaming', 'Geospatial / Terra', 'Custom Domains & SSL', 'CI/CD Pipelines', 'IoT / Edge Computing', 'Data Analytics']" :key="opt">
                            <label @click.stop style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 1rem;cursor:pointer;font-size:0.8125rem;color:#55565E;transition:background 0.1s;" :style="selected.includes(opt) ? 'background:#EEF2FF;color:#4F46E5;font-weight:600' : ''" onmouseover="this.style.background=this.style.background||'#F6F6F8'" onmouseout="if(!this.querySelector('input').checked)this.style.background=''">
                                <input type="checkbox" :value="opt" :checked="selected.includes(opt)" @change="selected.includes(opt) ? selected = selected.filter(s => s !== opt) : selected.push(opt)" style="accent-color:#4F46E5;width:16px;height:16px;flex-shrink:0;">
                                <span x-text="opt"></span>
                            </label>
                        </template>
                    </div>
                </div>
            </div>

            
            <div x-show="step === 5">
                <p class="ra-section-title">Vision & Needs</p>
                <div class="ra-field"><label class="ra-label">Where do you see this in 5 years? *</label><textarea class="ra-textarea" name="vision_5yr" required rows="3" placeholder="Long-term vision, target scale, revenue goals, and impact..."></textarea></div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Need sponsorship or funding?</label>
                        <select class="ra-select" name="sponsorship_need">
                            <option value="no">No, I'll pay for services</option><option value="credits">Cloud credits / discounts</option><option value="partial">Partial sponsorship</option><option value="full">Full sponsorship</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Need technical assistance?</label>
                        <select class="ra-select" name="technical_assistance">
                            <option value="no">No, self-sufficient</option><option value="devops">DevOps / Infrastructure</option><option value="architecture">Architecture guidance</option><option value="full-stack">Full-stack support</option><option value="ai-ml">AI / ML expertise</option><option value="consulting">General consulting</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">How did you hear about Rails?</label>
                    <select class="ra-select" name="referral_source">
                        <option value="" disabled selected>Select</option><option value="ubuntu_ignite">Ubuntu Ignite</option><option value="orion_5">Orion 5</option><option value="social_media">Social Media</option><option value="friend_colleague">Friend / Colleague</option><option value="event_hackathon">Event / Hackathon</option><option value="search">Google / Search</option><option value="other">Other</option>
                    </select>
                </div>
            </div>

            
            <div class="ra-nav">
                <button type="button" class="ra-btn-back" x-show="step > 1" @click="step--">Back</button>
                <div style="flex:1;"></div>
                <button type="button" class="ra-btn-next" x-show="step < totalSteps" @click="if(validateStep($refs.formAccess, step)) step++">Next</button>
                <button type="button" class="ra-btn" x-show="step === totalSteps" @click="if(validateStep($refs.formAccess, step)) $refs.formAccess.submit()">Request Access</button>
            </div>
            <p x-show="step === totalSteps" style="text-align:center;font-size:0.75rem;color:#8E8F98;margin-top:0.75rem;">We review requests within 2-3 business days.</p>
        </form>
    </div>

    <div style="text-align:center;margin-top:2rem;">
        <p style="font-size:0.875rem;color:#55565E;">
            Already have an account?
            <a href="/login" style="color:#4F46E5;font-weight:600;text-decoration:none;">Sign in</a>
        </p>
    </div>
</section>





<section class="ra-section" id="programs" x-data="{ active: '' }" style="padding-bottom:5rem;">
    <div class="ra-section-heading">
        <h2>Programs</h2>
        <p>Prefer a structured path? Founders, growing companies, school teams, and health-tech builders can apply to a Rails program — each application doubles as your access request.</p>
    </div>

    
    <div class="ra-cards">
        <div class="ra-card" :class="active === 'founders' && 'ra-card-active'" @click="active = active === 'founders' ? '' : 'founders'">
            <p class="ra-card-label">For Startups & Founders</p>
            <h3 class="ra-card-title" style="color:#4F46E5;">Startup Incubation</h3>
            <p class="ra-card-desc">6 months free hosting, mentorship, and Demo Day. No equity taken.</p>
        </div>
        <div class="ra-card" id="startup" :class="active === 'startup' && 'ra-card-active'" @click="active = active === 'startup' ? '' : 'startup'">
            <p class="ra-card-label">For Companies</p>
            <h3 class="ra-card-title" style="color:#F59E0B;">Startup Program</h3>
            <p class="ra-card-desc">Up to $10,000 in cloud credits. 12 months of free infrastructure.</p>
        </div>
        <div class="ra-card" :class="active === 'sports' && 'ra-card-active'" @click="active = active === 'sports' ? '' : 'sports'">
            <p class="ra-card-label">For Schools & Teams</p>
            <h3 class="ra-card-title" style="color:#10B981;">Sports Sponsorship</h3>
            <p class="ra-card-desc">Jerseys, equipment, and event sponsorship for athletics and e-sports.</p>
        </div>
        <div class="ra-card" :class="active === 'orion' && 'ra-card-active'" @click="active = active === 'orion' ? '' : 'orion'">
            <p class="ra-card-label">For Health-Tech</p>
            <h3 class="ra-card-title" style="color:#3B82F6;">Orion 5</h3>
            <p class="ra-card-desc">12-week health-tech training. AI diagnostics, telemedicine, mHealth.</p>
        </div>
    </div>

    
    


    
    
    
    <div x-show="active === 'founders'" x-cloak x-data="{ step: 1, totalSteps: 5 }" class="ra-form-panel">
        <h2 class="ra-form-title">Apply for Startup Incubation</h2>
        <p class="ra-form-subtitle">6 months of free hosting, API access, mentorship, and Demo Day.</p>

        
        <div class="ra-steps">
            <template x-for="i in totalSteps" :key="i">
                <div class="ra-step" :class="{ 'ra-step-active': step === i, 'ra-step-done': step > i }">
                    <div class="ra-step-dot"></div>
                    <span class="ra-step-label" x-text="['Account','Personal','Company','Vision','Materials'][i-1]"></span>
                </div>
            </template>
        </div>

        <form method="POST" action="/ubuntu-ignite/founders/apply" enctype="multipart/form-data" x-ref="formFounders" novalidate>

            
            <div x-show="step === 1">
                <p class="ra-section-title">Account Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Full Name *</label><input class="ra-input" type="text" name="full_name" required placeholder="Tatenda Moyo"></div>
                    <div class="ra-field"><label class="ra-label">Email *</label><input class="ra-input" type="email" name="email" required placeholder="tatenda@example.com"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Password *</label><input class="ra-input" type="password" name="password" required minlength="8" placeholder="Min 8 characters"></div>
                    <div class="ra-field"><label class="ra-label">Phone *</label><input class="ra-input" type="tel" name="phone" required placeholder="+263 77 123 4567"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Date of Birth *</label><input class="ra-input" type="date" name="date_of_birth" required></div>
                    <div class="ra-field"><label class="ra-label">Country *</label>
                        <select class="ra-select" name="country" required>
                            <option value="" disabled selected>Select country</option><option value="ZW">Zimbabwe</option><option value="ZA">South Africa</option><option value="MZ">Mozambique</option><option value="BW">Botswana</option><option value="ZM">Zambia</option><option value="MW">Malawi</option><option value="NA">Namibia</option><option value="TZ">Tanzania</option><option value="KE">Kenya</option><option value="NG">Nigeria</option><option value="GH">Ghana</option><option value="RW">Rwanda</option><option value="UG">Uganda</option><option value="ET">Ethiopia</option><option value="US">United States</option><option value="GB">United Kingdom</option><option value="CA">Canada</option><option value="AU">Australia</option><option value="OTHER">Other</option>
                        </select>
                    </div>
                </div>
                <p class="ra-hint" style="margin-top:0.5rem;">Submitting creates your Rails ID and sends a one-time code to verify your email. Platform access is enabled once your application is reviewed.</p>
            </div>

            
            <div x-show="step === 2">
                <p class="ra-section-title">Personal Information</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">City *</label>
                        <select class="ra-select" name="city" required>
                            <option value="Harare">Harare</option><option value="Bulawayo">Bulawayo</option><option value="Mutare">Mutare</option><option value="Chiredzi">Chiredzi</option><option value="Other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">LinkedIn Profile</label><input class="ra-input" type="url" name="linkedin_url" placeholder="https://linkedin.com/in/..."></div>
                </div>
            </div>

            
            <div x-show="step === 3">
                <p class="ra-section-title">Company Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Company / Project Name *</label><input class="ra-input" type="text" name="company_name" required placeholder="My Startup"></div>
                    <div class="ra-field"><label class="ra-label">Website or Social</label><input class="ra-input" type="text" name="website" placeholder="https://... or @handle"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Industry *</label>
                        <select class="ra-select" name="use_case" required>
                            <option value="fintech">Fintech</option><option value="healthtech">Healthtech</option><option value="edtech">Edtech</option><option value="ecommerce">E-commerce</option><option value="saas">SaaS</option><option value="agritech">Agritech</option><option value="ai-ml">AI / ML</option><option value="media">Media</option><option value="logistics">Logistics</option><option value="other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Product Stage *</label>
                        <select class="ra-select" name="product_stage" required>
                            <option value="idea">Idea</option><option value="prototype">Prototype</option><option value="mvp">MVP</option><option value="revenue">Revenue</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Team Size *</label>
                        <select class="ra-select" name="team_size" required>
                            <option value="solo">Solo founder</option><option value="2-3">2-3 people</option><option value="4-5">4-5 people</option><option value="6-10">6-10 people</option><option value="11-25">11-25 people</option><option value="26-50">26-50 people</option><option value="51-100">51-100 people</option><option value="100+">100+ people</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Funding Stage</label>
                        <select class="ra-select" name="funding_stage">
                            <option value="bootstrapped">Bootstrapped</option><option value="pre-seed">Pre-seed</option><option value="seed">Seed</option><option value="series-a">Series A+</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Current Revenue</label>
                        <select class="ra-select" name="revenue">
                            <option value="pre-revenue">Pre-revenue</option><option value="1k-10k">$1k-$10k/mo</option><option value="10k-100k">$10k-$100k/mo</option><option value="100k+">$100k+/mo</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Technical Skill *</label>
                        <select class="ra-select" name="technical_skill" required>
                            <option value="non-technical">Non-technical</option><option value="basic">Basic</option><option value="intermediate">Intermediate</option><option value="advanced">Advanced</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">What are you building? *</label><textarea class="ra-textarea" name="description" rows="3" required placeholder="Describe your product, the problem it solves, and who it's for..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Target Market *</label><textarea class="ra-textarea" name="target_market" rows="2" required placeholder="Describe your ideal customer and market size..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Competitive Edge</label><textarea class="ra-textarea" name="competitive_edge" rows="2" placeholder="What makes you different from competitors?"></textarea></div>
            </div>

            
            <div x-show="step === 4">
                <p class="ra-section-title">Vision & Support Needs</p>
                <div class="ra-field"><label class="ra-label">Where do you see this in 5 years? *</label><textarea class="ra-textarea" name="vision_5yr" rows="3" required placeholder="Long-term vision, target market, and impact goals..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Why do you want to join? *</label><textarea class="ra-textarea" name="motivation" rows="3" required placeholder="What do you hope to achieve in the 6-month program?"></textarea></div>
                <div class="ra-field"><label class="ra-label">Elevator Pitch (2-3 sentences) *</label><textarea class="ra-textarea" name="pitch_summary" rows="2" required placeholder="If you had 30 seconds with an investor, what would you say?"></textarea></div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Need financial sponsorship?</label>
                        <select class="ra-select" name="sponsorship_need">
                            <option value="no">No</option><option value="hosting-only">Hosting credits only</option><option value="partial">Partial funding</option><option value="full">Full sponsorship</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Need technical assistance?</label>
                        <select class="ra-select" name="technical_assistance">
                            <option value="no">No, self-sufficient</option><option value="devops">DevOps / Infrastructure</option><option value="architecture">Architecture guidance</option><option value="full-stack">Full-stack support</option><option value="ai-ml">AI / ML expertise</option>
                        </select>
                    </div>
                </div>
            </div>

            
            <div x-show="step === 5">
                <p class="ra-section-title">Supporting Materials</p>
                <div class="ra-field">
                    <label class="ra-label">Pitch Video URL</label>
                    <input class="ra-input" type="url" name="video_url" placeholder="YouTube, Loom, or Vimeo link">
                    <p class="ra-hint">A 2-3 minute video explaining your product and vision.</p>
                </div>
                <div class="ra-field">
                    <label class="ra-label">Pitch Deck (PDF, max 10MB)</label>
                    <input class="ra-file" type="file" name="deck_file" accept=".pdf,.pptx,.ppt">
                    <p class="ra-hint">Upload your pitch deck or business plan.</p>
                </div>
                <div class="ra-review-box">
                    <p class="ra-review-title">Ready to submit?</p>
                    <p class="ra-review-text">Submitting files your application and creates your Rails ID. You'll verify your email on the next screen.</p>
                </div>
            </div>

            
            <div class="ra-nav">
                <button type="button" class="ra-btn-back" x-show="step > 1" @click="step--">Back</button>
                <div style="flex:1;"></div>
                <button type="button" class="ra-btn-next" x-show="step < totalSteps" @click="if(validateStep($refs.formFounders, step)) step++">Next</button>
                <button type="button" class="ra-btn" x-show="step === totalSteps" @click="if(validateStep($refs.formFounders, step)) $refs.formFounders.submit()">Submit Application</button>
            </div>
        </form>
    </div>


    
    
    
    <div x-show="active === 'startup'" x-cloak x-data="{ step: 1, totalSteps: 5 }" class="ra-form-panel">
        <h2 class="ra-form-title">Apply for Startup Program</h2>
        <p class="ra-form-subtitle">Up to $10,000 in cloud credits. 12 months of free infrastructure.</p>

        <div class="ra-steps">
            <template x-for="i in totalSteps" :key="i">
                <div class="ra-step" :class="{ 'ra-step-active': step === i, 'ra-step-done': step > i }">
                    <div class="ra-step-dot"></div>
                    <span class="ra-step-label" x-text="['Account','Personal','Company','Credits','Materials'][i-1]"></span>
                </div>
            </template>
        </div>

        <form method="POST" action="/startup/apply" enctype="multipart/form-data" x-ref="formStartup" novalidate>

            
            <div x-show="step === 1">
                <p class="ra-section-title">Account Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Full Name *</label><input class="ra-input" type="text" name="full_name" required placeholder="Jane Moyo"></div>
                    <div class="ra-field"><label class="ra-label">Email *</label><input class="ra-input" type="email" name="email" required placeholder="jane@company.com"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Password *</label><input class="ra-input" type="password" name="password" required minlength="8" placeholder="Min 8 characters"></div>
                    <div class="ra-field"><label class="ra-label">Phone *</label><input class="ra-input" type="tel" name="phone" required placeholder="+263 77 123 4567"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Date of Birth *</label><input class="ra-input" type="date" name="date_of_birth" required></div>
                    <div class="ra-field"><label class="ra-label">Country *</label>
                        <select class="ra-select" name="country" required>
                            <option value="" disabled selected>Select country</option><option value="ZW">Zimbabwe</option><option value="ZA">South Africa</option><option value="MZ">Mozambique</option><option value="BW">Botswana</option><option value="ZM">Zambia</option><option value="MW">Malawi</option><option value="NA">Namibia</option><option value="TZ">Tanzania</option><option value="KE">Kenya</option><option value="NG">Nigeria</option><option value="GH">Ghana</option><option value="RW">Rwanda</option><option value="UG">Uganda</option><option value="ET">Ethiopia</option><option value="US">United States</option><option value="GB">United Kingdom</option><option value="CA">Canada</option><option value="AU">Australia</option><option value="OTHER">Other</option>
                        </select>
                    </div>
                </div>
                <p class="ra-hint" style="margin-top:0.5rem;">Submitting creates your Rails ID and sends a one-time code to verify your email. Platform access is enabled once your application is reviewed.</p>
            </div>

            
            <div x-show="step === 2">
                <p class="ra-section-title">Personal Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">City *</label>
                        <select class="ra-select" name="city" required>
                            <option value="Harare">Harare</option><option value="Bulawayo">Bulawayo</option><option value="Mutare">Mutare</option><option value="Chiredzi">Chiredzi</option><option value="Other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">LinkedIn Profile</label><input class="ra-input" type="url" name="linkedin_url" placeholder="https://linkedin.com/in/..."></div>
                </div>
            </div>

            
            <div x-show="step === 3">
                <p class="ra-section-title">Company Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Company Name *</label><input class="ra-input" type="text" name="company_name" required placeholder="Acme Corp"></div>
                    <div class="ra-field"><label class="ra-label">Website *</label><input class="ra-input" type="text" name="website" required placeholder="https://..."></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Industry *</label>
                        <select class="ra-select" name="use_case" required>
                            <option value="fintech">Fintech</option><option value="healthtech">Healthtech</option><option value="edtech">Edtech</option><option value="ecommerce">E-commerce</option><option value="saas">SaaS</option><option value="agritech">Agritech</option><option value="ai-ml">AI / ML</option><option value="logistics">Logistics</option><option value="other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Product Stage *</label>
                        <select class="ra-select" name="product_stage" required>
                            <option value="idea">Idea</option><option value="mvp">MVP</option><option value="growth">Growth</option><option value="scale">Scale</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Team Size *</label>
                        <select class="ra-select" name="team_size" required>
                            <option value="solo">Solo founder</option><option value="2-3">2-3 people</option><option value="4-5">4-5 people</option><option value="6-10">6-10 people</option><option value="11-25">11-25 people</option><option value="26-50">26-50 people</option><option value="51-100">51-100 people</option><option value="100+">100+ people</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Funding Stage</label>
                        <select class="ra-select" name="funding_stage">
                            <option value="bootstrapped">Bootstrapped</option><option value="pre-seed">Pre-seed</option><option value="seed">Seed</option><option value="series-a">Series A+</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Revenue *</label>
                        <select class="ra-select" name="revenue" required>
                            <option value="pre-revenue">Pre-revenue</option><option value="1k-10k">$1k-$10k/mo</option><option value="10k-100k">$10k-$100k/mo</option><option value="100k+">$100k+/mo</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Monthly Active Users</label>
                        <select class="ra-select" name="monthly_users">
                            <option value="pre-launch">Pre-launch</option><option value="under-100">Under 100</option><option value="100-1k">100-1,000</option><option value="1k-10k">1k-10k</option><option value="10k+">10,000+</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">What are you building? *</label><textarea class="ra-textarea" name="description" rows="3" required placeholder="Tell us about your product and how Rails Cloud will help you scale..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Target Market *</label><textarea class="ra-textarea" name="target_market" rows="2" required placeholder="Who are your customers? What regions are you targeting?"></textarea></div>
            </div>

            
            <div x-show="step === 4">
                <p class="ra-section-title">Credits & Support</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Technical Skill *</label>
                        <select class="ra-select" name="technical_skill" required>
                            <option value="non-technical">Non-technical</option><option value="basic">Basic</option><option value="intermediate">Intermediate</option><option value="advanced">Advanced</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Current Infrastructure</label>
                        <select class="ra-select" name="current_infra">
                            <option value="none">None yet</option><option value="shared-hosting">Shared hosting</option><option value="vps">VPS</option><option value="aws-gcp-azure">AWS / GCP / Azure</option><option value="on-premise">On-premise</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">Estimated Monthly Cloud Spend *</label>
                    <select class="ra-select" name="credits_needed" required>
                        <option value="under-100">Under $100/mo</option><option value="100-500">$100-$500/mo</option><option value="500-2000">$500-$2,000/mo</option><option value="2000+">$2,000+/mo</option>
                    </select>
                </div>
                <div class="ra-field"><label class="ra-label">Where do you see this in 5 years? *</label><textarea class="ra-textarea" name="vision_5yr" rows="3" required placeholder="Long-term vision, scale targets, and expansion plans..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Why do you want to join? *</label><textarea class="ra-textarea" name="motivation" rows="3" required placeholder="How will cloud credits help your startup grow?"></textarea></div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Need sponsorship?</label>
                        <select class="ra-select" name="sponsorship_need">
                            <option value="no">No</option><option value="credits-only">Cloud credits only</option><option value="partial">Partial funding</option><option value="full">Full sponsorship</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Need technical assistance?</label>
                        <select class="ra-select" name="technical_assistance">
                            <option value="no">No, self-sufficient</option><option value="devops">DevOps / Infra</option><option value="architecture">Architecture</option><option value="full-stack">Full-stack</option><option value="ai-ml">AI / ML</option>
                        </select>
                    </div>
                </div>
            </div>

            
            <div x-show="step === 5">
                <p class="ra-section-title">Supporting Materials</p>
                <div class="ra-field">
                    <label class="ra-label">Product Demo or Pitch Video URL</label>
                    <input class="ra-input" type="url" name="video_url" placeholder="YouTube, Loom, or Vimeo link">
                    <p class="ra-hint">A short video showcasing your product or pitch.</p>
                </div>
                <div class="ra-field">
                    <label class="ra-label">Pitch Deck (PDF, max 10MB)</label>
                    <input class="ra-file" type="file" name="deck_file" accept=".pdf,.pptx,.ppt">
                    <p class="ra-hint">Upload your pitch deck or business plan.</p>
                </div>
                <div class="ra-review-box">
                    <p class="ra-review-title">Ready to submit?</p>
                    <p class="ra-review-text">Submitting files your application and creates your Rails ID. You'll verify your email on the next screen.</p>
                </div>
            </div>

            <div class="ra-nav">
                <button type="button" class="ra-btn-back" x-show="step > 1" @click="step--">Back</button>
                <div style="flex:1;"></div>
                <button type="button" class="ra-btn-next" x-show="step < totalSteps" @click="if(validateStep($refs.formStartup, step)) step++">Next</button>
                <button type="button" class="ra-btn" x-show="step === totalSteps" @click="if(validateStep($refs.formStartup, step)) $refs.formStartup.submit()">Submit Application</button>
            </div>
        </form>
    </div>


    
    
    
    <div x-show="active === 'sports'" x-cloak x-data="{ step: 1, totalSteps: 4 }" class="ra-form-panel">
        <h2 class="ra-form-title">Apply for Sports Sponsorship</h2>
        <p class="ra-form-subtitle">Jerseys, equipment, and event sponsorship for athletics and e-sports.</p>

        <div class="ra-steps">
            <template x-for="i in totalSteps" :key="i">
                <div class="ra-step" :class="{ 'ra-step-active': step === i, 'ra-step-done': step > i }">
                    <div class="ra-step-dot"></div>
                    <span class="ra-step-label" x-text="['Account','Contact','Team','Sponsorship'][i-1]"></span>
                </div>
            </template>
        </div>

        <form method="POST" action="/ubuntu-ignite/sports/apply" x-ref="formSports" novalidate>

            
            <div x-show="step === 1">
                <p class="ra-section-title">Account Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Contact Name *</label><input class="ra-input" type="text" name="full_name" required placeholder="Farai Ndlovu"></div>
                    <div class="ra-field"><label class="ra-label">Email *</label><input class="ra-input" type="email" name="email" required placeholder="farai@school.ac.zw"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Password *</label><input class="ra-input" type="password" name="password" required minlength="8" placeholder="Min 8 characters"></div>
                    <div class="ra-field"><label class="ra-label">Phone *</label><input class="ra-input" type="tel" name="phone" required placeholder="+263 77 123 4567"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Date of Birth *</label><input class="ra-input" type="date" name="date_of_birth" required></div>
                    <div class="ra-field"><label class="ra-label">Country *</label>
                        <select class="ra-select" name="country" required>
                            <option value="" disabled selected>Select country</option><option value="ZW">Zimbabwe</option><option value="ZA">South Africa</option><option value="MZ">Mozambique</option><option value="BW">Botswana</option><option value="ZM">Zambia</option><option value="MW">Malawi</option><option value="NA">Namibia</option><option value="TZ">Tanzania</option><option value="KE">Kenya</option><option value="NG">Nigeria</option><option value="GH">Ghana</option><option value="RW">Rwanda</option><option value="UG">Uganda</option><option value="ET">Ethiopia</option><option value="US">United States</option><option value="GB">United Kingdom</option><option value="CA">Canada</option><option value="AU">Australia</option><option value="OTHER">Other</option>
                        </select>
                    </div>
                </div>
                <p class="ra-hint" style="margin-top:0.5rem;">Submitting creates your Rails ID and sends a one-time code to verify your email. Platform access is enabled once your application is reviewed.</p>
            </div>

            
            <div x-show="step === 2">
                <p class="ra-section-title">Contact Details</p>
                <div class="ra-field"><label class="ra-label">City *</label>
                    <select class="ra-select" name="city" required>
                        <option value="Harare">Harare</option><option value="Bulawayo">Bulawayo</option><option value="Mutare">Mutare</option><option value="Chiredzi">Chiredzi</option><option value="Other">Other</option>
                    </select>
                </div>
            </div>

            
            <div x-show="step === 3">
                <p class="ra-section-title">Organisation & Team</p>
                <div class="ra-field"><label class="ra-label">Organisation Name *</label><input class="ra-input" type="text" name="organization_name" required placeholder="Gateway High School"></div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Organisation Type *</label>
                        <select class="ra-select" name="org_type" required>
                            <option value="school">School</option><option value="university">University</option><option value="community">Community Team</option><option value="esports">E-sports Team</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Sport *</label>
                        <select class="ra-select" name="sport" required>
                            <option value="athletics">Athletics</option><option value="football">Football</option><option value="cricket">Cricket</option><option value="netball">Netball</option><option value="basketball">Basketball</option><option value="rugby">Rugby</option><option value="esports">E-sports</option><option value="other">Other</option>
                        </select>
                    </div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Number of Athletes *</label>
                        <select class="ra-select" name="player_count" required>
                            <option value="under-15">Under 15</option><option value="15-25">15-25</option><option value="25-50">25-50</option><option value="50+">50+</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Age Group *</label>
                        <select class="ra-select" name="age_group" required>
                            <option value="under-15">Under 15</option><option value="under-18">Under 18</option><option value="under-21">Under 21</option><option value="open">Open (all ages)</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">Social Media / Website</label><input class="ra-input" type="text" name="social_links" placeholder="Instagram, Facebook, or website links"></div>
            </div>

            
            <div x-show="step === 4">
                <p class="ra-section-title">Sponsorship Details</p>
                <div class="ra-field"><label class="ra-label">Estimated Budget *</label>
                    <select class="ra-select" name="budget_range" required>
                        <option value="under-500">Under $500 (jerseys + banners)</option><option value="500-1000">$500-$1,000 (full kit + event day)</option><option value="1000-2000">$1,000-$2,000 (season sponsorship)</option><option value="2000+">$2,000+ (major partnership)</option>
                    </select>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Upcoming Event / Season Date</label><input class="ra-input" type="text" name="event_date" placeholder="e.g. March 2026 or Term 2"></div>
                    <div class="ra-field"><label class="ra-label">Event Location</label><input class="ra-input" type="text" name="event_location" placeholder="National Sports Stadium, Harare"></div>
                </div>
                <div class="ra-field"><label class="ra-label">Previous Sponsors</label><input class="ra-input" type="text" name="past_sponsors" placeholder="List any previous or current sponsors"></div>
                <div class="ra-field"><label class="ra-label">Media / Audience Reach</label><textarea class="ra-textarea" name="media_coverage" rows="2" placeholder="Expected audience, TV/radio, social media reach..."></textarea></div>
                <div class="ra-field"><label class="ra-label">What would this sponsorship help you achieve? *</label><textarea class="ra-textarea" name="goals" rows="3" required placeholder="Tell us about your team, upcoming events, and how sponsorship would help..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Community Impact *</label><textarea class="ra-textarea" name="impact_statement" rows="3" required placeholder="How does your programme impact the community? How many young people benefit?"></textarea></div>
            </div>

            <div class="ra-nav">
                <button type="button" class="ra-btn-back" x-show="step > 1" @click="step--">Back</button>
                <div style="flex:1;"></div>
                <button type="button" class="ra-btn-next" x-show="step < totalSteps" @click="if(validateStep($refs.formSports, step)) step++">Next</button>
                <button type="button" class="ra-btn" x-show="step === totalSteps" @click="if(validateStep($refs.formSports, step)) $refs.formSports.submit()">Submit Application</button>
            </div>
        </form>
    </div>


    
    
    
    <div x-show="active === 'orion'" x-cloak x-data="{ step: 1, totalSteps: 5 }" class="ra-form-panel">
        <h2 class="ra-form-title">Apply to Orion 5</h2>
        <p class="ra-form-subtitle">12-week health-tech training. AI diagnostics, telemedicine, mHealth.</p>

        <div class="ra-steps">
            <template x-for="i in totalSteps" :key="i">
                <div class="ra-step" :class="{ 'ra-step-active': step === i, 'ra-step-done': step > i }">
                    <div class="ra-step-dot"></div>
                    <span class="ra-step-label" x-text="['Account','Personal','Background','Program','Materials'][i-1]"></span>
                </div>
            </template>
        </div>

        <form method="POST" action="/orion/apply" enctype="multipart/form-data" x-ref="formOrion" novalidate>

            
            <div x-show="step === 1">
                <p class="ra-section-title">Account Details</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Full Name *</label><input class="ra-input" type="text" name="full_name" required placeholder="Tendai Mupfurutsa"></div>
                    <div class="ra-field"><label class="ra-label">Email *</label><input class="ra-input" type="email" name="email" required placeholder="tendai@example.com"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Password *</label><input class="ra-input" type="password" name="password" required minlength="8" placeholder="Min 8 characters"></div>
                    <div class="ra-field"><label class="ra-label">Phone *</label><input class="ra-input" type="tel" name="phone" required placeholder="+263 77 123 4567"></div>
                </div>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Date of Birth *</label><input class="ra-input" type="date" name="date_of_birth" required></div>
                    <div class="ra-field"><label class="ra-label">Country *</label>
                        <select class="ra-select" name="country" required>
                            <option value="" disabled selected>Select country</option><option value="ZW">Zimbabwe</option><option value="ZA">South Africa</option><option value="MZ">Mozambique</option><option value="BW">Botswana</option><option value="ZM">Zambia</option><option value="MW">Malawi</option><option value="NA">Namibia</option><option value="TZ">Tanzania</option><option value="KE">Kenya</option><option value="NG">Nigeria</option><option value="GH">Ghana</option><option value="RW">Rwanda</option><option value="UG">Uganda</option><option value="ET">Ethiopia</option><option value="US">United States</option><option value="GB">United Kingdom</option><option value="CA">Canada</option><option value="AU">Australia</option><option value="OTHER">Other</option>
                        </select>
                    </div>
                </div>
                <p class="ra-hint" style="margin-top:0.5rem;">Submitting creates your Rails ID and sends a one-time code to verify your email. Platform access is enabled once your application is reviewed.</p>
            </div>

            
            <div x-show="step === 2">
                <p class="ra-section-title">Personal Information</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">City *</label>
                        <select class="ra-select" name="city" required>
                            <option value="Harare">Harare</option><option value="Bulawayo">Bulawayo</option><option value="Mutare">Mutare</option><option value="Chiredzi">Chiredzi</option><option value="Other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">LinkedIn Profile</label><input class="ra-input" type="url" name="linkedin_url" placeholder="https://linkedin.com/in/..."></div>
                </div>
            </div>

            
            <div x-show="step === 3">
                <p class="ra-section-title">Background & Experience</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Your Background *</label>
                        <select class="ra-select" name="background" required>
                            <option value="developer">Software Developer</option><option value="healthcare">Healthcare Professional</option><option value="student">Student</option><option value="researcher">Researcher</option><option value="other">Other</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Technical Skill *</label>
                        <select class="ra-select" name="technical_skill" required>
                            <option value="none">No coding experience</option><option value="basic">Basic</option><option value="intermediate">Intermediate</option><option value="advanced">Advanced</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">Current Institution / Organisation</label><input class="ra-input" type="text" name="institution" placeholder="University, hospital, company, or self-employed"></div>
                <div class="ra-field"><label class="ra-label">Healthcare Experience</label><textarea class="ra-textarea" name="healthcare_exp" rows="2" placeholder="Describe any experience in healthcare, health-tech, or health data..."></textarea></div>
            </div>

            
            <div x-show="step === 4">
                <p class="ra-section-title">Program Interest</p>
                <div class="ra-row">
                    <div class="ra-field"><label class="ra-label">Preferred Track *</label>
                        <select class="ra-select" name="track_interest" required>
                            <option value="ai-diagnostics">AI-Powered Diagnostics</option><option value="telemedicine">Telemedicine Platforms</option><option value="health-data">Health Data Analytics</option><option value="mhealth">Mobile Health (mHealth)</option><option value="pharmacy">Pharmacy & Supply Chain</option>
                        </select>
                    </div>
                    <div class="ra-field"><label class="ra-label">Availability *</label>
                        <select class="ra-select" name="availability" required>
                            <option value="full-time">Full-time (40 hrs/week)</option><option value="part-time">Part-time (20 hrs/week)</option><option value="evenings-weekends">Evenings & weekends</option>
                        </select>
                    </div>
                </div>
                <div class="ra-field"><label class="ra-label">Health-Tech Project Idea</label><textarea class="ra-textarea" name="project_idea" rows="3" placeholder="Do you have a specific health-tech project in mind? Describe it..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Why do you want to join Orion 5? *</label><textarea class="ra-textarea" name="motivation" rows="3" required placeholder="What draws you to health-tech? What problem do you want to solve?"></textarea></div>
                <div class="ra-field"><label class="ra-label">How will you apply skills in your community? *</label><textarea class="ra-textarea" name="community_plan" rows="3" required placeholder="Describe how you plan to use what you learn to improve healthcare access..."></textarea></div>
                <div class="ra-field"><label class="ra-label">Need technical assistance?</label>
                    <select class="ra-select" name="technical_assistance">
                        <option value="no">No</option><option value="mentorship">Mentorship</option><option value="hardware">Hardware / devices</option><option value="cloud">Cloud infrastructure</option><option value="data">Health data access</option>
                    </select>
                </div>
            </div>

            
            <div x-show="step === 5">
                <p class="ra-section-title">Supporting Materials</p>
                <div class="ra-field">
                    <label class="ra-label">Introduction Video URL</label>
                    <input class="ra-input" type="url" name="video_url" placeholder="YouTube, Loom, or Vimeo link">
                    <p class="ra-hint">A 1-2 minute video introducing yourself and your interest in health-tech.</p>
                </div>
                <div class="ra-field">
                    <label class="ra-label">CV or Portfolio (PDF, max 10MB)</label>
                    <input class="ra-file" type="file" name="deck_file" accept=".pdf,.doc,.docx">
                    <p class="ra-hint">Upload your CV, portfolio, or project documentation.</p>
                </div>
                <div class="ra-review-box">
                    <p class="ra-review-title">Ready to submit?</p>
                    <p class="ra-review-text">Submitting files your application and creates your Rails ID. You'll verify your email on the next screen.</p>
                </div>
            </div>

            <div class="ra-nav">
                <button type="button" class="ra-btn-back" x-show="step > 1" @click="step--">Back</button>
                <div style="flex:1;"></div>
                <button type="button" class="ra-btn-next" x-show="step < totalSteps" @click="if(validateStep($refs.formOrion, step)) step++">Next</button>
                <button type="button" class="ra-btn" x-show="step === totalSteps" @click="if(validateStep($refs.formOrion, step)) $refs.formOrion.submit()">Submit Application</button>
            </div>
        </form>
    </div>

</section>


<footer class="footer">
    <div class="footer-links">
        <a href="/features">Features</a>
        <a href="/starter-kits">Starter Kits</a>
        <a href="/api-docs">API</a>
        <a href="/about">About</a>
        <a href="/careers">Careers</a>
    </div>
    <p>&copy; 2026 Rails Net. All rights reserved.</p>
</footer>

<script>
function validateStep(form, step) {
    
    var steps = form.querySelectorAll(':scope > div[x-show]');
    var current = steps[step - 1];
    if (!current) return true;
    var fields = current.querySelectorAll('input[required],select[required],textarea[required]');
    for (var i = 0; i < fields.length; i++) {
        if (!fields[i].reportValidity()) return false;
    }
    return true;
}
</script>

<style>
    [x-cloak] { display: none !important; }

     
    .ra-section { max-width:740px;margin:0 auto;padding:0 1.5rem 4rem; }
    .ra-section-heading { text-align:center;margin-bottom:2rem; }
    .ra-section-heading h2 { font-size:1.75rem;font-weight:800;letter-spacing:-0.03em;color:var(--text);margin-bottom:0.5rem; }
    .ra-section-heading p { font-size:0.9375rem;color:var(--text-2);line-height:1.6;max-width:520px;margin:0 auto; }

     
    .ra-shell { background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:2.5rem; }

     
    .ra-cards { display:grid;grid-template-columns:repeat(2,1fr);gap:0.875rem;margin-bottom:2rem; }
    .ra-card { cursor:pointer;padding:1.25rem 1.5rem;border:1px solid var(--border);border-radius:16px;background:var(--bg);transition:border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
    .ra-card:hover { border-color:var(--border-strong);box-shadow:0 6px 24px rgba(0,0,0,0.05);transform:translateY(-2px); }
    .ra-card-active, .ra-card-active:hover { border-color:var(--accent);background:var(--accent-soft);box-shadow:none;transform:none; }
    .ra-card-label { font-size:0.75rem;font-weight:600;color:var(--text-3);text-transform:uppercase;letter-spacing:0.05em;margin-bottom:0.375rem; }
    .ra-card-title { font-size:1rem;font-weight:700;letter-spacing:-0.01em;margin-bottom:0.375rem; }
    .ra-card-desc { font-size:0.8125rem;color:var(--text-2);line-height:1.5; }

     
    .ra-form-panel { background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:2.5rem;margin-bottom:2rem; }
    .ra-form-title { font-size:1.25rem;font-weight:800;letter-spacing:-0.02em;color:var(--text);margin-bottom:0.375rem; }
    .ra-form-subtitle { font-size:0.875rem;color:var(--text-2);margin-bottom:1.5rem; }

     
    .ra-steps { display:flex;align-items:flex-start;gap:0;margin-bottom:2rem;position:relative; }
    .ra-step { flex:1;display:flex;flex-direction:column;align-items:center;position:relative; }
    .ra-step:not(:last-child)::after {
        content:'';position:absolute;top:5px;left:calc(50% + 10px);right:calc(-50% + 10px);
        height:1px;background:var(--border);z-index:0;
    }
    .ra-step-done:not(:last-child)::after { background:var(--accent); }
    .ra-step-dot {
        width:10px;height:10px;border-radius:50%;background:var(--border);
        position:relative;z-index:1;transition:all 0.2s;
    }
    .ra-step-active .ra-step-dot { background:var(--accent); }
    .ra-step-done .ra-step-dot { background:var(--accent); }
    .ra-step-label { font-size:0.6875rem;font-weight:600;color:var(--text-3);margin-top:0.5rem;text-align:center; }
    .ra-step-active .ra-step-label { color:var(--accent); }
    .ra-step-done .ra-step-label { color:var(--text-2); }

     
    .ra-section-title { font-size:0.8125rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:1rem; }

     
    .ra-field { margin-bottom:0.875rem; }
    .ra-label { display:block;font-size:0.8125rem;font-weight:600;color:var(--text);margin-bottom:0.375rem; }
    .ra-input { width:100%;padding:0.6875rem 1rem;background:var(--bg);border:1px solid var(--border-strong);border-radius:10px;font-size:0.875rem;color:var(--text);font-family:inherit;outline:none;transition:border-color 0.15s, box-shadow 0.15s; }
    .ra-input::placeholder { color:var(--text-3); }
    .ra-input:focus { border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft); }
    .ra-select { width:100%;padding:0.6875rem 1rem;background:var(--bg);border:1px solid var(--border-strong);border-radius:10px;font-size:0.875rem;color:var(--text);font-family:inherit;outline:none;appearance:none;cursor:pointer;transition:border-color 0.15s, box-shadow 0.15s; }
    .ra-select:focus { border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft); }
    .ra-textarea { width:100%;padding:0.6875rem 1rem;background:var(--bg);border:1px solid var(--border-strong);border-radius:10px;font-size:0.875rem;color:var(--text);font-family:inherit;outline:none;resize:vertical;line-height:1.6;transition:border-color 0.15s, box-shadow 0.15s; }
    .ra-textarea::placeholder { color:var(--text-3); }
    .ra-textarea:focus { border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft); }
    .ra-file { width:100%;padding:0.625rem 1rem;background:var(--panel-2);border:1px solid var(--border);border-radius:10px;font-size:0.875rem;color:var(--text-2);font-family:inherit;cursor:pointer; }
    .ra-hint { font-size:0.75rem;color:var(--text-3);margin-top:0.25rem;line-height:1.5; }
    .ra-row { display:grid;grid-template-columns:1fr 1fr;gap:0.75rem; }
    .ra-sep { border-top:1px solid var(--border);margin:1.25rem 0; }

     
    .ra-review-box { padding:1.25rem 0;margin-top:0.5rem; }
    .ra-review-title { font-size:0.9375rem;font-weight:700;color:var(--text);margin-bottom:0.25rem; }
    .ra-review-text { font-size:0.8125rem;color:var(--text-2);line-height:1.5; }

     
    .ra-nav { display:flex;align-items:center;gap:0.75rem;margin-top:2rem; }
    .ra-btn { padding:0.75rem 1.625rem;background:var(--ink);color:#fff;border:none;border-radius:10px;font-size:0.9375rem;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity 0.15s; }
    .ra-btn:hover { opacity:0.88; }
    .ra-btn-next { padding:0.75rem 1.625rem;background:var(--ink);color:#fff;border:none;border-radius:10px;font-size:0.9375rem;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity 0.15s;display:inline-flex;align-items:center;gap:0.375rem; }
    .ra-btn-next:hover { opacity:0.88; }
    .ra-btn-next::after { content:'\2192'; }
    .ra-btn-back { padding:0.75rem 0;background:none;color:var(--text-2);border:none;font-size:0.9375rem;font-weight:600;font-family:inherit;cursor:pointer;transition:color 0.15s;display:inline-flex;align-items:center;gap:0.375rem; }
    .ra-btn-back:hover { color:var(--text); }
    .ra-btn-back::before { content:'\2190'; }

    @media (max-width: 640px) {
        .ra-section { padding:0 1rem 3rem; }
        .ra-shell, .ra-form-panel { padding:1.5rem 1.25rem;border-radius:14px; }
        .ra-row { grid-template-columns: 1fr; }
        .ra-cards { grid-template-columns: 1fr; }
        .ra-step-label { font-size:0.625rem; }
        .ra-nav { flex-wrap:wrap; }
        .ra-btn, .ra-btn-next { padding:0.75rem 1.25rem; }
    }
</style>

    <script>
    
    document.addEventListener('DOMContentLoaded', function() {
        var navbar = document.querySelector('.navbar');
        var links = document.querySelector('.navbar-links');
        if (!navbar || !links) return;

        var isAuth = document.body.getAttribute('data-authenticated') === 'true';

        
        var standardLinks = '<a href="/features">Features</a>'
            + '<a href="/launchpad">Launchpad</a>'
            + '<a href="/sites">Sites</a>'
            + '<a href="/pricing">Pricing</a>'
            + '<a href="/about">About</a>'
            + '<a href="/legal">Legal</a>';

        if (isAuth) {
            standardLinks += '<a href="/dashboard" class="navbar-cta">Dashboard</a>';
        } else {
            standardLinks += '<a href="/login">Sign in</a>'
                + '<a href="/register" class="navbar-cta">Request access</a>';
        }

        links.innerHTML = standardLinks;

        
        var brand = navbar.querySelector('.navbar-brand');
        if (brand) {
            brand.href = '/';
            brand.innerHTML = '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">'
                + '<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/>'
                + '</svg><span>Rails Cloud</span>';
        }

        
        var toggle = document.createElement('button');
        toggle.className = 'navbar-toggle';
        toggle.setAttribute('aria-label', 'Toggle menu');
        toggle.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"/></svg>';
        navbar.appendChild(toggle);

        
        var menu = document.createElement('div');
        menu.className = 'navbar-mobile-menu';
        menu.innerHTML = links.innerHTML;
        navbar.appendChild(menu);

        toggle.addEventListener('click', function() {
            var open = menu.classList.toggle('open');
            toggle.innerHTML = open
                ? '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"/></svg>'
                : '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"/></svg>';
        });

        
        var footerLinks = document.querySelector('.footer-links');
        if (footerLinks) {
            footerLinks.innerHTML = '<a href="/features">Features</a>'
                + '<a href="/launchpad">Launchpad</a>'
                + '<a href="/sites">Sites</a>'
                + '<a href="/pricing">Pricing</a>'
                + '<a href="/about">About</a>'
                + '<a href="/legal">Legal</a>'
                + '<a href="/status">Status</a>';
        }
        var footerCopy = document.querySelector('.footer p');
        if (footerCopy) {
            footerCopy.textContent = '\u00A9 2026 Rails Cloud. All rights reserved.';
        }

        
        
        if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches && 'IntersectionObserver' in window) {
            var selectors = '.feature-card, .product-card, .section-head, .cta, section > h2, .pr-card, .pr-table-wrap, .doc-card';
            var nodes = Array.prototype.slice.call(document.querySelectorAll(selectors));
            var siblingIndex = new Map();
            nodes.forEach(function (el) {
                if (el.closest('.hero')) return; 
                var parent = el.parentElement;
                var idx = siblingIndex.get(parent) || 0;
                siblingIndex.set(parent, idx + 1);
                el.classList.add('rv');
                el.style.setProperty('--rv-delay', Math.min(idx * 0.07, 0.42) + 's');
            });
            var io = new IntersectionObserver(function (entries) {
                entries.forEach(function (e) {
                    if (e.isIntersecting) {
                        e.target.classList.add('in-view');
                        io.unobserve(e.target);
                    }
                });
            }, { threshold: 0.12, rootMargin: '0px 0px -5% 0px' });
            document.querySelectorAll('.rv').forEach(function (el) { io.observe(el); });
        }
    });
    </script>

    
    <div x-data="{ show: !localStorage.getItem('rc_cookies') }" x-show="show" x-transition
         style="position:fixed;bottom:1rem;left:1rem;right:1rem;z-index:999;pointer-events:none;">
        <div style="pointer-events:auto;max-width:640px;margin:0 auto;background:#FFFFFF;border:1px solid var(--border);border-radius:14px;padding:0.875rem 1.125rem;box-shadow:0 12px 40px rgba(0,0,0,0.1);display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;">
            <p style="font-size:0.8125rem;color:var(--text-2);line-height:1.5;flex:1;min-width:240px;">
                We use cookies to improve your experience. See our
                <a href="/legal" style="color:var(--accent);font-weight:500;">Cookie Policy</a>.
            </p>
            <div style="display:flex;align-items:center;gap:0.5rem;flex-shrink:0;">
                <button @click="localStorage.setItem('rc_cookies','accepted'); show=false"
                        style="padding:0.4375rem 1rem;background:var(--ink);color:#fff;border:none;border-radius:8px;font-size:0.8125rem;font-weight:600;cursor:pointer;font-family:inherit;">Accept</button>
                <button @click="localStorage.setItem('rc_cookies','dismissed'); show=false"
                        style="padding:0.4375rem 1rem;background:var(--panel-2);color:var(--text-2);border:none;border-radius:8px;font-size:0.8125rem;font-weight:600;cursor:pointer;font-family:inherit;">Dismiss</button>
            </div>
        </div>
    </div>
</body>
</html>

