/* ============================================
   Clarrox Websites — Stylesheet
   Clean, Minimalistic, Sophisticated
   ============================================ */

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

:root {
  /* Colors */
  --color-bg: #fafafa;
  --color-bg-dark: #0a0a0a;
  --color-bg-light: #f4f4f5;
  --color-bg-card: #ffffff;

  --color-text: #18181b;
  --color-text-secondary: #71717a;
  --color-text-tertiary: #a1a1aa;
  --color-text-inverse: #fafafa;

  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: rgba(37, 99, 235, 0.08);

  --color-border: #e4e4e7;
  --color-border-light: #f4f4f5;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Section --- */
.section {
  padding: var(--section-padding) 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark .section__label {
  color: var(--color-accent);
}

.section--dark .section__description {
  color: var(--color-text-tertiary);
}

.section--light {
  background-color: var(--color-bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section__description {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 0;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              padding var(--transition-base);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  z-index: 1001;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
}

.logo-text {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav__link--cta {
  background-color: var(--color-text);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav__link--cta:hover {
  background-color: var(--color-accent);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 13px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-text-tertiary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 36px;
  font-size: 16px;
}


/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-base);
  cursor: default;
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card:hover .service-card__link {
  gap: 8px;
}


/* ============================================
   WORK / PORTFOLIO
   ============================================ */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  cursor: pointer;
}

.work-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.work-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.work-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform var(--transition-slow);
}

.work-card:hover .work-card__placeholder {
  transform: scale(1.05);
}

.work-card__info {
  padding: 28px;
}

.work-card__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}

.work-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.work-card__text {
  font-size: 14px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.work-card--large {
  grid-column: span 2;
}

.work-card--large .work-card__image {
  aspect-ratio: 21 / 9;
}

.work__cta {
  text-align: center;
}


/* ============================================
   PROCESS
   ============================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  position: relative;
  padding: 0 8px;
}

.process-step__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-border);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  line-height: 1;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-step__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.testimonial:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  margin-bottom: 20px;
}

.testimonial__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 28px;
  flex-grow: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial__name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.testimonial__role {
  font-size: 13px;
  color: var(--color-text-tertiary);
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: var(--section-padding) 0;
}

.cta__wrapper {
  text-align: center;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
}

.cta__wrapper .section__label {
  color: var(--color-accent);
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  margin-top: 16px;
}

.cta__text {
  font-size: 17px;
  color: var(--color-text-tertiary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cta__or {
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.cta__schedule {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-inverse);
  transition: color var(--transition-fast);
}

.cta__schedule:hover {
  color: var(--color-accent);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .nav__logo {
  margin-bottom: 16px;
}

.footer__brand .logo-text {
  color: var(--color-text-inverse);
}

.footer__tagline {
  font-size: 15px;
  color: var(--color-text-tertiary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-tertiary);
  transition: all var(--transition-fast);
}

.footer__social:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--color-text-inverse);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-text-inverse);
}

.footer__bottom {
  padding-top: 32px;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--color-text-tertiary);
}


/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 88px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid .testimonial:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: span 3;
  }
}


/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
    --container-padding: 20px;
  }

  /* Mobile Nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .nav__link {
    font-size: 24px;
    color: var(--color-text);
  }

  .nav__link--cta {
    font-size: 16px;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero__container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero__actions {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero__scroll-indicator {
    display: none;
  }

  /* Services Mobile */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section__header {
    margin-bottom: 48px;
  }

  /* Work Mobile */
  .work__grid {
    grid-template-columns: 1fr;
  }

  .work-card--large {
    grid-column: span 1;
  }

  .work-card--large .work-card__image {
    aspect-ratio: 16 / 10;
  }

  /* Process Mobile */
  .process__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Testimonials Mobile */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid .testimonial:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* CTA Mobile */
  .cta__wrapper {
    padding: 56px 28px;
    border-radius: var(--radius-lg);
  }

  .cta__actions {
    flex-direction: column;
    gap: 16px;
  }

  .cta__or {
    display: none;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .footer__links:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 36px;
  }

  .section__title {
    font-size: 28px;
  }

  .cta__title {
    font-size: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand,
  .footer__links:last-child {
    grid-column: span 1;
  }
}
