// Careers
function CareersPage() {
  const roles = [
    { t: "Support Engineer · T3", team: "Customer Success", loc: "Limassol", type: "Full-time", d: "Senior product support — own escalations, debug across CRM/Client Area/Payments/BI, ship fixes and feature requests with Eng. Trading-platform experience strongly preferred.", c: "#7A52FF" },
    { t: "DevOps Engineer", team: "Infrastructure", loc: "Limassol", type: "Full-time", d: "Run our multi-region infra — Kubernetes, Terraform, observability stack, CI/CD pipelines, customer-tenant orchestration. SOC 2 / ISO 27001 environment.", c: "#F118B2" },
    { t: "Senior Backend Engineer", team: "Engineering", loc: "Limassol", type: "Full-time", d: "Build the core platform — CRM engine, payments orchestration, trading-event pipelines. Java / Kotlin / Go preferred.", c: "#FFB000" },
    { t: "Backend Engineer", team: "Engineering", loc: "Limassol", type: "Full-time", d: "Mid-level role on the core platform team. Strong fundamentals over framework experience.", c: "#FF7A45" },
    { t: "Frontend Engineer", team: "Engineering", loc: "Limassol", type: "Full-time", d: "React + TypeScript across CRM, Client Area and BI dashboards. Real attention to performance and UX detail.", c: "#2BD974" },
    { t: "Site Reliability Engineer", team: "Infrastructure", loc: "Limassol", type: "Full-time", d: "On-call rotation, capacity planning, incident response, customer-tenant SLAs. Linux, networking and observability foundations.", c: "#24A1DE" },
  ];

  return (
    <Site>
      <PageHero
        breadcrumb={[{ label: "Company" }, { label: "Careers" }]}
        eyebrow="Careers"
        title={<>Build the OS for <span className="gradient-text">trading companies</span>.</>}
        sub="We're 110 people across Limassol, Dubai and New York — operators, engineers and ex-brokers building the platform 200+ trading companies run on. Right now we're hiring across Engineering, DevOps and Support — all based in our Limassol HQ."
        ctaPrimary={{ label: "See open roles", href: "#roles" }}
        ctaSecondary={{ label: "Email talent team", href: "pages/contact.html" }}
      />

      <StatRow items={[
        { v: "110", l: "People · Limassol, Dubai, New York" },
        { v: "200+", l: "Customers shipping on what we build" },
        { v: "Since 2016", l: "Profitable. Independent. Hiring." },
        { v: "6", l: "Open roles · all in Limassol" },
      ]}/>

      <section id="roles" className="section-pad">
        <div className="container">
          <div className="section-head">
            <span className="eyebrow">Open roles</span>
            <h2>Join the Limassol HQ.</h2>
            <p>We're scaling our engineering and operations team. All roles below are based in our Limassol office — we work in person and ship together.</p>
          </div>
          <div className="careers-roles">
            {roles.map((r) => (
              <a key={r.t} href="pages/contact.html" className="careers-role" style={{ "--c": r.c }}>
                <div className="careers-role-mark"/>
                <div className="careers-role-head">
                  <div>
                    <div className="careers-role-team">{r.team}</div>
                    <div className="careers-role-title">{r.t}</div>
                  </div>
                  <div className="careers-role-meta">
                    <span className="careers-pill">{r.loc}</span>
                    <span className="careers-pill alt">{r.type}</span>
                  </div>
                </div>
                <div className="careers-role-desc">{r.d}</div>
                <div className="careers-role-cta">Apply <span>→</span></div>
              </a>
            ))}
          </div>
        </div>
        <style>{`
          .careers-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
          .careers-role { position: relative; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s, background .15s; display: block; }
          .careers-role:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--c) 60%, var(--line)); background: var(--surface-2); }
          .careers-role-mark { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c); }
          .careers-role-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
          .careers-role-team { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); font-weight: 700; margin-bottom: 6px; }
          .careers-role-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
          .careers-role-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
          .careers-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--text); }
          .careers-pill.alt { color: var(--text-dim); }
          .careers-role-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }
          .careers-role-cta { font-size: 12.5px; font-weight: 600; color: var(--c); display: inline-flex; gap: 4px; }
          .careers-role-cta span { transition: transform .15s; }
          .careers-role:hover .careers-role-cta span { transform: translateX(3px); }
          @media (max-width: 800px) { .careers-roles { grid-template-columns: 1fr; } .careers-role-meta { flex-direction: row; align-items: center; } }
        `}</style>
      </section>

      <FeatureGrid
        eyebrow="Working at Antelope"
        title="What we offer."
        features={[
          { t: "In-person Limassol HQ", d: "Modern office, sea views, structured in-office work. We ship faster together — and Limassol's a great place to live." },
          { t: "Real ownership", d: "Equity for every full-time hire. Profitable, independent company since 2016 — your shares mean something." },
          { t: "Senior-heavy team", d: "No bureaucracy. You ship to production in week one. Code reviews from people who've built the same thing twice." },
          { t: "Customer-shaped roadmap", d: "We sit next to operators every week. You'll see the impact of your code in customer dashboards by Friday." },
          { t: "Pay in fiat or crypto", d: "Salary, bonuses and equity vesting can be paid in EUR, USD, USDT or USDC — whichever works for you." },
          { t: "Health & relocation", d: "Private health, generous relocation package for international hires, visa support for Cyprus." },
        ]}
      />

      <FAQ items={[
        { q: "Are these roles remote?", a: "No. All currently open roles are based in our Limassol HQ. We work in-person — it's how we ship as fast as we do." },
        { q: "Will you sponsor relocation?", a: "Yes. We offer a full relocation package for international hires, including visa support, temporary housing and flights for you and your family." },
        { q: "What's the interview process?", a: "Recruiter call → hiring-manager conversation → technical interview (or work sample) → team conversation → reference checks → offer. Two weeks end-to-end for most roles." },
        { q: "Don't see a role that fits?", a: "Email us anyway. If you're a senior engineer, ex-broker or operator who's lived this problem, we'll find a way to talk." },
        { q: "Are you hiring outside Limassol?", a: "Our Dubai and New York offices currently focus on go-to-market and customer success. As they grow we'll post roles there too — keep an eye on this page." },
      ]}/>

      <CTASection title="Build the OS for trading. From Limassol." primary={{ label: "Email talent team", href: "pages/contact.html" }} secondary={{ label: "See open roles", href: "#roles" }}/>
    </Site>
  );
}
ReactDOM.createRoot(document.getElementById("root")).render(<CareersPage/>);
