/* ==========================================================================
   Nanda — Marketing Agency
   ========================================================================== */

:root {
  --black: #0a0a0b;
  --dark: #111114;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-300: #d3d7de;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 10, 11, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 10, 11, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 10, 11, 0.12);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.text-accent { color: var(--blue); }

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--lg { padding: 16px 34px; font-size: 1rem; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn--outline {
  border-color: var(--gray-300);
  color: var(--black);
  background: var(--white);
}
.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn--nav { padding: 10px 22px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.nav__logo-dot { color: var(--blue); }

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

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--black); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 11, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 11, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero__orb--1 {
  width: 480px; height: 480px;
  background: rgba(37, 99, 235, 0.22);
  top: -160px; right: -120px;
}
.hero__orb--2 {
  width: 380px; height: 380px;
  background: rgba(37, 99, 235, 0.12);
  bottom: -180px; left: -140px;
  animation-delay: -7s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 40px) scale(1.08); }
}

.hero__inner { text-align: center; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.13rem;
  color: var(--gray-500);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 44px;
  border-top: 1px solid var(--gray-100);
}

.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--black);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Trust
   -------------------------------------------------------------------------- */
.trust {
  padding: 48px 0;
  background: var(--black);
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sections (shared)
   -------------------------------------------------------------------------- */
.section { padding: 110px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--black); color: var(--white); }

.section__head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section__sub {
  margin-top: 16px;
  color: var(--gray-500);
  font-size: 1.05rem;
}
.section--dark .section__sub { color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------------------
   Cards — Services
   -------------------------------------------------------------------------- */
.cards--services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 22px;
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.card:hover .card__icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.06);
}

.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card__text {
  color: var(--gray-500);
  font-size: 0.96rem;
}

.card--cta {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.card--cta .card__text { color: rgba(255, 255, 255, 0.65); margin-bottom: 18px; }
.card--cta:hover { border-color: var(--blue); }

/* --------------------------------------------------------------------------
   Cards — Why Us
   -------------------------------------------------------------------------- */
.cards--why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.why-card:hover::before { transform: scaleY(1); }

.why-card__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process__line {
  position: absolute;
  top: 26px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.process__line-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.3s;
}
.process.is-visible .process__line-fill { transform: scaleX(1); }

.process__step { text-align: center; position: relative; }

.process__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: background-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.process__step:hover .process__badge {
  background: var(--blue);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15);
}

.process__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.process__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.93rem;
  max-width: 240px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -300px;
  right: -200px;
}
.cta::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -220px;
  left: -140px;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.cta__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact__info .section__title { margin-bottom: 4px; }
.contact__info .section__sub { margin-bottom: 40px; }

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 0;
  border-top: 1px solid var(--gray-100);
}

.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.contact__value {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact__phone {
  color: var(--blue);
  transition: color 0.25s;
}
.contact__phone:hover { color: var(--blue-dark); }

/* Form */
.form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow-md);
}

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

.form__group { margin-bottom: 20px; }

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.form__input::placeholder { color: #9aa1ad; }
.form__input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.form__input.is-invalid { border-color: #dc2626; }

.form__textarea { resize: vertical; min-height: 120px; }

.form__submit { width: 100%; margin-top: 6px; }

.form__status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.4em;
}
.form__status.is-success { color: #16a34a; }
.form__status.is-error { color: #dc2626; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 44px;
}

.footer__tagline {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--white); }

.footer__phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  transition: color 0.25s;
}
.footer__phone:hover { color: var(--blue); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cards--services { grid-template-columns: repeat(2, 1fr); }
  .cards--why { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .process__line { display: none; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__link { padding: 14px 0; font-size: 1rem; }
  .nav__link::after { display: none; }
  .btn--nav { margin-top: 12px; justify-content: center; }

  .hero { padding: 150px 0 80px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; margin-bottom: 64px; }

  .section { padding: 80px 0; }

  .cards--services,
  .cards--why,
  .process { grid-template-columns: 1fr; }

  .process__text { max-width: 320px; }

  .trust__list {
    flex-direction: column;
    align-items: flex-start;
    max-width: 320px;
    margin-inline: auto;
  }

  .form { padding: 30px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .cta__actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}
