/* ═══════════════════════════════════════════════════════════
   RedDotKit — style.css
   Brand: Bright Portal · DM Sans · #E31837
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --red: #E31837;
  --red-dark: #C41430;
  --red-light: #FEF1F3;
  --black: #111218;
  --white: #FFFFFF;
  --gray-50: #F8F9FC;
  --gray-100: #F0F1F5;
  --gray-200: #E0E3EA;
  --gray-400: #9CA3B8;
  --gray-500: #6B7394;
  --gray-600: #4A5068;
  --gray-700: #333849;

  /* Category accents */
  --cat-pdf: #E31837;
  --cat-network: #3B82F6;
  --cat-image: #8B5CF6;
  --cat-calc: #10B981;
  --cat-dev: #F59E0B;
  --cat-ddns: #EC4899;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--gray-50);
  font-family: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─── Cluster Dot Icon ─── */
.cluster-dot {
  position: relative;
  flex-shrink: 0;
}

.cluster-dot--32 { width: 32px; height: 32px; }
.cluster-dot--24 { width: 24px; height: 24px; }
.cluster-dot--22 { width: 22px; height: 22px; }

.cluster-dot__circle {
  position: absolute;
  border-radius: 50%;
  background: var(--red);
}

/* 32px variant */
.cluster-dot--32 .cluster-dot__circle:nth-child(1) {
  width: 20.48px; height: 20.48px; top: 13.76px; left: 0; opacity: 0.25;
}
.cluster-dot--32 .cluster-dot__circle:nth-child(2) {
  width: 16px; height: 16px; top: 2.24px; left: 16px; opacity: 0.45;
}
.cluster-dot--32 .cluster-dot__circle:nth-child(3) {
  width: 11.52px; height: 11.52px; top: 10.24px; left: 10.24px; opacity: 1;
}

/* 24px variant */
.cluster-dot--24 .cluster-dot__circle:nth-child(1) {
  width: 15.36px; height: 15.36px; top: 10.32px; left: 0; opacity: 0.25;
}
.cluster-dot--24 .cluster-dot__circle:nth-child(2) {
  width: 12px; height: 12px; top: 1.68px; left: 12px; opacity: 0.45;
}
.cluster-dot--24 .cluster-dot__circle:nth-child(3) {
  width: 8.64px; height: 8.64px; top: 7.68px; left: 7.68px; opacity: 1;
}

/* 22px variant */
.cluster-dot--22 .cluster-dot__circle:nth-child(1) {
  width: 14.08px; height: 14.08px; top: 9.46px; left: 0; opacity: 0.25;
}
.cluster-dot--22 .cluster-dot__circle:nth-child(2) {
  width: 11px; height: 11px; top: 1.54px; left: 11px; opacity: 0.45;
}
.cluster-dot--22 .cluster-dot__circle:nth-child(3) {
  width: 7.92px; height: 7.92px; top: 7.04px; left: 7.04px; opacity: 1;
}

/* ─── Wordmark ─── */
.wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wordmark--20 { font-size: 20px; }
.wordmark--16 { font-size: 16px; }

.wordmark__red, .wordmark__kit { color: var(--black); }
.wordmark__dot { color: var(--red); }

/* ─── Navigation ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 64px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav__link {
  color: var(--gray-600);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.nav__link:hover {
  color: var(--red);
}

.nav__link--active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  padding: 15px 36px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(227, 24, 55, 0.3);
}

.btn--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 20px rgba(227, 24, 55, 0.35);
}

.btn--secondary {
  padding: 15px 36px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-200);
  font-size: 16px;
  font-weight: 600;
}

.btn--secondary:hover {
  background: var(--gray-50);
}

.btn--nav {
  padding: 9px 22px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(227, 24, 55, 0.2);
}

.btn--nav:hover {
  background: var(--red-dark);
}

.btn--cta {
  padding: 16px 48px;
  background: var(--red);
  color: var(--white);
  font-size: 17px;
  box-shadow: 0 4px 20px rgba(227, 24, 55, 0.3);
}

.btn--cta:hover {
  background: var(--red-dark);
}

/* ─── Badges / Pills ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
}

.badge--hero {
  background: var(--red-light);
  color: var(--red);
}

.badge--sg {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-500);
}

.badge--section {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  gap: 6px;
}

.badge--about {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
}

/* ─── Hero Section ─── */
.hero {
  padding: 72px 64px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero__decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__decor--1 {
  top: -80px; right: 12%; width: 300px; height: 300px;
  background: rgba(227, 24, 55, 0.024);
}

.hero__decor--2 {
  bottom: -60px; left: 8%; width: 220px; height: 220px;
  background: rgba(59, 130, 246, 0.024);
}

.hero__decor--3 {
  top: 40px; left: 22%; width: 120px; height: 120px;
  background: rgba(139, 92, 246, 0.016);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 18px;
}

.hero__title span {
  color: var(--red);
}

.hero__desc {
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ─── Section Utilities ─── */
.section {
  padding: 56px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--alt {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  max-width: none;
}

.section--alt > .section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 36px;
}

.section__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 8px;
}

.section__subtitle {
  color: var(--gray-500);
  font-size: 16px;
}

/* ─── Cards Grid ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* ─── Category Cards ─── */
.cat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cat-card__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.cat-card__count {
  font-size: 12px;
  color: var(--gray-400);
}

.cat-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cat-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cat-card__tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 500;
}

