/* =============================================
   RXJR Dev Studio - Stylesheet
   Design: Light & minimal, deep slate accents
   ============================================= */

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

:root {
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white:     #ffffff;

  --accent:       #0f172a;
  --accent-light: #334155;
  --highlight:    #3b82f6;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.10);

  --nav-h: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--slate-600);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--slate-500);
  max-width: 52ch;
  line-height: 1.75;
}

.section-header {
  margin-bottom: clamp(48px, 7vw, 80px);
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}
.btn--primary:hover {
  background: var(--slate-700);
  border-color: var(--slate-700);
}

.btn--ghost {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-200);
}
.btn--ghost:hover {
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn--sm {
  padding: 8px 18px;
  font-size: .875rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---- NAV ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.nav.scrolled {
  border-bottom-color: var(--slate-100);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  text-decoration: none;
  letter-spacing: -.02em;
}
.nav__logo span {
  font-weight: 300;
  color: var(--slate-500);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  font-size: .9375rem;
  color: var(--slate-600);
  text-decoration: none;
  transition: color .15s;
}
.nav__links a:not(.btn):hover {
  color: var(--slate-900);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--slate-700);
  transition: transform .25s, opacity .25s;
}
.nav__burger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--slate-100);
  background: var(--white);
}
.nav__mobile.open {
  display: flex;
}
.mobile-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-50);
}

/* ---- HERO ---- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(59,130,246,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(15,23,42,.03) 0%, transparent 60%);
  pointer-events: none;
}

/* subtle grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--slate-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-100) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(60px, 10vw, 120px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--slate-200);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 28px;
  background: rgba(255,255,255,.7);
  animation: fadeUp .6s ease both;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.08;
  color: var(--slate-900);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  max-width: 14ch;
  animation: fadeUp .6s .1s ease both;
}
.hero__headline em {
  font-style: italic;
  color: var(--slate-500);
}

.hero__sub {
  font-size: clamp(.9375rem, 1.5vw, 1.125rem);
  color: var(--slate-500);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp .6s .2s ease both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp .6s .3s ease both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s 1s ease both;
}
.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--slate-300), transparent);
  animation: scrollLine 1.5s 1.2s ease-in-out infinite;
}

/* ---- CREDIBILITY BAR ---- */

.cred {
  background: var(--slate-900);
  padding: 48px 0;
}

.cred__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cred__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.cred__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

.cred__label {
  font-size: .8125rem;
  color: var(--slate-400);
  line-height: 1.4;
}

.cred__divider {
  width: 1px;
  height: 48px;
  background: var(--slate-700);
  flex-shrink: 0;
}

/* ---- SERVICES ---- */

.services {
  padding-block: var(--section-pad);
  background: var(--slate-50);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--slate-200);
}

.service-card:hover {
  border-color: var(--slate-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--slate-700);
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: .9375rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.service-card__tags li {
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--slate-50);
  color: var(--slate-600);
  border: 1px solid var(--slate-100);
}

/* ---- ABOUT ---- */

.about {
  padding-block: var(--section-pad);
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.about__text p {
  font-size: .9375rem;
  color: var(--slate-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__values {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--slate-900);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 2px;
}

.value strong {
  display: block;
  font-size: .9375rem;
  color: var(--slate-800);
  margin-bottom: 2px;
}

.value span {
  font-size: .875rem;
  color: var(--slate-500);
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
}

.about__card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.about__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.about__card--offset {
  margin-left: 32px;
}

.about__card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.about__card-header strong {
  display: block;
  font-size: .9375rem;
  color: var(--slate-800);
}
.about__card-header span {
  font-size: .8125rem;
  color: var(--slate-400);
}

.about__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--slate-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.about__avatar--alt {
  background: var(--slate-600);
}

.about__card-bio {
  font-size: .875rem;
  color: var(--slate-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.about__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.about__card-tags span {
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--slate-50);
  color: var(--slate-600);
  border: 1px solid var(--slate-100);
}

/* ---- APPROACH ---- */

.approach {
  padding-block: var(--section-pad);
  background: var(--slate-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--slate-200), var(--slate-200), transparent);
}

.step {
  position: relative;
}

.step__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--slate-400);
  margin-bottom: 20px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step__num::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-900);
  flex-shrink: 0;
}

.step__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.step__body p {
  font-size: .9rem;
  color: var(--slate-500);
  line-height: 1.75;
}

/* ---- CONTACT ---- */

.contact {
  padding-block: var(--section-pad);
  background: var(--white);
}

.contact__inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.contact__inner .section-label {
  display: block;
}

.contact__inner .section-title {
  margin-bottom: 20px;
}

.contact__desc {
  font-size: .9375rem;
  color: var(--slate-500);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--slate-900);
  text-decoration: none;
  letter-spacing: -.02em;
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.contact__email:hover {
  color: var(--highlight);
  border-color: var(--highlight);
}

/* ---- FOOTER ---- */

.footer {
  background: var(--slate-900);
  padding-top: 64px;
}

.footer__inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-800);
}

.footer__brand .nav__logo {
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}
.footer__brand .nav__logo span {
  color: var(--slate-400);
}

.footer__brand p {
  font-size: .875rem;
  color: var(--slate-400);
  line-height: 1.65;
}

.footer__links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links strong {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 4px;
}
.footer__links a {
  font-size: .875rem;
  color: var(--slate-400);
  text-decoration: none;
  transition: color .15s;
}
.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-block: 24px;
}
.footer__bottom p {
  font-size: .8125rem;
  color: var(--slate-600);
}

/* ---- ANIMATIONS ---- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(.5); opacity: .4; }
}

/* intersection-observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__card--offset {
    margin-left: 0;
  }
  .steps::before {
    display: none;
  }
  .cred__divider {
    display: none;
  }
  .cred__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer__links {
    gap: 32px;
  }
  .cred__inner {
    grid-template-columns: 1fr;
  }
}
