/* ===== Rabilint — static site ===== */
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-400.woff2') format('woff2');font-weight:400;font-display:swap;font-style:normal}
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-500.woff2') format('woff2');font-weight:500;font-display:swap;font-style:normal}
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-700.woff2') format('woff2');font-weight:700;font-display:swap;font-style:normal}
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-900.woff2') format('woff2');font-weight:900;font-display:swap;font-style:normal}

/* ===== Design tokens ===== */
:root{
  --rb-bg: #060A14;
  --rb-panel: #0A1020;
  --rb-accent: #2563EB;
  --rb-accent-dark: #1D4ED8;
  --rb-accent-light: #5B8DEF;
  --rb-heading: #F4F7FF;
  --rb-text: #E6EAF2;
  --rb-body: #C7D0E0;
  --rb-desc: #94A3B8;
  --rb-muted: #8A97AD;
  --rb-muted-light: #9AA6BC;
  --rb-muted-dim: #6B7A93;
  --rb-mono: 'JetBrains Mono', monospace;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  color: var(--rb-body);
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(37,99,235,.18), transparent 60%),
              radial-gradient(900px 600px at -10% 30%, rgba(29,78,216,.12), transparent 55%),
              var(--rb-bg);
}
::selection { background: rgba(37,99,235,.4); color:#fff; }

/* ===== Shared utilities ===== */
.rb-mono { font-family: var(--rb-mono); }
.rb-gradient-text {
  background: linear-gradient(120deg,#60A5FA,var(--rb-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Animations ===== */
@keyframes rb-cursor { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes rb-pulse  { 0%,100%{opacity:.5} 50%{opacity:1} }
@keyframes rb-up     { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:translateY(0)} }

.rb-anim { opacity:0; animation:rb-up .8s cubic-bezier(.2,.7,.3,1) forwards; }
.rb-d1 { animation-delay:.06s; }
.rb-d2 { animation-delay:.14s; }
.rb-d3 { animation-delay:.22s; }
.rb-d4 { animation-delay:.3s; }

/* ===== Layout ===== */
.rb-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 40px;
  scroll-margin-top: 80px;
}
.rb-section--lg { padding: 60px 40px; }

.rb-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.rb-section-head--tight { margin-bottom: 32px; }
.rb-section-head--loose { margin-bottom: 44px; }
.rb-section-title {
  margin: 0;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -.02em;
  color: var(--rb-heading);
}
.rb-section-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(37,99,235,.5), transparent);
}
.rb-section-line--capped { max-width: 280px; }

/* ===== Buttons ===== */
.rb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 13px;
  cursor: pointer;
}
.rb-btn-primary { background: linear-gradient(135deg, var(--rb-accent), var(--rb-accent-dark)); color: #fff; }
.rb-btn-ghost { border: 1px solid rgba(120,150,220,.25); color: var(--rb-text); }
.rb-btn--header { gap: 9px; font-size: 15px; padding: 11px 20px; border-radius: 11px; }
.rb-btn--sm { gap: 9px; font-size: 14px; padding: 11px 18px; border-radius: 11px; white-space: nowrap; }
.rb-btn--xl { gap: 11px; font-size: 17px; padding: 16px 28px; border-radius: 13px; margin-top: 32px; }

.rb-svc, .rb-proj, .rb-projimg, .rb-tech, .rb-btn-primary, .rb-btn-ghost { transition: all .35s cubic-bezier(.2,.7,.3,1); }
.rb-btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(37,99,235,.75); transform: translateY(-2px); }
.rb-btn-ghost:hover { border-color: rgba(37,99,235,.8); background: rgba(37,99,235,.1); }

