/* ============================================================
   EMAIL MARKETING HERO — ceek-style diagonal layout
   Heading: top-left  |  Text: bottom-right
   ============================================================ */

.emm-hero {
  background: #0d0d0d;
  padding: 0 60px;
  min-height: 100vh;
  height: 100vh;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Ambient glow ── */
.emm-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 700px;
  height: 600px;
  background: radial-gradient(
    ellipse at top left,
    rgba(124,58,237,0.18) 0%,
    rgba(233,30,140,0.10) 40%,
    transparent 70%
  );
  filter: blur(90px);
  pointer-events: none;
}

/* ── Inner grid ── */
.emm-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 48px 60px;
  position: relative;
  z-index: 2;
}

/* ── Heading — full top row, one line ── */
.emm-heading {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  font-family: 'Inter', sans-serif;
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.90;
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

/* "Marketing" word in brand gradient */
.emm-heading .emm-grad {
  background: linear-gradient(90deg, #e91e8c 0%, #b259f5 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════
   EMAIL APP MOCKUP — bottom-left
   ════════════════════════════════════════════ */

.emm-app {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  position: relative;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(233,30,140,0.06) inset;
}

/* Window title bar */
.emm-app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.emm-app-dots { display: flex; gap: 5px; }
.emm-dot-r, .emm-dot-y, .emm-dot-g {
  width: 9px; height: 9px; border-radius: 50%;
}
.emm-dot-r { background: #ff5f57; }
.emm-dot-y { background: #febc2e; }
.emm-dot-g { background: #28c840; }

.emm-app-bar-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
  margin: 0 auto;
}

/* Body: sidebar + main */
.emm-app-body {
  display: flex;
  height: 280px;
}

/* Sidebar */
.emm-app-sidebar {
  width: 110px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.emm-app-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  cursor: default;
  transition: background 0.2s;
}

.emm-app-nav svg {
  width: 11px; height: 11px; flex-shrink: 0;
}

.emm-nav-active {
  background: rgba(233,30,140,0.15);
  color: #e91e8c;
  border: 1px solid rgba(233,30,140,0.2);
}

/* Main panel */
.emm-app-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Stats row */
.emm-app-stats {
  display: flex;
  gap: 8px;
}

.emm-app-stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.emm-app-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 3px;
}
.emm-app-stat-num.pink   { color: #e91e8c; }
.emm-app-stat-num.purple { color: #b259f5; }
.emm-app-stat-num.green  { color: #4ade80; }

.emm-app-stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Campaign rows */
.emm-app-campaigns {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.emm-camp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 7px 10px;
}

.emm-camp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.emm-camp-info {
  flex: 1;
  min-width: 0;
}

.emm-camp-name {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emm-camp-status {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.38);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.emm-status-done { color: #4ade80 !important; }

/* Sending dot pulse */
.emm-sending-dot {
  width: 5px; height: 5px;
  background: #e91e8c;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(233,30,140,0.9);
  animation: emm-live-pulse 1.4s ease-in-out infinite;
}

@keyframes emm-live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Typing dots */
.emm-typing span {
  animation: emm-blink 1.4s ease-in-out infinite;
  display: inline-block;
}
.emm-typing span:nth-child(2) { animation-delay: 0.2s; }
.emm-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes emm-blink {
  0%, 80%, 100% { opacity: 0; }
  40%            { opacity: 1; }
}

/* Progress bar */
.emm-camp-bar-wrap {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.emm-camp-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #e91e8c, #b259f5);
  transition: width 1.4s cubic-bezier(0.22,1,0.36,1);
}
.emm-bar-purple { background: linear-gradient(90deg, #7c3aed, #b259f5); }
.emm-bar-green  { background: #4ade80; }

.emm-camp-pct {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* Mini chart */
.emm-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: auto;
}

.emm-mini-bar {
  flex: 1;
  height: 0;
  border-radius: 2px 2px 0 0;
  background: rgba(233,30,140,0.2);
  border-top: 1px solid rgba(233,30,140,0.3);
  transition: height 1s cubic-bezier(0.22,1,0.36,1);
}

.emm-mini-bar.emm-mini-go { height: var(--h, 50%); }
.emm-mini-active { background: rgba(233,30,140,0.55) !important; border-color: #e91e8c !important; }

/* Toast notifications */
.emm-toast {
  position: absolute;
  right: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(20px);
}

.emm-toast-1 {
  bottom: 52px;
  animation: emm-toast-in 0.5s cubic-bezier(0.16,1,0.3,1) 1.8s forwards,
             emm-toast-out 0.4s ease 4.5s forwards;
}

.emm-toast-2 {
  bottom: 24px;
  animation: emm-toast-in 0.5s cubic-bezier(0.16,1,0.3,1) 2.4s forwards,
             emm-toast-out 0.4s ease 5.5s forwards;
}

@keyframes emm-toast-in {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes emm-toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

/* ── Bottom-right: paragraphs ── */
.emm-text {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emm-p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(255,255,255,0.52);
  margin: 0;
}

/* ══════════════════════════════════════════
   ENTRANCE ANIMATIONS
══════════════════════════════════════════ */

/* Keyframes */
@keyframes emm-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes emm-clip-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@keyframes emm-grad-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes emm-grad-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes emm-app-in {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes emm-glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── "EMAIL" — clip-path wipe in from left ── */
.emm-heading {
  clip-path: inset(0 100% 0 0);
  animation: emm-clip-reveal 1s cubic-bezier(0.77,0,0.18,1) 0.15s both;
}

/* ── "MARKETING" gradient — fades up + continuous shimmer ── */
.emm-heading .emm-grad {
  display: inline;
  background: linear-gradient(90deg, #e91e8c 0%, #b259f5 30%, #7c3aed 60%, #e91e8c 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    emm-grad-in      0.9s cubic-bezier(0.16,1,0.3,1) 0.7s both,
    emm-grad-shimmer 4s   linear                      1.6s infinite;
}

/* ── App card — scale-up entrance ── */
.emm-app {
  animation: emm-app-in 1s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}

/* ── Paragraphs — staggered lines ── */
.emm-text {
  animation: none;
}
.emm-p:nth-child(1) {
  animation: emm-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) 0.85s both;
}
.emm-p:nth-child(2) {
  animation: emm-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) 1.05s both;
}

/* ── Ambient glow breathes ── */
.emm-hero::before {
  animation: emm-glow-breathe 6s ease-in-out infinite;
}

/* Second glow on the right */
.emm-hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 600px;
  height: 500px;
  background: radial-gradient(
    ellipse at bottom right,
    rgba(233,30,140,0.14) 0%,
    rgba(124,58,237,0.08) 45%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  animation: emm-glow-breathe 7s ease-in-out 1.5s infinite;
}

/* ── Floating ambient dots ── */
.emm-float-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.emm-fd-1 {
  width: 5px; height: 5px;
  background: #e91e8c;
  top: 28%; right: 18%;
  box-shadow: 0 0 14px rgba(233,30,140,0.85);
  animation: emm-dot-pop 0.6s cubic-bezier(0.16,1,0.3,1) 1.2s both,
             emm-float   5s ease-in-out 2s infinite;
}

.emm-fd-2 {
  width: 4px; height: 4px;
  background: #b59bff;
  bottom: 35%; left: 60%;
  box-shadow: 0 0 12px rgba(181,155,255,0.8);
  animation: emm-dot-pop 0.6s cubic-bezier(0.16,1,0.3,1) 1.5s both,
             emm-float   6s ease-in-out 2.2s infinite;
}

.emm-fd-3 {
  width: 3px; height: 3px;
  background: #7c3aed;
  top: 55%; right: 8%;
  box-shadow: 0 0 10px rgba(124,58,237,0.9);
  animation: emm-dot-pop 0.6s cubic-bezier(0.16,1,0.3,1) 1.8s both,
             emm-float   7s ease-in-out 2.4s infinite;
}

@keyframes emm-float {
  0%, 100% { transform: translateY(0);     opacity: 0.75; }
  50%       { transform: translateY(-14px); opacity: 1; }
}

@keyframes emm-dot-pop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Scroll hint ── */
.emm-scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: emm-scroll-fade 2s ease-in-out 2s infinite,
             emm-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 1.4s both;
}

.emm-scroll-hint span {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.emm-scroll-arrow {
  width: 16px; height: 16px;
  border-right: 1.5px solid rgba(255,255,255,0.5);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}

@keyframes emm-scroll-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(4px); }
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .emm-hero  { padding: 0 40px; }
  .emm-inner { gap: 36px 40px; }
  .emm-heading { font-size: clamp(50px, 8vw, 84px); }
}

/* ── Mobile ── */
@media (max-width: 680px) {
  /* padding-top clears the 64px fixed navbar; start content at top, not centered */
  .emm-hero  { padding: 96px 24px 48px; height: auto; min-height: 100svh; align-items: flex-start; }
  .emm-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;   /* heading · text · flow */
    gap: 32px;
  }
  .emm-heading { grid-column: 1; white-space: normal; font-size: clamp(44px, 13vw, 66px); }
  .emm-app     { display: none; }
  .emm-text    { grid-column: 1; grid-row: 2; align-self: start; }
  /* flow infographic gets its OWN row below the text (was overlapping it) */
  .emm-flow    { grid-column: 1; grid-row: 3; align-self: start; width: 100%; }
  .emm-scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .emm-heading      { clip-path: none; animation: none; opacity: 1; }
  .emm-heading .emm-grad,
  .emm-app,
  .emm-p,
  .emm-fd-1, .emm-fd-2, .emm-fd-3,
  .emm-scroll-hint,
  .emm-hero::before,
  .emm-hero::after  { animation: none; opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════
   DATA-ANIM SCROLL SYSTEM
   (trust strip, related articles, any
    element with data-anim="...")
══════════════════════════════════════════ */

[data-anim] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity  0.75s cubic-bezier(0.22,1,0.36,1),
    transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

[data-anim="fade-up"]    { transform: translateY(44px); }
[data-anim="fade-left"]  { transform: translateX(-48px); }
[data-anim="fade-right"] { transform: translateX(48px); }
[data-anim="scale-in"]   { transform: scale(0.93) translateY(24px); }

[data-anim].anim-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

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

/* ════════════════════════════════════════════════
   EMAIL AUTOMATION FLOW INFOGRAPHIC
   Replaces the old .emm-app campaign dashboard
   ════════════════════════════════════════════════ */
.emm-flow {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  position: relative;
  padding: 18px 20px 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(233,30,140,0.06) inset;
}

/* ── Header ── */
.emm-flow-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.emm-flow-live {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74,222,128,0.85);
  animation: emm-flow-pulse 2.4s ease-in-out infinite;
}
@keyframes emm-flow-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

/* ── Flow track ── */
.emm-flow-track {
  display: flex;
  align-items: center;
  gap: 0;
}

.emm-flow-node {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 12px 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: emm-flow-in 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes emm-flow-in { to { opacity: 1; transform: translateY(0); } }

.emm-flow-node--win {
  background: linear-gradient(160deg, rgba(233,30,140,0.16) 0%, rgba(181,23,158,0.10) 100%);
  border-color: rgba(233,30,140,0.35);
  box-shadow: 0 8px 26px rgba(233,30,140,0.22);
}

.emm-flow-icon { font-size: 18px; line-height: 1; margin-bottom: 6px; }

.emm-flow-name {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.75);
}

.emm-flow-num {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.emm-flow-node--win .emm-flow-num { color: #ff5fb0; }

.emm-flow-day {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ── Connector with travelling pulse ── */
.emm-flow-link {
  position: relative;
  flex: 0 0 26px;
  height: 2px;
  background: rgba(255,255,255,0.13);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: emm-flow-fade 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes emm-flow-fade { to { opacity: 1; } }

.emm-flow-pulse {
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #e91e8c, transparent);
  animation: emm-flow-travel 2.2s linear infinite;
}
@keyframes emm-flow-travel {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ── Footer stats ── */
.emm-flow-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.emm-flow-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.emm-flow-stat b {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.emm-flow-stat span {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}
.emm-flow-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .emm-flow-icon { font-size: 15px; }
  .emm-flow-num  { font-size: 14px; }
  .emm-flow-link { flex-basis: 14px; }
  .emm-flow-foot { gap: 8px; }
  .emm-flow-stat b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .emm-flow-node, .emm-flow-link { animation: none; opacity: 1; transform: none; }
  .emm-flow-pulse, .emm-flow-live { animation: none; }
  .emm-flow-pulse { display: none; }
}

/* Mobile: flow infographic must sit BELOW the paragraph, not overlap it.
   Placed at end of file so it overrides the base .emm-flow grid-row. */
@media (max-width: 680px) {
  .emm-flow { grid-column: 1 !important; grid-row: 3 !important; align-self: start; width: 100%; }
}

/* mobile readability: micro-labels under 10px are raised on phones */
@media (max-width: 768px) {
  .emm-app-stat-lbl { font-size: 10.5px; }
  .emm-camp-status { font-size: 10.5px; }
  .emm-camp-pct { font-size: 10.5px; }
  /* Toast notifications */
.emm-toast { font-size: 10.5px; }
  .emm-scroll-hint span { font-size: 10.5px; }
  /* ── Header ── */
.emm-flow-head { font-size: 10.5px; }
  .emm-flow-day { font-size: 10.5px; }
  .emm-flow-stat span { font-size: 10.5px; }
}
