/* ===== Custom Properties ===== */
:root {
  --bg: #0b0b0f;
  --bg-card: #141419;
  --bg-elevated: #1a1a21;
  --bg-cream: #f7f3ed;
  --bg-cream-card: #efe9e0;
  --amber: #e8a838;
  --amber-hover: #f0b54a;
  --amber-dim: rgba(232, 168, 56, 0.12);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.1);
  --indigo: #6366f1;
  --text: #f0ece4;
  --text-muted: #8a8690;
  --text-dark: #1a1a21;
  --text-dark-muted: #5c5862;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --nav-h: 56px;
  --section-pad: clamp(80px, 12vw, 160px);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }
img, svg { display: block; }

/* ===== Utilities ===== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1200px;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 72px;
  line-height: 1.6;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
}

.btn--primary {
  background: var(--amber);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 168, 56, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 14px 4px;
}

.btn--ghost::after {
  content: ' \2192';
  transition: margin-left 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.btn--ghost:hover::after {
  margin-left: 6px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

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

.btn--dark:hover {
  background: var(--bg-card);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(11, 11, 15, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav--scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 11, 15, 0.92);
}

.nav__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
}

.logo-text--sm {
  font-size: 0.95rem;
}

.logo-accent {
  color: var(--amber);
}

.nav__menu {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.6);
}

/* Animated gradient mesh */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  will-change: transform;
}

.hero__mesh-blob--amber {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.35) 0%, transparent 70%);
  top: 10%;
  left: 15%;
  animation: meshDrift1 12s ease-in-out infinite alternate;
}

.hero__mesh-blob--teal {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation: meshDrift2 14s ease-in-out infinite alternate;
}

.hero__mesh-blob--indigo {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation: meshDrift3 10s ease-in-out infinite alternate;
}

@keyframes meshDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.15); }
}

@keyframes meshDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -30px) scale(1.1); }
}

@keyframes meshDrift3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-45%, -55%) scale(1.2); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero__title-grow {
  color: var(--text);
}

.hero__title-automate {
  color: var(--amber);
}

.hero__title-secure {
  color: var(--text);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
  font-weight: 400;
}

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

/* ===== Services ===== */
.services {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 168, 56, 0.2);
  box-shadow: 0 16px 48px rgba(232, 168, 56, 0.08),
              0 0 0 1px rgba(232, 168, 56, 0.1);
}

/* Glow effect on hover */
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.2), rgba(45, 212, 191, 0.15), transparent, transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover::before {
  opacity: 1;
}

.card__image {
  width: calc(100% + 64px);
  margin: -40px -32px 28px -32px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.5s;
}

.card:hover .card__image {
  filter: brightness(0.95) saturate(1);
}

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

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card__body {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.card__tags li {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.card:hover .card__tags li {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ===== Storefront ===== */
.storefront {
  padding: var(--section-pad) 0;
  background: #111116;
  position: relative;
}

.storefront__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.storefront__feature {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}

.storefront__feature:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.storefront__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber-dim);
  color: var(--amber);
  margin-bottom: 20px;
}

.storefront__icon--teal {
  background: var(--teal-dim);
  color: var(--teal);
}

.storefront__icon--indigo {
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo);
}

.storefront__icon--amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.storefront__feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.storefront__feature p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.storefront__cta {
  text-align: center;
}

/* Stagger for 4 items */
.storefront__features > .reveal:nth-child(4) { transition-delay: 0.45s; }

@media (max-width: 900px) {
  .storefront__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== Why ===== */
.why {
  padding: var(--section-pad) 0;
  background: var(--bg);
  color: var(--text);
}

.why .section-title {
  color: var(--text);
}

.why .section-subtitle {
  color: var(--text-muted);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why__item {
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
  position: relative;
  overflow: hidden;
}

.why__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.why__item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.why__item:hover::after {
  opacity: 1;
}

.why__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--amber);
  margin-bottom: 20px;
  line-height: 1;
  opacity: 0.7;
}

.why__item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.why__item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== Process ===== */
.process {
  padding: var(--section-pad) 0;
  background: var(--bg-cream);
  color: var(--text-dark);
  position: relative;
}

.process .section-title {
  color: var(--text-dark);
}

.process .section-subtitle {
  color: var(--text-dark-muted);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}

.process__step {
  text-align: center;
  padding: 48px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-cream-card);
  counter-increment: step;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s;
  position: relative;
}

.process__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 33, 0.08);
}

.process__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--amber);
  margin-bottom: 24px;
}

.process__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.process__step p {
  color: var(--text-dark-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

.process__connector {
  display: none;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portfolio__card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.5s,
              box-shadow 0.5s;
  text-decoration: none;
  color: inherit;
}

.portfolio__card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 168, 56, 0.25);
  box-shadow: 0 20px 60px rgba(232, 168, 56, 0.1),
              0 0 0 1px rgba(232, 168, 56, 0.1);
}

