/* Corporate design tokens — navy + blue (B2B) */
:root {
  --hr-text: #030914;
  --hr-text-muted: #969696;
  --hr-text-white: #ffffff;
  --hr-navy: #061325;
  --hr-blue: #1d4ed8;
  --hr-blue-bright: #2563eb;
  --hr-blue-dark: #1e3a8a;
  --hr-community: #19aa59;
  --hr-black: #000000;
  --hr-border: #e8e8e8;
  --hr-bg: #ffffff;
  --hr-bg-soft: #f9fafb;
  --hr-max: 1200px;
  --hr-font: "Satoshi", Verdana, sans-serif;
  --hr-radius: 4px;
  --hr-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--hr-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--hr-text);
  background: var(--hr-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hr-blue);
  outline-offset: 2px;
}

.container {
  max-width: var(--hr-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header (HackerRank nav) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hr-nav-h);
  background: var(--hr-bg);
  border-bottom: 1px solid var(--hr-border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--hr-text);
  flex-shrink: 0;
}

.brand:hover { color: var(--hr-text); }

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--hr-navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.4px;
  font-weight: 500;
}

.nav-main a {
  color: var(--hr-text);
  white-space: nowrap;
}

.nav-main a:hover { color: var(--hr-blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-link {
  font-size: 14.4px;
  font-weight: 500;
  color: var(--hr-text);
  padding: 8px 4px;
}

.nav-link:hover { color: var(--hr-blue); }

.lang-switch {
  display: flex;
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  overflow: hidden;
}

.lang-switch button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border: none;
  background: var(--hr-bg);
  color: var(--hr-text-muted);
  cursor: pointer;
}

.lang-switch button.lang-active {
  background: var(--hr-black);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14.4px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--hr-radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.btn-dark {
  background: var(--hr-black);
  color: #fff;
  border-color: var(--hr-black);
}

.btn-dark:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--hr-text);
  border-color: var(--hr-text);
}

.btn-outline:hover {
  background: var(--hr-bg-soft);
}

.btn-green {
  background: var(--hr-blue);
  color: #fff;
}

.btn-green:hover { background: var(--hr-blue-dark); color: #fff; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
  background: linear-gradient(180deg, #fff 0%, #fff 65%, rgba(6, 19, 37, 0.12) 100%);
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 900px;
  color: var(--hr-text);
}

.hero-title .accent { color: var(--hr-navy); }

.hero-sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--hr-text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Logo strip */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 56px;
  padding: 0 24px 64px;
  max-width: var(--hr-max);
  margin: 0 auto;
}

.logo-strip span {
  font-size: 18px;
  font-weight: 600;
  color: #b0b0b0;
  letter-spacing: -0.01em;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-soft { background: var(--hr-bg-soft); }

.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hr-text-muted);
  margin: 0 0 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}

.section-intro {
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  color: var(--hr-text-muted);
  max-width: 720px;
  margin: 0 auto 56px;
}

/* Product blocks (alternating) */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.product-block:last-child { margin-bottom: 0; }

.product-block.reverse .product-visual { order: 2; }
.product-block.reverse .product-copy { order: 1; }

.product-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border-radius: 8px;
  border: 1px solid var(--hr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #d0d0d0;
  letter-spacing: -0.03em;
}

.product-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--hr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.product-copy h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.25;
}

.product-copy p {
  font-size: 16px;
  line-height: 26px;
  color: var(--hr-text-muted);
  margin: 0 0 20px;
}

.product-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--hr-blue);
}

.product-link:hover { text-decoration: underline; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.service-item {
  padding: 24px;
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  background: #fff;
}

.service-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.service-item span {
  font-size: 14px;
  color: var(--hr-text-muted);
  line-height: 22px;
}

/* Ecosystem block (footer bridge across subdomains) */
.ecosystem-section {
  border-top: 1px solid var(--hr-border);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.eco-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.eco-card--current {
  background: var(--hr-bg-soft);
  border-color: #d4d4d4;
}

.eco-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.eco-dot--green { background: var(--hr-community); }
.eco-dot--purple { background: #7c3aed; }
.eco-dot--blue { background: var(--hr-blue); }

.eco-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hr-text-muted);
  background: #fff;
  border: 1px solid var(--hr-border);
  padding: 4px 8px;
  border-radius: 4px;
}

.eco-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.eco-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--hr-text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.eco-card-cta {
  font-size: 13px;
  padding: 10px 16px;
}

.eco-card--current .eco-card-cta {
  display: none;
}

.eco-card--current p {
  margin-bottom: 0;
}

/* Cloud note */
.cloud-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  font-size: 15px;
  line-height: 26px;
  color: var(--hr-text-muted);
}

.cloud-note ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.cloud-note li { margin-bottom: 8px; }

/* ── Footer ── */
.site-footer {
  background: var(--hr-black);
  color: #fff;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: #969696;
  line-height: 22px;
  margin: 12px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  color: #969696;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--hr-blue-bright); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #969696;
}

.footer-bottom a { color: #969696; }
.footer-bottom a:hover { color: #fff; }

/* ── Inner pages ── */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--hr-border);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.page-hero .lead {
  font-size: 18px;
  color: var(--hr-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.page-content {
  padding: 48px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.page-content p {
  font-size: 16px;
  line-height: 26px;
  color: var(--hr-text-muted);
  margin: 0 0 16px;
}

.legal section { margin-bottom: 32px; }

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--hr-text);
}

.legal p {
  font-size: 15px;
  line-height: 26px;
  color: var(--hr-text-muted);
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 200ms;
}

.wa-float:hover {
  transform: scale(1.06);
  color: #fff;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-main { display: none; }
  .product-block { grid-template-columns: 1fr; gap: 32px; }
  .product-block.reverse .product-visual { order: 0; }
  .product-block.reverse .product-copy { order: 0; }
  .eco-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav-actions .btn { padding: 10px 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}
