/* ==========================================================================
   unchained. — B2B marketing agency site
   ========================================================================== */

:root {
  --bg: #130D1C;
  --cream: #F3EBDD;
  --orange: #E8794A;
  --peach: #F2B786;
  --gradient: linear-gradient(90deg, var(--orange), var(--peach));
  --card-top: #2A1F38;
  --card-bottom: #1A1226;
  --muted: #B8AFC2;
  --border: rgba(243, 235, 221, 0.08);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-cream {
  background: var(--cream);
  color: #1A1226;
}

.btn-cream:hover {
  box-shadow: 0 10px 30px rgba(243, 235, 221, 0.18);
}

.btn-solid {
  background: var(--gradient);
  color: #1A1226;
}

.btn-solid:hover {
  box-shadow: 0 10px 30px rgba(232, 121, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 235, 221, 0.3);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(243, 235, 221, 0.05);
}

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 13, 28, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo .dot {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}

/* ---- Hero ---- */

.hero {
  padding: 5rem 2rem 6rem;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 235, 221, 0.18);
  background: rgba(243, 235, 221, 0.04);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

.hero-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2.5rem;
  border-radius: 32px;
  text-align: left;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(232, 121, 74, 0.9) 0%, rgba(232, 121, 74, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(139, 92, 246, 0.55) 0%, rgba(42, 31, 56, 0) 55%),
    linear-gradient(160deg, var(--card-top), var(--card-bottom));
  border: 1px solid rgba(243, 235, 221, 0.1);
  overflow: hidden;
}

.hero-card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cream);
  opacity: 0.75;
  margin-bottom: 1rem;
}

.hero-card-stat {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.hero-card-caption {
  color: var(--cream);
  opacity: 0.85;
  max-width: 380px;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.hero-card-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-card-bars .bar {
  height: 10px;
  border-radius: 999px;
  background: var(--cream);
  max-width: 100%;
}

/* ---- What we do ---- */

.whatwedo {
  padding: 6rem 0;
}

.whatwedo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.whatwedo-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  max-width: 560px;
}

.whatwedo-sub {
  color: var(--muted);
  text-align: right;
  max-width: 340px;
  font-size: 1rem;
  margin-left: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gradient);
  color: #1A1226;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- Case study ---- */

.casestudy {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.casestudy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.casestudy-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.stats {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-caption {
  color: var(--muted);
  font-size: 1rem;
}

/* ---- CTA ---- */

.cta {
  padding: 7rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 720px;
}

.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  margin-bottom: 1.25rem;
}

.cta p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ---- Contact form ---- */

.form-card {
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.75rem;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.form-feedback {
  display: none;
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.form-feedback[data-fs-active] {
  display: block;
}

.form-feedback-success {
  background: rgba(154, 205, 137, 0.12);
  border: 1px solid rgba(154, 205, 137, 0.32);
  color: #D9ECD0;
}

.form-feedback-error {
  background: rgba(224, 108, 108, 0.12);
  border: 1px solid rgba(224, 108, 108, 0.32);
  color: #F3C9C9;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-form.is-submitted {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.form-field .optional {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(19, 13, 28, 0.55);
  border: 1px solid rgba(243, 235, 221, 0.14);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(184, 175, 194, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 121, 74, 0.18);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #E06C6C;
}

.field-error {
  display: none;
  color: #F0A7A7;
  font-size: 0.8rem;
}

.field-error[data-fs-active] {
  display: block;
}

.contact-form .btn[data-fs-submit-btn] {
  align-self: flex-start;
  position: relative;
}

.contact-form .btn[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-form .btn[data-fs-submit-btn]:disabled::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 0.65rem;
  border: 2px solid rgba(26, 18, 38, 0.3);
  border-top-color: #1A1226;
  border-radius: 50%;
  display: inline-block;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-contact a:hover {
  color: var(--cream);
}

.footer-address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

/* ---- Scroll-reveal animation ---- */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.nav[data-animate] {
  transform: none;
  transition: opacity 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .whatwedo-sub {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    padding: 1rem 1.25rem;
  }

  .nav .btn {
    padding: 0.6rem 1.15rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 3rem 1.25rem 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 3rem;
  }

  .hero-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 24px;
  }

  .whatwedo,
  .casestudy,
  .cta {
    padding: 4rem 0;
  }

  .section-inner {
    padding: 0 1.25rem;
  }

  .stats {
    gap: 2.5rem;
  }

  .form-card {
    padding: 1.75rem 1.5rem;
    border-radius: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.25rem;
  }

  .footer-contact {
    gap: 0.5rem 1.5rem;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-address {
    text-align: left;
  }
}
