/* Shared presentation layer. Cursor rules live in ruphp.css. */
:root {
  --rp-radius: 8px;
  --rp-shadow: none;
  --rp-muted: #aab8d0;
  --rp-line: rgba(146, 169, 235, .2);
}

body.ruphp-body {
  background: linear-gradient(135deg, #0c1528, #090d19 55%, #0c1422);
}

.rp-shell { width: min(1240px, calc(100% - 64px)); }
.rp-header { background: rgba(9, 13, 25, .92); }
.rp-header-inner { grid-template-columns: 1fr auto 1fr; padding: 16px 0; }
.rp-header-inner::after { display: none; }
.rp-brand, .rp-mobile-offcanvas-brand { letter-spacing: 0; }
.rp-nav { gap: 30px; }
.rp-nav a { padding: 8px 0; }
.rp-nav a:hover { color: #7ef7eb; }
.rp-actions { gap: 12px; }
.rp-btn, .rp-btn-ghost { border-radius: 6px; min-height: 44px; font-size: 14px; }
.rp-btn { box-shadow: 0 0 22px rgba(64, 158, 237, .22); }
.rp-btn-ghost { background: transparent; }
.rp-btn-ghost:hover { transform: none; }
.rp-header-toggle { border-radius: 6px; }

.rp-kicker, .rp-mini-label {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  letter-spacing: 0;
  color: #7ef7eb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-transform: uppercase;
}
.rp-kicker { margin-bottom: 20px; }
.rp-mini-label { margin-bottom: 12px; }
.rp-hero-card, .rp-panel, .rp-contact-card, .rp-step-card {
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--rp-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.rp-hero-card::before, .rp-panel::before, .rp-service-card::before,
.rp-contact-card::before, .rp-step-card::before { content: none; }
.rp-service-card:hover, .rp-contact-card:hover, .rp-step-card:hover { transform: none; }
.rp-hero h1, .rp-page-hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.rp-page-hero h1 { max-width: 1000px; }
.rp-hero p, .rp-page-hero p, .rp-service-card p, .rp-panel p,
.rp-contact-card p, .rp-step-card p, .rp-list li { font-size: 16px; line-height: 1.75; }
.rp-section { padding: 60px 0; }
.rp-section + .rp-section { border-top: 1px solid var(--rp-line); }
.rp-section-head { align-items: start; gap: 48px; margin-bottom: 36px; }
.rp-section-head > div { flex: 1; min-width: 0; }
.rp-section-head h2, .rp-page-section h2 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}
.rp-section-head h2 { margin: 0; }
.rp-section-note { max-width: 480px; padding-top: 4px; font-size: 16px; }
.rp-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.rp-service-card {
  min-width: 0;
  padding: 28px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rp-line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: start;
  overflow: visible;
  transition: border-color .2s ease;
}
.rp-service-card:hover { border-top-color: #00d1c7; }
.rp-service-card h3, .rp-contact-card h3, .rp-step-card h3, .rp-panel h3 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}
.rp-service-card > p:first-of-type { flex: 1; }
.rp-service-card > p:last-child { margin-top: 16px; margin-bottom: 0; }
.rp-service-card .rp-btn, .rp-service-card .rp-btn-ghost {
  padding: 8px 0;
  min-height: 40px;
  background: none;
  border: 0;
  box-shadow: none;
  color: #7ef7eb !important;
  transform: none;
}
.rp-service-card .rp-btn::after, .rp-service-card .rp-btn-ghost::after { content: '\2197'; font-size: 20px; }
.rp-service-card .rp-btn:hover, .rp-service-card .rp-btn-ghost:hover { text-decoration: underline; }
.rp-badge-row { gap: 8px 16px; margin-top: 8px; }
.rp-badge { padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 500; color: #c9d5f0; }
.rp-badge + .rp-badge { border-left: 1px solid var(--rp-line); padding-left: 16px; }
.rp-badge-soft { color: #7ef7eb; }
.rp-cards, .rp-contact-grid, .rp-related-grid { gap: 28px; }
.rp-cards > *, .rp-contact-grid > * { min-width: 0; }
.rp-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.rp-price-card, .rp-related-card {
  border: 0;
  border-top: 1px solid var(--rp-line);
  padding: 24px 0;
  border-radius: 0;
  background: none;
}
.rp-related-card:hover { background: none; transform: none; }
.rp-page-hero { padding: 64px 0 32px; }
.rp-page-section { padding: 20px 0 32px; }
.rp-service-visual { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 8px; }
.rp-service-visual img, .rp-content-image { border-radius: 8px; }
.rp-image-panel { padding: 24px 0; }
.rp-legal-page h2 { font-size: 26px; letter-spacing: 0; }
.rp-footer { border-top: 1px solid var(--rp-line); margin-top: 40px; padding: 28px 0 36px; }
.rp-footer-contact { border-radius: 6px; }
.rp-cookie-banner { border-radius: 8px; }
.rp-mobile-nav a { border-radius: 0; background: none; border-bottom: 1px solid var(--rp-line); text-align: left; padding: 14px 0; }
.ruphp-body a:focus-visible, .ruphp-body button:focus-visible { outline: 2px solid #7ef7eb; outline-offset: 5px; }

/* Home: one unframed scene, a compact service index, and project rows. */
.rp-home .rp-hero {
  position: relative;
  padding: 76px 0 40px;
  background: #0b1222;
  border-bottom: 1px solid var(--rp-line);
}
.rp-home .rp-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: min(66%, 780px);
  background:
    linear-gradient(0deg, #0b1222, transparent 65%),
    url('../img/hero/ruphp-hero-ui.webp') right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 58%);
  mask-image: linear-gradient(90deg, transparent, #000 58%);
  opacity: .85;
  pointer-events: none;
}
.rp-home .rp-hero > .rp-shell { position: relative; }
.rp-home .rp-col-main { max-width: 760px; }
.rp-home .rp-hero-card { padding: 0; border: 0; }
.rp-home .rp-hero h1 { font-size: 52px; max-width: 760px; margin-bottom: 24px; }
.rp-home .rp-hero p { max-width: 570px; font-size: 18px; color: #bdc9df; margin-bottom: 28px; }
.rp-home .rp-hero .rp-kicker { max-width: 600px; color: #7ef7eb; font-size: 12px; }
.rp-home .rp-cta-row { flex-wrap: wrap; gap: 14px; }
.rp-home .rp-cta-row a { min-height: 48px; padding: 12px 22px; }
.rp-home .rp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(880px, calc(100vw - 64px));
  gap: 24px;
  margin-top: 52px;
  border-top: 1px solid var(--rp-line);
  padding-top: 24px;
}
.rp-home .rp-stat { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.rp-home .rp-stat strong { font-size: 24px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.rp-home .rp-stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--rp-muted); }
.rp-home .rp-services .rp-service-grid { counter-reset: services; }
.rp-home .rp-services .rp-service-card { counter-increment: services; }
.rp-home .rp-services .rp-service-card::before {
  content: '0' counter(services);
  position: static;
  background: none;
  margin-bottom: 20px;
  font: 12px/1.5 Consolas, monospace;
  color: #7ef7eb;
}
.rp-project-list { border-bottom: 1px solid var(--rp-line); }
.rp-project-list > .rp-panel {
  display: grid;
  grid-template-columns: minmax(200px, .75fr) minmax(0, 1.5fr) 140px;
  gap: 12px 36px;
  align-items: start;
  padding: 32px 0;
}
.rp-project-list .rp-mini-label { display: none; }
.rp-project-list h3 { grid-column: 1; grid-row: 1 / 3; font-size: 28px; margin: 0; }
.rp-project-list h3 a:hover { color: #7ef7eb; }
.rp-project-list .rp-panel > p:first-of-type { grid-column: 2; grid-row: 1; margin: 0; }
.rp-project-list .rp-badge-row { grid-column: 2; grid-row: 2; margin: 0; }
.rp-project-list .rp-panel > p:last-child { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.rp-project-list .rp-btn, .rp-project-list .rp-btn-ghost { white-space: nowrap; }

@media (min-width: 1500px) {
  .rp-home .rp-hero { padding-top: 96px; padding-bottom: 48px; }
}
@media (max-width: 1100px) {
  .rp-header-inner { gap: 20px; }
  .rp-nav { gap: 20px; }
  .rp-actions .rp-btn-ghost { display: none; }
  .rp-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-project-list > .rp-panel { grid-template-columns: 220px minmax(0, 1fr); }
  .rp-project-list .rp-panel > p:last-child { grid-column: 2; grid-row: 3; }
}
@media (max-width: 991px) {
  .rp-header-inner { padding: 12px 0; }
  .rp-grid { gap: 24px; }
  .rp-section-head { gap: 20px; }
  .rp-section-note { max-width: 660px; }
  .rp-home .rp-hero { padding: 48px 0 32px; }
  .rp-home .rp-hero h1 { font-size: 44px; max-width: 640px; }
  .rp-home .rp-hero-card .rp-cta-row { flex-direction: row; }
  .rp-home .rp-hero-card .rp-cta-row a { width: auto; white-space: normal; }
  .rp-home .rp-hero-card .rp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .rp-footer-main { align-items: start; text-align: left; gap: 24px; }
  .rp-footer-left { align-items: start; }
  .rp-footer-contacts { width: auto; justify-content: start; }
  .rp-footer-legal { flex-direction: row; gap: 12px 20px; }
  .rp-footer-legal a { width: auto; justify-content: start; }
}
@media (max-width: 600px) {
  .rp-shell { width: calc(100% - 36px); }
  .rp-brand { font-size: 22px; }
  .rp-brand::before { width: 32px; height: 32px; flex-basis: 32px; margin-right: 10px; }
  .rp-hero h1, .rp-page-hero h1, .rp-home .rp-hero h1 { font-size: 34px; line-height: 1.18; }
  .rp-home .rp-hero {
    padding-top: 36px;
    background:
      linear-gradient(90deg, rgba(11, 18, 34, .96), rgba(11, 18, 34, .65)),
      linear-gradient(0deg, #0b1222, transparent),
      url('../img/hero/ruphp-hero-ui.webp') center / cover no-repeat;
  }
  .rp-home .rp-hero::before { content: none; }
  .rp-kicker { text-align: left; margin-bottom: 18px; }
  .rp-home .rp-hero p { font-size: 16px; }
  .rp-home .rp-hero-card .rp-cta-row { display: grid; grid-template-columns: 1fr; }
  .rp-home .rp-hero-card .rp-cta-row a { width: 100%; }
  .rp-home .rp-hero-card .rp-stats { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 32px; }
  .rp-home .rp-stat strong { font-size: 22px; }
  .rp-section { padding: 36px 0; }
  .rp-section-head { margin-bottom: 26px; }
  .rp-section-head h2, .rp-page-section h2 { font-size: 27px; }
  .rp-service-grid, .rp-prices { grid-template-columns: 1fr; gap: 0; }
  .rp-service-card { padding: 24px 0; }
  .rp-service-card h3, .rp-panel h3 { font-size: 22px; }
  .rp-home .rp-services .rp-service-card::before { margin-bottom: 12px; }
  .rp-page-hero { padding-top: 36px; }
  .rp-panel, .rp-contact-card, .rp-step-card { padding: 24px 0; }
  .rp-service-visual { float: none; width: 100%; max-width: 360px; margin: 0 0 28px; }
  .rp-project-list > .rp-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; }
  .rp-project-list h3, .rp-project-list .rp-panel > p:first-of-type,
  .rp-project-list .rp-badge-row, .rp-project-list .rp-panel > p:last-child { grid-column: 1; grid-row: auto; }
  .rp-project-list h3 { font-size: 27px; }
  .rp-footer { margin-top: 24px; }
  .rp-footer-legal { flex-direction: column; align-items: start; }
  .rp-footer-legal a { text-align: left; }
  .rp-cookie-banner { right: 12px; bottom: 12px; }
}
