/*
 * rcubetek.com — the site's own look, on top of rcube-html's stylesheet (assets/vendors/rcube-html/styles.css),
 * which gives the grid (rc-container, rc-row, rc-col-*), buttons, utilities and the form fields.
 * Colours: the logo's red, with its cube's green and blue as accents. Light and dark: <html data-rc-theme="dark">
 * (set by assets/js/site.js from the visitor's choice or their system setting).
 */
:root {
  --brand: #e3241b;
  --brand-rgb: 227, 36, 27;
  --brand-ink: #b81810;
  --cube-green: #22a35a;
  --cube-blue: #2463eb;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #fff3f2;
  --line: #e4e7ec;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 16px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* rcube-html follows the brand */
  --rc-primary: var(--brand);
  --rc-primary-rgb: var(--brand-rgb);
  --rc-body-color: var(--text);
  --rc-body-bg: var(--bg);
  --rc-border-color: var(--line);
  --rc-border-radius: 10px;
  --rc-font-size: 1rem;
}
:root[data-rc-theme="dark"] {
  --brand: #ff4d42;
  --brand-rgb: 255, 77, 66;
  --brand-ink: #ff7a71;
  --ink: #f2f4f7;
  --text: #d0d5dd;
  --muted: #98a2b3;
  --bg: #0c111d;
  --bg-soft: #121a2b;
  --bg-tint: #2a1416;
  --line: #243049;
  --card: #141c2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }

.rc-container { padding-left: 20px; padding-right: 20px; }
@media (min-width: 1400px) { .rc-container { max-width: 1240px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .rc-container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand .logo-dark { display: none; }
:root[data-rc-theme="dark"] .brand .logo-light { display: none; }
:root[data-rc-theme="dark"] .brand .logo-dark { display: block; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-rc-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-rc-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

/* buttons: rcube-html's rc-btn, sized for a website */
.btn { --rc-btn-padding-y: .7rem; --rc-btn-padding-x: 1.3rem; --rc-btn-radius: 999px; font-weight: 600; text-decoration: none !important; }
.btn-sm { --rc-btn-padding-y: .45rem; --rc-btn-padding-x: 1rem; font-size: .92rem; }
.rc-btn-primary { --rc-btn-color: #fff; --rc-btn-bg: var(--brand); --rc-btn-border: var(--brand); --rc-btn-hover-color: #fff; --rc-btn-hover-bg: var(--brand-ink); --rc-btn-hover-border: var(--brand-ink); }
.btn-ghost { --rc-btn-color: var(--ink); --rc-btn-bg: transparent; --rc-btn-border: var(--line); --rc-btn-hover-bg: var(--bg-soft); --rc-btn-hover-color: var(--ink); --rc-btn-hover-border: var(--line); }
.btn-light { --rc-btn-color: var(--brand-ink); --rc-btn-bg: #fff; --rc-btn-border: #fff; --rc-btn-hover-bg: #fff3f2; --rc-btn-hover-color: var(--brand-ink); --rc-btn-hover-border: #fff3f2; }

@media (max-width: 991.98px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 12px 20px 20px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .site-header.is-open .nav { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--cube-green), var(--cube-blue)); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* page title band (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); background:
  radial-gradient(900px 300px at 85% -10%, rgba(var(--brand-rgb), .10), transparent 70%),
  radial-gradient(700px 260px at 0% 0%, rgba(36, 99, 235, .08), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); overflow: hidden; background:
  radial-gradient(1100px 420px at 90% -20%, rgba(var(--brand-rgb), .12), transparent 70%),
  radial-gradient(800px 380px at -10% 10%, rgba(36, 99, 235, .09), transparent 70%),
  radial-gradient(700px 300px at 50% 120%, rgba(34, 163, 90, .08), transparent 70%), var(--bg); }
.hero h1 { max-width: 15ch; }
.hero h1 .hl { background: linear-gradient(90deg, var(--brand), #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; color: var(--muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--cube-green); }

/* the hero picture: a neural network flowing into an "AI" chip (assets/img/hero-ai.svg, animated inside the SVG) */
.cube-stage { display: grid; place-items: center; min-height: 360px; }
.hero-art { display: block; width: 100%; max-width: 480px; height: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cube-tags { position: relative; }
.cube-tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.cube-tag i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cube-tag.t1 { top: 2%; left: 0; } .cube-tag.t1 i { background: var(--brand); }
.cube-tag.t2 { top: 2%; right: 0; } .cube-tag.t2 i { background: var(--cube-blue); }
.cube-tag.t3 { bottom: 2%; right: 6%; } .cube-tag.t3 i { background: var(--cube-green); }
@media (max-width: 991.98px) { .cube-stage { min-height: 300px; margin-top: 40px; } }

/* ---------- cards ---------- */
.card {
  height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), .45); }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; transition: transform .2s; }
a.card:hover .more::after { transform: translateX(3px); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-tint); color: var(--brand-ink);
}
.icon svg { width: 24px; height: 24px; }
.icon.green { background: color-mix(in srgb, var(--cube-green) 14%, var(--card)); color: var(--cube-green); }
.icon.blue { background: color-mix(in srgb, var(--cube-blue) 14%, var(--card)); color: var(--cube-blue); }
.grid-gap { --rc-gutter-x: 24px; --rc-gutter-y: 24px; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--brand-ink); margin-bottom: 14px; align-self: flex-start;
}
.badge.soon { background: color-mix(in srgb, var(--cube-blue) 14%, var(--card)); color: var(--cube-blue); }
.badge.live { background: color-mix(in srgb, var(--cube-green) 16%, var(--card)); color: var(--cube-green); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--cube-green) 16%, var(--card))
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a35a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 2.4rem; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--brand), var(--cube-blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--muted); }

