/* ============================================
   CREXO Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #0A0A0A;
  --black-light: #111111;
  --black-card: #141414;
  --gray-dark: #1a1a1a;
  --gray-mid: #888888;
  --gray-light: #aaaaaa;
  --white: #ffffff;
  --orange: #FF6A1A;
  --orange-glow: rgba(255,106,26,0.15);
  --orange-dim: rgba(255,106,26,0.08);
  --green-wa: #25D366;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-hero: clamp(3.2rem, 9vw, 8rem);
  --text-display: clamp(2.2rem, 5vw, 4.5rem);
  --text-heading: clamp(1.4rem, 3vw, 2.2rem);
  --text-subhead: clamp(1.1rem, 2vw, 1.5rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1240px;
  --container-wide: 1440px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ---- Grain Overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Container ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-light);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow);
}

/* ---- Hamburger ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gray-light);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--orange); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,106,26,0.35);
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn-wa {
  background: var(--green-wa);
  color: var(--white);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
}
.btn-ghost {
  color: var(--orange);
  padding: 0;
  font-weight: 500;
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--nav-height) 0 clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--orange); }
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--gray-light);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Section ---- */
.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: var(--text-body);
  color: var(--gray-light);
  max-width: 550px;
  line-height: 1.7;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 3rem);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--gray-dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-card:hover::before { border-color: var(--orange); }
.service-card-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--gray-light);
  font-size: var(--text-small);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.service-card .btn-ghost { font-size: var(--text-small); }

/* ---- Stats ---- */
.stats-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.stat-number .accent { color: var(--orange); }
.stat-label {
  font-size: var(--text-small);
  color: var(--gray-mid);
  margin-top: 0.5rem;
}

/* ---- Work Grid ---- */
.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-top: 3rem;
}
.work-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--black-card);
}
.work-item:first-child { grid-row: 1 / 3; }
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-item:hover img { transform: scale(1.04); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-item:hover .work-overlay { opacity: 1; }
.work-overlay span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: 0.05em;
}

/* ---- Process ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.process-step { text-align: center; position: relative; }
.process-num {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: 1rem;
}
.process-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body);
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: var(--text-small);
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ---- CTA Block ---- */
.cta-block {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-dim) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-sub {
  color: var(--gray-light);
  margin-bottom: 2.5rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  position: relative;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--gray-mid);
  font-size: var(--text-small);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-small);
  margin-bottom: 1rem;
  color: var(--white);
}
.footer-col a {
  display: block;
  font-size: var(--text-small);
  color: var(--gray-mid);
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-xs);
  color: var(--gray-mid);
}
.footer-logo img { height: 22px; width: auto; opacity: 0.6; }

/* ---- Service Page ---- */
.service-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
}
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.service-hero-img img { width: 100%; border-radius: var(--radius); }

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-item {
  padding: 1.5rem;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease);
}
.feature-item:hover { border-color: rgba(255,106,26,0.3); }
.feature-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-item p { font-size: var(--text-small); color: var(--gray-light); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pricing-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 40px var(--orange-glow);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-subhead);
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 1rem 0;
}
.pricing-price .accent { color: var(--orange); }
.pricing-features {
  text-align: left;
  margin: 1.5rem 0;
}
.pricing-features li {
  font-size: var(--text-small);
  color: var(--gray-light);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: var(--text-xs);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  transition: all 0.35s var(--ease);
}
.contact-card:hover {
  border-color: rgba(255,106,26,0.3);
  transform: translateX(4px);
}
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-icon.wa { background: rgba(37,211,102,0.15); color: var(--green-wa); }
.contact-icon.email { background: var(--orange-glow); color: var(--orange); }
.contact-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-card p { font-size: var(--text-small); color: var(--gray-mid); }

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Page entrance */
.page-enter { animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .service-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-item:first-child { grid-row: auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -0.02em; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-3 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 600px; }
