/* ============================================
   WORKFLOWS247 — style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── TOKENS (brand palette: #2563EB / #059669, white background) ────── */
:root {
  --blue:       #2563EB;
  --purple:     #059669;
  --blue-light: #3b82f6;
  --purple-light:#10b981;
  --gradient:   linear-gradient(135deg, #2563EB 0%, #059669 100%);
  --gradient-r: linear-gradient(135deg, #059669 0%, #2563EB 100%);
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --light:      #eff6ff;
  --muted:      #94a3b8;
  --text:       #111827;
  --text-soft:  #4b5563;
  --border:     #e2e8f0;
  --card-bg:    #ffffff;
  --shadow-sm:  0 2px 12px rgba(37,99,235,.08);
  --shadow-md:  0 8px 32px rgba(37,99,235,.14);
  --shadow-lg:  0 20px 60px rgba(37,99,235,.18);
  --radius:     12px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --nav-h:      72px;
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Roboto', 'Tahoma', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ──────────────────────────── */
h1, h2, h3, h4 { font-family: 'Roboto', 'Tahoma', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-soft); line-height: 1.75; }

/* ── LAYOUT ──────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── GRADIENT TEXT ───────────────────────── */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION LABEL ───────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.45);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  transition: all .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.2);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* ── PILL TAGS ───────────────────────────── */
.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--light);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,.15);
}

/* ── EXAMPLE / PROOF LINKS ───────────────── */
.example-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--light);
  padding: 7px 15px;
  border-radius: 50px;
  border: 1px solid rgba(37,99,235,.18);
  transition: all .2s;
}
.example-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}
.example-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.example-links .example-link { margin-top: 0; }

.example-note {
  display: block;
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}

/* ── GRID HELPERS ────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', 'Roboto', sans-serif;
  font-weight: 700; font-size: 1.18rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 30% 70% 65% 35% / 35% 30% 70% 65%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: border-radius .35s ease;
}
.nav-logo:hover .nav-logo-icon { border-radius: 50%; }
.nav-logo-text .brand-num {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.nav-logo { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--light);
}
.nav-cta { margin-left: 8px; flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all .25s ease;
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: var(--light);
  border-color: rgba(37,99,235,.25);
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav-hamburger.active {
  background: var(--light);
  border-color: rgba(37,99,235,.3);
}
.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);
}
.nav-hamburger.active span {
  background: var(--blue);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all .2s;
}
.mobile-menu a:hover { background: var(--light); color: var(--blue); }

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: .82rem;
}
.footer-logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 30% 70% 65% 35% / 35% 30% 70% 65%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  margin-bottom: 12px;
}

/* ── HERO (shared base) ──────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37,99,235,.07) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 85% 70%, rgba(5,150,105,.07) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── STATS ROW ───────────────────────────── */
.stat-number { font-family: 'Roboto', sans-serif; font-size: 2.6rem; font-weight: 700; background: var(--gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.stat-label  { font-size: .85rem; color: var(--muted); margin-top: 2px; }

/* ── DIVIDER ─────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── BUY / OUTCOME BOX (hero) ────────────── */
.outcome-box {
  max-width: 640px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.outcome-row { font-size: .95rem; color: var(--text-soft); line-height: 1.65; }
.outcome-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 10px;
  border-radius: 50px;
  margin-right: 8px;
  white-space: nowrap;
}
.outcome-tag.buy    { background: var(--light); color: var(--blue); }
.outcome-tag.result { background: rgba(5,150,105,.1); color: var(--purple); }

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  padding: 160px 0 100px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(37,99,235,.06) 0%, transparent 70%);
}

/* ── CTA BAND ────────────────────────────── */
.cta-band {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,.82); margin-bottom: 32px; font-size: 1.05rem; }

/* ── ANIMATIONS ──────────────────────────── */

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(-10px); }
  50%       { transform: translateY(10px); }
}

/* Shine sweep */
@keyframes shine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shine-text {
  background: linear-gradient(90deg, var(--blue) 0%, var(--purple) 30%, #fff 50%, var(--purple) 70%, var(--blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.3); }
  50%       { box-shadow: 0 0 0 16px rgba(37,99,235,0); }
}

/* Fade up */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .7s ease forwards; }
.fade-up-2 { animation: fade-up .7s .15s ease both; }
.fade-up-3 { animation: fade-up .7s .3s ease both; }

/* Orbit dots */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: rotate(120deg) translateX(80px) rotate(-120deg); }
  to   { transform: rotate(480deg) translateX(80px) rotate(-480deg); }
}
@keyframes orbit3 {
  from { transform: rotate(240deg) translateX(140px) rotate(-240deg); }
  to   { transform: rotate(600deg) translateX(140px) rotate(-600deg); }
}

/* Scroll reveal (JS-assisted) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Gradient border card */
.grad-border {
  position: relative;
  border-radius: var(--radius);
  background: var(--card-bg);
}
.grad-border::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity .35s;
}
.grad-border:hover::before { opacity: 1; }

/* Moving gradient blob */
@keyframes blob-move {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-20px) scale(1.05); }
  66%       { transform: translate(-20px,15px) scale(.97); }
}

/* Shimmer bar */
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.shimmer-bar {
  position: relative;
  overflow: hidden;
  background: var(--light);
  border-radius: 4px;
}
.shimmer-bar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.8) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

/* Typing cursor */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--purple);
  margin-left: 2px;
}

/* ── PLACEHOLDER VISUALS ─────────────────── */
.visual-box {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.visual-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light) 0%, rgba(5,150,105,.06) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.visual-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(5,150,105,.08));
}

/* ── FLOATING SHAPES (decorative) ────────── */
.shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shape-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  animation: blob-move 8s ease-in-out infinite;
}
.shape-2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(5,150,105,.1) 0%, transparent 70%);
  animation: blob-move 11s ease-in-out infinite reverse;
}

/* ── BRAND LOGO ROW ──────────────────────── */
.brands-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.brand-item {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  transition: all .3s;
  background: #fff;
}
.brand-item:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── PROCESS STEPS ───────────────────────── */
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Roboto', sans-serif;
}

/* ── HERO VISUAL WIDGET ──────────────────── */
.hero-widget {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.widget-bar {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.widget-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.metric-row {
  display: flex; gap: 12px; margin-bottom: 12px;
}
.metric-card-sm {
  flex: 1;
  background: var(--light);
  border-radius: 12px;
  padding: 14px;
}
.metric-val {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-lbl { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.sparkline {
  height: 48px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(5,150,105,.05));
  border-radius: 8px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.sparkline::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shimmer 2.5s infinite;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stack-mobile { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