/* ===== Header ===== */
.rb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8,12,22,.72);
  border-bottom: 1px solid rgba(120,150,220,.1);
}
.rb-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.rb-header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.rb-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.rb-logo-mark { position: relative; width: 38px; height: 38px; flex: none; }
.rb-logo-mark img { display: block; }
.rb-logo-letter {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 19px; color: #fff;
}
.rb-logo-text { font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: #fff; }

.rb-nav-links { display: flex; align-items: center; gap: 30px; margin-left: 8px; }
.rb-nav-link { text-decoration: none; color: var(--rb-muted-light); font-size: 15px; font-weight: 500; }
.rb-nav:hover { color: #fff !important; }

.rb-burger {
  display: none;
  width: 40px; height: 40px; flex: none;
  border: 1px solid rgba(120,150,220,.18); border-radius: 9px;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.rb-burger span { width: 18px; height: 2px; background: var(--rb-muted-light); border-radius: 2px; transition: transform .25s, opacity .25s; }
.rb-header.is-open .rb-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rb-header.is-open .rb-burger span:nth-child(2) { opacity: 0; }
.rb-header.is-open .rb-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.rb-lang {
  display: flex; align-items: center;
  border: 1px solid rgba(120,150,220,.18);
  border-radius: 9px; overflow: hidden;
  font-size: 13px; font-weight: 700;
}
.rb-lang-btn {
  border: none; cursor: pointer;
  padding: 7px 11px;
  background: transparent; color: var(--rb-muted-light);
  font-family: inherit; font-weight: 700;
}
.rb-lang-btn.is-active { background: var(--rb-accent); color: #fff; }

/* ===== Hero ===== */
.rb-hero { position: relative; max-width: 1280px; margin: 0 auto; padding: 84px 40px 56px; overflow: hidden; }
.rb-hero-bg-letter {
  position: absolute; top: -40px; right: -10px;
  font-weight: 900; font-size: 420px; line-height: .8; letter-spacing: -.05em;
  color: rgba(120,150,220,.05);
  pointer-events: none; user-select: none;
}
.rb-hero-glow {
  position: absolute; top: 120px; right: 60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(37,99,235,.22), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.rb-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rb-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rb-accent-light);
}
.rb-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rb-accent); box-shadow: 0 0 12px var(--rb-accent);
  animation: rb-pulse 2s ease-in-out infinite;
}
.rb-eyebrow-line { width: 46px; height: 1px; background: linear-gradient(90deg, var(--rb-accent), transparent); }

.rb-hero-title {
  position: relative;
  margin: 30px 0 0;
  font-weight: 900; font-size: 84px; line-height: 1.0; letter-spacing: -.04em;
  color: var(--rb-heading); max-width: 1000px; text-wrap: balance;
}
.rb-hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end;
  margin-top: 40px;
}
.rb-hero-desc { margin: 0; font-size: 19px; line-height: 1.6; color: var(--rb-desc); max-width: 560px; }
.rb-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.rb-stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  margin-top: 54px;
  border-top: 1px solid rgba(120,150,220,.14);
  border-bottom: 1px solid rgba(120,150,220,.14);
}
.rb-stat { padding: 26px 24px; border-right: 1px solid rgba(120,150,220,.1); }
.rb-stats-grid .rb-stat:first-child { padding-left: 0; }
.rb-stats-grid .rb-stat:last-child { padding-right: 0; border-right: none; }
.rb-stat-num { font-weight: 900; font-size: 42px; letter-spacing: -.03em; color: var(--rb-heading); }
.rb-stat-lbl {
  margin-top: 6px;
  font-family: var(--rb-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rb-muted-dim);
}

/* ===== Services ===== */
.rb-services-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.rb-svc {
  border: 1px solid rgba(120,150,220,.12);
  background: rgba(17,26,46,.5);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex; flex-direction: column;
}
.rb-svc:hover { transform: translateY(-6px); border-color: rgba(37,99,235,.55); box-shadow: 0 20px 50px -20px rgba(37,99,235,.5); }
.rb-svc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(37,99,235,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.rb-card-title { margin: 0 0 9px; font-size: 18px; font-weight: 700; color: var(--rb-heading); }
.rb-card-desc { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--rb-muted); }

/* ===== Projects ===== */
.rb-projects-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 16px;
}
.rb-projects-head-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.rb-projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.rb-proj {
  border: 1px solid rgba(120,150,220,.12);
  background: rgba(17,26,46,.5);
  border-radius: 18px;
  overflow: hidden;
}
.rb-proj:hover { border-color: rgba(37,99,235,.55); transform: translateY(-4px); }
.rb-proj:hover .rb-projimg { transform: scale(1.04); }
.rb-proj-media { height: 180px; overflow: hidden; background: var(--rb-panel); position: relative; }
.rb-projimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rb-proj-body { padding: 22px; }
.rb-proj-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--rb-heading); }
.rb-proj-desc { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--rb-muted); }
.rb-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.rb-tag {
  font-family: var(--rb-mono); font-size: 11.5px; color: var(--rb-muted-light);
  border: 1px solid rgba(120,150,220,.18);
  padding: 4px 9px; border-radius: 6px;
}
.rb-proj-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--rb-accent-light);
}

/* ===== Tech ===== */
.rb-tech-list { display: flex; flex-wrap: wrap; gap: 12px; }
.rb-tech {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rb-mono); font-size: 15px; font-weight: 500; color: var(--rb-muted-light);
  border: 1px solid rgba(120,150,220,.16);
  background: rgba(17,26,46,.4);
  padding: 11px 18px; border-radius: 11px;
}
.rb-tech:hover { border-color: rgba(37,99,235,.5); color: var(--rb-text); transform: translateY(-3px); }