.portfolio__browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.portfolio__dots {
  display: flex;
  gap: 6px;
}

.portfolio__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.portfolio__card:hover .portfolio__dots span:nth-child(1) {
  background: #ff5f57;
}

.portfolio__card:hover .portfolio__dots span:nth-child(2) {
  background: #febc2e;
}

.portfolio__card:hover .portfolio__dots span:nth-child(3) {
  background: #28c840;
}

.portfolio__url {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.portfolio__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
}

.portfolio__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.portfolio__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.portfolio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.portfolio__tags li {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.portfolio__card:hover .portfolio__tags li {
  border-color: var(--border-hover);
  color: var(--text);
}

.portfolio__visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber);
  transition: gap 0.3s;
}

.portfolio__visit svg {
  display: inline-block;
  transition: transform 0.3s;
}

.portfolio__card:hover .portfolio__visit svg {
  transform: translate(3px, -3px);
}

/* ===== Contact ===== */
.contact {
  padding: var(--section-pad) 0;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Radial glow behind heading */
.contact::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact .section-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--text);
  position: relative;
}

.contact__subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 480px;
  margin: 20px auto 44px;
  line-height: 1.7;
  position: relative;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer__tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

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

.footer__copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services__grid,
  .why__grid,
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 12px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s;
    border-bottom: 1px solid var(--border);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__menu li {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 0.92rem;
  }

  .nav__link::after {
    display: none;
  }

  .services__grid,
  .why__grid,
  .process__steps,
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero__mesh-blob {
    filter: blur(80px);
    opacity: 0.3;
  }

  .hero__mesh-blob--amber {
    width: 350px;
    height: 350px;
  }

  .hero__mesh-blob--teal {
    width: 300px;
    height: 300px;
  }

  .hero__mesh-blob--indigo {
    width: 250px;
    height: 250px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Hamburger animation */
  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* ===== Blog Listing ===== */
.blog-listing {
  padding: calc(var(--section-pad) + var(--nav-h)) 0 var(--section-pad);
  background: var(--bg);
  min-height: 100vh;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ===== Post Card ===== */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s,
              border-color 0.4s;
  overflow: hidden;
}

.post-card__image {
  width: calc(100% + 64px);
  margin: -32px -32px 24px -32px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.5s;
}

.post-card:hover .post-card__image {
  filter: brightness(0.95) saturate(1);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 168, 56, 0.06);
  border-color: rgba(232, 168, 56, 0.15);
}

.post-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card__meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

.post-card__title a:hover {
  color: var(--amber);
}

.post-card__summary {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.post-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ===== Tag Pills ===== */
.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-dim);
  border-radius: 100px;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: background 0.25s;
}

.tag:hover {
  background: rgba(232, 168, 56, 0.2);
}

.tag--lg {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ===== Single Post ===== */
.post__header {
  padding: calc(var(--section-pad) + var(--nav-h)) 0 48px;
  text-align: center;
  background: var(--bg);
}

.post__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 20px;
}

.post__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 780px;
  margin: 0 auto;
}

.post__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 20px auto 0;
}

.post__tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.post__featured-image {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 36px;
  display: block;
  filter: brightness(0.9);
}

/* ===== Post Content Typography ===== */
.post__content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 var(--section-pad);
}

.post__content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}

.post__content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin: 40px 0 14px;
}

.post__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5em;
}

.post__content a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 168, 56, 0.3);
  transition: border-color 0.25s;
}

.post__content a:hover {
  border-bottom-color: var(--amber);
}

.post__content ul,
.post__content ol {
  margin: 0 0 1.5em 1.5em;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.post__content li {
  margin-bottom: 0.5em;
}

.post__content blockquote {
  border-left: 3px solid var(--amber);
  padding: 16px 28px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post__content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 28px 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.post__content code {
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--amber);
}

.post__content pre code {
  background: none;
  padding: 0;
  color: var(--text-muted);
}

.post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 28px 0;
}

.post__content strong {
  font-weight: 600;
  color: var(--text);
}

/* ===== Post Navigation ===== */
.post__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0 var(--section-pad);
  border-top: 1px solid var(--border);
}

.post__nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--amber);
  text-decoration: none;
  transition: opacity 0.25s;
}

.post__nav-link:hover {
  opacity: 0.7;
}

.post__nav-link--next {
  margin-left: auto;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  list-style: none;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.page-item .page-link:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-hover);
}

.page-item.active .page-link {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}

.page-item.disabled .page-link {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== Blog Responsive ===== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .post__title {
    font-size: 1.75rem;
  }

  .post__nav {
    flex-direction: column;
  }

  .post__nav-link--next {
    margin-left: 0;
  }
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .55);
}

@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}