/* split feature (services / products) */
.feature { padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.feature .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.feature .tags span { font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.side-nav a { display: block; padding: 8px 14px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 500; }
.side-nav a:hover { color: var(--ink); border-color: var(--brand); text-decoration: none; }

/* quote / values */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.person { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--cube-blue));
}
.person h3 { margin: 0; }
.person p { margin: 0; color: var(--muted); }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(36px, 6vw, 64px); color: #fff;
  background: radial-gradient(600px 240px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(120deg, var(--brand-ink), var(--brand) 55%, #ff6a3d);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 40rem; }
:root[data-rc-theme="dark"] .cta { background: radial-gradient(600px 240px at 100% 0%, rgba(255, 255, 255, .12), transparent 70%), linear-gradient(120deg, #8f1510, #c9221a 55%, #d8502c); }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { margin: 0; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--ink); }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); display: block; filter: saturate(.9); }
:root[data-rc-theme="dark"] .map { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* the forms and the FAQ drawn by rcube-html */
rcube-form { display: block; }
.form-card .rc-label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.form-card .rc-input, .form-card .rc-select { padding: .7rem .9rem; background-color: var(--bg); }
.form-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.ok { background: color-mix(in srgb, var(--cube-green) 14%, var(--card)); color: var(--ink); }
.faq .rc-accordion { --rc-accordion-bg: var(--card); }
.faq .rc-accordion-item { border-color: var(--line); background: var(--card); }
.faq .rc-accordion-button { font-weight: 600; color: var(--ink); background: var(--card); padding: 1.1rem 1.25rem; font-size: 1.02rem; }
.faq .rc-accordion-body { color: var(--text); padding: 0 1.25rem 1.2rem; }
/* the plain FAQ shown before the script draws it (and to search engines) */
.faq-plain details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: var(--card); }
.faq-plain summary { font-weight: 600; color: var(--ink); cursor: pointer; }
.faq-plain p { margin: 10px 0 0; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; }

/* job posting */
.posting { white-space: normal; }
.posting dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 1.2em; }
.posting dt { font-weight: 600; color: var(--ink); }
.posting dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #0b1220; color: #a6b0c3; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #d6dbe5; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* small screens */
@media (max-width: 575.98px) {
  .rc-container { padding-left: 16px; padding-right: 16px; }
  .card { padding: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .posting dl { grid-template-columns: 1fr; }
}
.form-card .grid-gap { --rc-gutter-y: 0px; }

.noscript { max-width: 640px; margin: 48px auto; padding: 0 16px; }
.noscript img { display: block; margin-bottom: 16px; }

/* Privacy Policy and Terms (privacy.html, terms.html): readable headings and spacing */
.legal h2 { font-size: 1.35rem; margin: 32px 0 12px; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0; }
.legal p { line-height: 1.7; }