/* ===== Process ===== */
.rb-process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; position: relative; }
.rb-process-line {
  position: absolute; top: 24px; left: 7%; right: 7%; height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,.4), rgba(120,150,220,.15));
}
.rb-step { position: relative; }
.rb-step-num {
  width: 50px; height: 50px; border-radius: 14px;
  border: 1px solid rgba(37,99,235,.4);
  background: var(--rb-panel);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rb-mono); font-weight: 700; font-size: 17px; color: var(--rb-accent-light);
  margin-bottom: 20px;
}
.rb-step-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--rb-heading); }
.rb-step-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--rb-muted); }

/* ===== Contact / CTA ===== */
.rb-cta-section { max-width: 1240px; margin: 60px auto 40px; padding: 0 40px; scroll-margin-top: 80px; }
.rb-cta {
  position: relative;
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg,#0C1630,var(--rb-panel));
}
.rb-cta-glow {
  position: absolute; top: -80px; right: -40px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%);
  filter: blur(30px);
}
.rb-cta-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 50px;
}
.rb-cta-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: rgba(37,99,235,.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.rb-cta-title {
  margin: 0;
  font-weight: 900; font-size: 40px; line-height: 1.12; letter-spacing: -.025em;
  color: var(--rb-heading); text-wrap: balance; max-width: 620px;
}
.rb-cta-desc { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--rb-desc); max-width: 520px; }
.rb-cta-note { margin: 18px 0 0; font-family: var(--rb-mono); font-size: 13px; color: var(--rb-muted-dim); }

/* ===== Footer ===== */
.rb-footer { border-top: 1px solid rgba(120,150,220,.1); margin-top: 40px; }
.rb-footer-grid {
  max-width: 1240px; margin: 0 auto;
  padding: 56px 40px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr; gap: 40px;
}
.rb-footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.rb-footer-logo-mark {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px; background: #0C1426; border: 1px solid rgba(37,99,235,.4);
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.rb-footer-logo-prompt { font-family: var(--rb-mono); font-size: 14px; color: var(--rb-accent); }
.rb-footer-logo-cursor {
  width: 5px; height: 12px; background: var(--rb-accent);
  animation: rb-cursor 1.1s step-end infinite;
}
.rb-footer-logo-text { font-weight: 700; font-size: 20px; color: #fff; }
.rb-footer-tagline { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rb-muted); max-width: 260px; }
.rb-footer-title {
  font-size: 13px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
}
.rb-footer-links { display: flex; flex-direction: column; gap: 11px; }
.rb-footer-link { text-decoration: none; color: var(--rb-muted); font-size: 14px; }
.rb-footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding: 22px 40px;
  border-top: 1px solid rgba(120,150,220,.08);
  display: flex; justify-content: space-between; align-items: center;
}
.rb-footer-rights { font-size: 13px; color: var(--rb-muted-dim); }

/* ===== Scroll reveal ===== */
[data-rv] { opacity:0; transform:translateY(38px); transition:opacity .85s cubic-bezier(.2,.7,.3,1), transform .85s cubic-bezier(.2,.7,.3,1); will-change:opacity,transform; }
[data-rv="in"] { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){ [data-rv]{opacity:1!important;transform:none!important;transition:none!important} }

/* ===== Responsive ===== */
@media (max-width: 1080px){
  .rb-services-grid, .rb-process-grid { grid-template-columns: repeat(2,1fr) !important; }
  .rb-projects-grid { grid-template-columns: 1fr !important; }
  .rb-hero-title { font-size: 56px !important; }
  .rb-hero-grid { grid-template-columns: 1fr !important; }
  .rb-footer-grid { grid-template-columns: 1fr 1fr !important; }
  .rb-header-inner { gap: 24px; }
  .rb-nav-links { gap: 20px; }
}
@media (max-width: 900px){
  .rb-header-inner { padding: 14px 20px; gap: 16px; }
  .rb-burger { display: flex; }
  .rb-btn--header { display: none; }
  .rb-nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 8px 20px 16px;
    background: rgba(8,12,22,.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(120,150,220,.1);
    display: none;
  }
  .rb-header.is-open .rb-nav-links { display: flex; }
  .rb-nav-link { padding: 11px 2px; font-size: 16px; }
}
@media (max-width: 680px){
  .rb-services-grid, .rb-process-grid, .rb-stats-grid, .rb-footer-grid { grid-template-columns: 1fr !important; }
  .rb-hero-title { font-size: 40px !important; }
}
