/* =========================================================
   HEIKO PARTNERS - STYLE
   Colors are taken from the logo. To change a color across
   the whole site, change it only here in :root.
   ========================================================= */
:root {
  --navy: #1D3A64;        /* logo blue: headings, dark sections */
  --navy-dark: #0E2140;   /* hero + footer background */
  --blue-bright: #2F6FD0; /* accents, icons */
  --orange: #FF7C21;      /* logo orange: buttons, highlights */
  --orange-dark: #E8660D;
  --gold: #D6A932;        /* logo gold wave: small accents */
  --bg: #FFFFFF;
  --bg-light: #F4F7FC;
  --text: #1F2937;
  --muted: #5B6575;
  --line: #E4E9F2;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Plus Jakarta Sans", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: .25s; border: 2px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(255,124,33,.35); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--orange-dark); }
.btn-white:hover { background: var(--navy-dark); color: #fff; }

/* ---------- 1. Top bar ---------- */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.7); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a:hover { color: var(--orange); }

/* ---------- 2. Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(14,33,64,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--navy); font-size: 17px; }
.brand img { height: 40px; width: auto; }
.brand b { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 15px; color: var(--navy); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--orange); transition: .25s; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--navy); cursor: pointer; }

/* ---------- 3. Hero ---------- */
.hero { position: relative; background: var(--navy-dark); color: #fff; padding: 110px 0 120px; overflow: hidden; }
.hero::before { /* subtle grid pattern */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 85% 20%, rgba(255,124,33,.28), transparent 70%),
              radial-gradient(700px 500px at 10% 90%, rgba(47,111,208,.35), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 60px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,124,33,.25); }
.hero h1 { font-size: 64px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 22px; }
.grad { background: linear-gradient(90deg, var(--orange), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tiles { display: grid; gap: 16px; }
.htile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-left: 4px solid var(--orange); border-radius: 14px; padding: 20px 22px; backdrop-filter: blur(6px); transition: .25s; }
.htile:nth-child(2) { margin-left: 32px; border-left-color: var(--blue-bright); }
.htile:nth-child(3) { margin-left: 64px; border-left-color: var(--gold); }
.htile:hover { background: rgba(255,255,255,.1); transform: translateX(-4px); }
.htag { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold); margin-bottom: 6px; }
.htile h4 { font-size: 17px; font-weight: 700; }

/* ---------- 4. Stats band ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border-right: none; }
.stats-grid strong { display: block; font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stats-grid div:nth-child(odd) strong { color: var(--orange); }
.stats-grid span { font-size: 14px; color: var(--muted); }

/* ---------- Section basics ---------- */
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; }
.section-head { margin-bottom: 48px; }
.section-tag { display: inline-block; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; margin-bottom: 10px; }
.section h2 { font-size: 42px; line-height: 1.15; letter-spacing: -.8px; color: var(--navy); margin-bottom: 12px; }
.section-dark h2 { color: #fff; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 620px; }

/* ---------- 5. Offering cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--blue-bright)); transform: scaleX(0); transform-origin: left; transition: .35s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(14,33,64,.12); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.icon-orange { background: rgba(255,124,33,.12); color: var(--orange); }
.icon-blue { background: rgba(47,111,208,.12); color: var(--blue-bright); }
.card-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 8px; }
.card h3 { color: var(--navy); font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card-link { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 14px; color: var(--orange); }
.card-link:hover { color: var(--navy); }

/* ---------- 6. Use-case cards ---------- */
.ucard { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .3s; }
.ucard:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(14,33,64,.12); }
.ucard-top { height: 120px; display: grid; place-items: center; color: #fff; }
.ucard-top svg { width: 44px; height: 44px; stroke-width: 1.6; }
.u1 { background: linear-gradient(135deg, var(--navy-dark), var(--blue-bright)); }
.u2 { background: linear-gradient(135deg, var(--orange-dark), var(--gold)); }
.u3 { background: linear-gradient(135deg, var(--navy), #3B5F94); }
.u4 { background: linear-gradient(135deg, var(--orange), #FF9A52); }
.ucard-body { padding: 24px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); background: var(--bg-light); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.ucard h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.ucard p { color: var(--muted); font-size: 15px; }

/* ---------- 7. How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--blue-bright)); opacity: .3; }
.step { position: relative; }
.step span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 18px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--orange); }
.step h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- 8. About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.about-grid > div > p { color: rgba(255,255,255,.8); margin-top: 16px; font-size: 16px; }
.presence { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.loc { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; }
.loc svg { color: var(--orange); }
.loc b { display: block; font-size: 15px; }
.loc span { font-size: 13px; color: rgba(255,255,255,.65); }
.about-box { background: #fff; color: var(--text); border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.about-box h3 { color: var(--navy); font-size: 22px; margin-bottom: 18px; }
.about-box ul { list-style: none; margin-bottom: 26px; }
.about-box li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about-box li:last-child { border-bottom: none; }
.about-box li svg { color: #fff; background: var(--orange); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 3; }

/* ---------- 9. CTA band ---------- */
.cta { position: relative; background: linear-gradient(100deg, var(--orange) 0%, var(--orange-dark) 60%, #C9520A 100%); color: #fff; padding: 64px 0; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 34px; letter-spacing: -.5px; margin-bottom: 6px; }
.cta p { color: rgba(255,255,255,.9); }

/* ---------- 10. Careers ---------- */
.careers { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; background: var(--bg-light); border: 1px solid var(--line); border-radius: 24px; padding: 54px; }
.perks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.perks span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--navy); }
.careers-action { text-align: center; }
.careers-action .small { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------- 11. Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 70px 0 26px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer img { background: #fff; border-radius: 10px; padding: 5px; }
.footer-grid > div > p { max-width: 320px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-grid a { display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 22px; font-size: 13px; }

/* ---------- Scroll animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .hero-inner, .about-grid, .careers { grid-template-columns: 1fr; }
  .hero h1 { font-size: 52px; }
  .htile:nth-child(2), .htile:nth-child(3) { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .topbar-inner > span { display: none; }
  .topbar-inner { justify-content: center; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .section { padding: 70px 0; }
  .section h2 { font-size: 30px; }
  .grid-4, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div { border-right: none; border-bottom: 1px solid var(--line); }
  .careers { padding: 32px 24px; }
  .cta h2 { font-size: 26px; }
}

/* ---------- 12. Request a Demo form (popup) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14,33,64,.65); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 40px 80px rgba(0,0,0,.35); border-top: 5px solid var(--orange); animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--orange); }
.modal-box h3 { color: var(--navy); font-size: 26px; line-height: 1.2; margin-bottom: 6px; }
.modal-sub { color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; font-size: 15px; font-weight: 500; color: var(--text); padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-light); transition: .2s; width: 100%; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(255,124,33,.15); }
.form-grid textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #C62828; font-size: 14px; min-height: 20px; margin-bottom: 8px; }
#demoForm .btn { width: 100%; justify-content: center; border: none; cursor: pointer; }
#demoForm .btn:disabled { opacity: .6; cursor: wait; }
.success { text-align: center; padding: 20px 0; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,124,33,.12); color: var(--orange); display: grid; place-items: center; }
.success-icon svg { width: 32px; height: 32px; stroke-width: 3; }
.success p { color: var(--muted); margin: 8px 0 22px; }
@media (max-width: 760px) {
  .modal-box { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}
.form-grid .hint { font-weight: 500; color: var(--muted); }
.form-grid input[type="file"] { padding: 9px 12px; background: #fff; cursor: pointer; }
.form-grid input[type="file"]::file-selector-button { font: inherit; font-weight: 700; font-size: 13px; color: #fff; background: var(--navy); border: none; border-radius: 8px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
#careersForm .btn { width: 100%; justify-content: center; border: none; cursor: pointer; }
#careersForm .btn:disabled { opacity: .6; cursor: wait; }