/* ─── Trust Bar ─── */
.trust-bar {
  padding: 32px 48px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-around;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.trust-bar__item {
  max-width: 200px;
}

.trust-bar__value {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}

.trust-bar__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-top: 4px;
}

.trust-bar__sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
  line-height: 1.4;
}

/* ─── Product Cards ─── */
.product-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.product-card__decor {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(227, 24, 55, 0.024);
  pointer-events: none;
}

.product-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.product-card__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-card__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 8px 0 16px;
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.product-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ─── CTA Section ─── */
.cta {
  padding: 64px;
  text-align: center;
}

.cta__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 10px;
}

.cta__desc {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ─── Footer ─── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 48px 64px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer__brand-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.footer__link {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
  display: block;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--red);
}

.footer__soon {
  font-size: 10px;
  color: var(--gray-400);
  margin-left: 6px;
}

.footer__bottom {
  border-top: 1px solid var(--gray-100);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-400);
}

/* ─── About Page ─── */
.about-hero {
  padding: 64px 64px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--white), var(--gray-50));
}

.about-hero__inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-hero__title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
}

.about-hero__title span {
  color: var(--red);
}

.about-hero__desc {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
}

.about-section {
  padding: 48px 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-section__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 12px;
}

.about-section__text {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.about-section__text + .about-section__text {
  margin-top: 12px;
}

/* Values cards */
.value-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.value-card__icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.value-card__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  margin-bottom: 6px;
}

.value-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* Company info card */
.info-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.info-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card__row {
  display: flex;
  gap: 12px;
}

.info-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 100px;
}

.info-card__value {
  font-size: 14px;
  color: var(--black);
  font-weight: 500;
}

/* About products */
.about-product-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.about-product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.about-product-card__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-product-card__status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.about-product-card__type {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.about-product-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ─── Tools Page ─── */
.tools-header {
  margin-bottom: 32px;
}

.tools-header__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 4px;
}

.tools-header__subtitle {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 20px;
}

.tools-search {
  width: 100%;
  max-width: 480px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.tools-search:focus {
  border-color: var(--red);
}

.tools-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.tools-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.tools-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tools-card__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.tools-card__count {
  font-size: 11px;
  color: var(--gray-400);
}

.tools-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 8px 0 12px;
}

.tools-card__placeholder {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-400);
  background: var(--gray-50);
  text-align: center;
  font-style: italic;
}

.tools-card__tool {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-600);
  background: var(--gray-50);
  font-weight: 500;
  transition: background 0.15s;
  margin-bottom: 4px;
}

.tools-card__tool:hover {
  background: var(--gray-100);
}

/* ─── Main content wrapper ─── */
main {
  background: var(--white);
}

/* ─── Responsive ─── */
@media (max-width: 1199px) {
  .nav { padding: 14px 32px; }
  .hero { padding: 56px 32px 48px; }
  .section { padding: 48px 32px; }
  .section--alt { padding: 48px 32px; }
  .footer { padding: 40px 32px 24px; }
  .cta { padding: 48px 32px; }
  .about-hero { padding: 48px 32px; }
  .about-section { padding: 40px 32px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .hero__title { font-size: 44px; }
  .about-hero__title { font-size: 36px; }
}

@media (max-width: 767px) {
  .nav { padding: 12px 20px; }
  .nav__links { gap: 16px; font-size: 14px; }
  .nav__links .nav__link { display: none; }

  .hero { padding: 40px 20px; }
  .hero__title { font-size: 32px; }
  .hero__desc { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: center; }

  .section { padding: 36px 20px; }
  .section--alt { padding: 36px 20px; }
  .section__title { font-size: 26px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2col { grid-template-columns: 1fr; gap: 32px; }

  .trust-bar {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .trust-bar__item { max-width: none; }

  .footer { padding: 32px 20px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta { padding: 40px 20px; }
  .cta__title { font-size: 28px; }

  .about-hero { padding: 40px 20px; }
  .about-hero__title { font-size: 28px; }
  .about-section { padding: 32px 20px; }

  .tools-header__title { font-size: 28px; }
  .info-card__grid { grid-template-columns: 1fr; }

  .btn--primary, .btn--secondary { padding: 13px 28px; font-size: 15px; }
  .btn--cta { padding: 14px 36px; font-size: 16px; }
}

/* ─── Hamburger Menu (mobile) ─── */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--black);
}

@media (max-width: 767px) {
  .nav__hamburger { display: block; }
  .nav__links { display: none; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-100);
    gap: 16px;
  }
  .nav__links--open .nav__link { display: block; }
}
