/* ============================================================
   TGA Design — critical.css  (above the fold only)
   Loaded: <link rel="stylesheet"> in <head> — BLOCKING
   Mobile-first: base = mobile, min-width = larger screens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=DM+Mono:wght@300;400&display=swap');

/* ---- Variables ---- */
:root {
  --bg:      #0a0a0b;
  --bg2:     #0f0f12;
  --bg3:     #141418;
  --bg4:     #1c1c22;
  --bg5:     #242430;
  --blue:    #3b82f6;
  --blue2:   #60a5fa;
  --blue3:   rgba(59,130,246,0.12);
  --orange:  #ef4444;
  --orange2: #f87171;
  --white:   #f4f2ee;
  --white2:  #a8a5a0;
  --white3:  #5a5855;
  --white4:  #2e2c2a;
  --green:   #4ade80;
  --font:    'Poppins', sans-serif;
  --mono:    'DM Mono', monospace;
  --nav-h:   76px;
  --max:     1300px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease2:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --r:       10px;
  --r2:      18px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; font: inherit; cursor: pointer; }
::selection { background: rgba(59,130,246,.25); color: var(--white); }

/* ---- Container — mobile-first padding ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media(min-width:769px) { .container { padding: 0 2rem; } }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--blue); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px;
  font-weight: 600; font-size: .875rem; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow-c   { justify-content: center; }
.eyebrow-dim { color: var(--white3); }

/* ---- Text color utilities ---- */
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-white3 { color: var(--white3); }

/* ============================================================
   NAV
   Mobile default: burger visible, links hidden
   Desktop (min-width:1025px): links visible, burger hidden
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(10,10,11,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59,130,246,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}
.nav-logo {
  font-size: 1.375rem; font-weight: 800;
  letter-spacing: -.04em; color: var(--white);
  display: flex; align-items: center;
}
.nav-logo .dot { color: var(--orange); }

/* Mobile defaults */
.nav-links  { display: none; list-style: none; }
.nav-avail  { display: none; }
.nav-r      { display: flex; align-items: center; gap: 1rem; }
.nav-r .btn { display: none; }

.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
@media(min-width:1025px) {
  .nav-links {
    display: flex; align-items: center; gap: .125rem;
  }
  .nav-links > li > a {
    font-size: .875rem; font-weight: 500;
    color: var(--white2); padding: .5rem .875rem;
    border-radius: 6px; transition: color .2s;
    position: relative; display: block;
  }
  .nav-links > li > a::after {
    content: '';
    position: absolute; bottom: 2px; left: .875rem; right: .875rem;
    height: 2px; background: var(--blue);
    transform: scaleX(0); transition: transform .25s var(--ease);
    border-radius: 1px;
  }
  .nav-links > li > a:hover { color: var(--white); }
  .nav-links > li > a:hover::after,
  .nav-links > li > a.active::after { transform: scaleX(1); }
  .nav-links > li > a.active { color: var(--white); }
  .nav-r .btn    { display: inline-flex; }
  .nav-avail {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--mono); font-size: .7rem;
    color: var(--white2); letter-spacing: .04em;
  }
  .nav-burger { display: none; }
}

/* Dropdown (desktop only) */
.nav-drop { position: relative; }
.nav-dd {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px;
  background: var(--bg3);
  border: 1px solid rgba(59,130,246,.1);
  border-radius: var(--r2);
  padding: .625rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transition: all .25s var(--ease);
  z-index: 200;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.nav-drop:hover .nav-dd,
.nav-drop:focus-within .nav-dd { opacity: 1; pointer-events: all; transform: none; }
.nav-dd a {
  display: block; padding: .55rem .875rem;
  font-size: .875rem; font-weight: 400; color: var(--white2);
  border-radius: 6px; transition: all .15s;
}
.nav-dd a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav-dd .dd-sep {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--white3);
  padding: .625rem .875rem .2rem; pointer-events: none;
}

.nav-avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74,222,128,.2);
  animation: pulse-g 2.5s ease-in-out infinite;
}
@keyframes pulse-g {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
  50%      { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 999;
  padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2rem;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.625rem; font-weight: 700;
  color: var(--white2); padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s, padding-left .2s;
}
.mobile-nav a:hover { color: var(--blue); padding-left: .5rem; }
.mobile-nav .m-cta { color: var(--orange) !important; margin-top: .75rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  font-family: var(--font); font-weight: 600; font-size: .9375rem;
  border-radius: 8px;
  transition: all .3s var(--ease);
  white-space: nowrap; cursor: pointer; position: relative;
  overflow: hidden;
}
@media(min-width:480px) { .btn { padding: .875rem 2rem; } }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(239,68,68,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,.35);
}

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid var(--white4);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--blue); padding: .875rem 0;
}
.btn-ghost .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(6px); }

.btn-lg { padding: .9375rem 1.875rem; font-size: 1rem; }
@media(min-width:480px) { .btn-lg { padding: 1.0625rem 2.375rem; } }

/* Block button & centered group */
.btn-block       { width: 100%; justify-content: center; }
.btn-group-c     { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   HERO
   Mobile-first: single column, stacked elements
   Desktop (min-width:1100px): two-column layout
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(59,130,246,.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(239,68,68,.04) 0%, transparent 50%);
  pointer-events: none;
  animation: hero-bg-shift 15s ease-in-out infinite alternate;
}
@keyframes hero-bg-shift {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.08) translate(-2%,1%); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.018) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-body {
  position: relative; z-index: 1;
  padding: 4rem 0 3rem;
}
@media(min-width:640px) { .hero-body { padding: 5rem 0 4rem; } }

/* Single column on mobile, two columns on desktop */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media(min-width:1100px) {
  .hero-layout { grid-template-columns: 1fr 480px; gap: 4rem; }
}

/* Entrance animations */
@keyframes fadeUp    { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes fadeRight { from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:translateX(0)} }

.h-a1 { animation: fadeUp .75s var(--ease) .05s both; }
.h-a2 { animation: fadeUp .85s var(--ease) .18s both; }
.h-a3 { animation: fadeUp .75s var(--ease) .32s both; }
.h-a4 { animation: fadeUp .75s var(--ease) .44s both; }
.h-a5 { animation: fadeUp .75s var(--ease) .55s both; }
.h-ar { animation: fadeRight .9s var(--ease) .25s both; }

/* Tag pill */
.hero-tag {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .375rem 1rem;
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 100px;
  background: rgba(59,130,246,.08);
  margin-bottom: 1.75rem;
}
.hero-tag-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74,222,128,.2);
  animation: pulse-g 2.5s ease-in-out infinite;
}
.hero-tag-text {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--white2);
}

/* Hero title — smaller on mobile, clamp up on desktop */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 1.625rem;
}
@media(min-width:640px) {
  .hero-title { font-size: clamp(2.75rem, 6.5vw, 6rem); }
}
.hero-title .blue { color: var(--blue); }
.hero-title .outline {
  -webkit-text-stroke: 2px rgba(244,242,238,.2);
  color: transparent;
  display: block;
}

.hero-sub {
  font-size: 1.0625rem; font-weight: 300;
  line-height: 1.8; color: var(--white2);
  max-width: 480px; margin-bottom: 2.5rem;
}

/* Stacked on mobile, row on larger */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .875rem;
  margin-bottom: 3rem;
}
@media(min-width:480px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 1.25rem; }
}

/* Stat strip — column on mobile, row on larger */
.hero-stats {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r);
  overflow: hidden;
  width: 100%;
}
@media(min-width:640px) {
  .hero-stats { flex-direction: row; width: fit-content; }
}
.hero-stat {
  padding: 1rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.hero-stat:last-child { border-bottom: 0; }
@media(min-width:640px) {
  .hero-stat { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.06); }
  .hero-stat:last-child { border-right: 0; }
}
.hero-stat-n {
  font-size: 1.75rem; font-weight: 900;
  letter-spacing: -.05em; color: var(--white); line-height: 1;
  margin-bottom: .25rem;
}
.hero-stat-n span { color: var(--blue); }
.hero-stat-l { font-size: .75rem; color: var(--white3); font-family: var(--mono); letter-spacing: .04em; }

/* Hero right card */
.hero-card {
  background: var(--bg3);
  border: 1px solid rgba(59,130,246,.1);
  border-radius: var(--r2); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.hero-card-img {
  width: 100%; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.06);
  min-height: 240px; object-fit: cover;
  background: var(--bg4); display: block;
}
.hero-card-ph {
  width: 100%; min-height: 240px;
  border-radius: var(--r);
  border: 1px dashed rgba(255,255,255,.08);
  background: var(--bg4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; color: var(--white3); font-size: .8125rem; font-family: var(--mono);
}

/* Badges hidden on mobile, shown on larger screens */
.hero-badge {
  display: none;
  position: absolute;
  background: var(--bg3);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: var(--r);
  padding: .75rem 1rem;
  align-items: center; gap: .625rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
@media(min-width:1100px) { .hero-badge { display: flex; } }
.hero-badge.b1 { bottom: -1.25rem; left: -1.25rem; animation: float 4s ease-in-out infinite; }
.hero-badge.b2 { top: -1.25rem; right: -1.25rem; animation: float 5s ease-in-out 1s infinite; }
.hero-card-wrap { position: relative; padding: 1.75rem; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hb-dot.blue   { background: var(--blue);   animation: pulse-g 2.5s infinite; }
.hb-dot.green  { background: var(--green);  animation: pulse-g 2s infinite; }
.hb-dot.orange { background: var(--orange); animation: pulse-g 2.5s .5s infinite; }
.hb-icon  { font-size: 1rem; line-height: 1; }
.hb-title { font-size: .8125rem; font-weight: 600; color: var(--white); }
.hb-sub   { font-family: var(--mono); font-size: .68rem; color: var(--white3); margin-top: 1px; }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: fadeIn 1s var(--ease) 1.2s both;
  z-index: 1;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--white4); border-radius: 11px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 6px;
  background: var(--blue); border-radius: 2px;
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(10px)} }
.scroll-lbl {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--white3);
}

/* ============================================================
   WooDash hero card (above fold on homepage)
   ============================================================ */
.hero-dash-wrap { position: relative; }

.woo-dash {
  background: var(--bg3);
  border: 1px solid rgba(59,130,246,.12);
  border-radius: var(--r2);
  padding: 1.5rem;
  position: relative; overflow: hidden;
}
.woo-dash::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.woo-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.woo-dash-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 700; color: var(--white);
}
.woo-dash-logo-icon { font-size: 1rem; }
.woo-dash-live {
  display: flex; align-items: center; gap: .375rem;
  font-family: var(--mono); font-size: .68rem;
  color: var(--green); letter-spacing: .06em;
}
.woo-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-g 2s ease-in-out infinite;
}
.woo-revenue-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem;
}
.woo-rev-label {
  font-family: var(--mono); font-size: .68rem;
  color: var(--white3); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .25rem;
}
.woo-rev-amount {
  font-size: 1.75rem; font-weight: 900;
  letter-spacing: -.04em; color: var(--white); line-height: 1;
  margin-bottom: .375rem;
}
.woo-rev-change { font-size: .78rem; display: flex; gap: .375rem; align-items: center; }
.woo-rev-change-note { color: var(--white3); }
.woo-up { color: var(--green); font-weight: 600; }

.woo-mini-chart { width: 120px; height: 40px; flex-shrink: 0; }
.woo-mini-chart svg { width: 100%; height: 100%; }
/* SVG chart line animation — replaces inline style */
.woo-chart-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-line 2s ease forwards .8s;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.woo-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: .625rem; margin-bottom: 1.25rem;
}
.woo-stat-box {
  background: var(--bg4);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r);
  padding: .75rem .625rem;
  display: flex; flex-direction: column;
  align-items: center; gap: .25rem; text-align: center;
}
.woo-stat-icon { font-size: .875rem; }
.woo-stat-val {
  font-size: .9375rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--white); line-height: 1;
}
.woo-stat-lbl {
  font-family: var(--mono); font-size: .6rem;
  color: var(--white3); letter-spacing: .04em;
}
.woo-orders-label {
  font-family: var(--mono); font-size: .68rem;
  color: var(--white3); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .625rem;
}
.woo-orders { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.woo-order {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--bg4);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 8px; padding: .625rem .875rem;
}
@keyframes new-order-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.woo-order-left { display: flex; align-items: center; gap: .625rem; }
.woo-order-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.woo-order-status.new        { background: var(--blue);   box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.woo-order-status.processing { background: var(--orange); box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.woo-order-status.done       { background: var(--green); }
.woo-order-name  { font-size: .8125rem; font-weight: 600; color: var(--white); }
.woo-order-meta  { font-family: var(--mono); font-size: .65rem; color: var(--white3); margin-top: 1px; }
.woo-order-price { font-size: .875rem; font-weight: 700; color: var(--white); flex-shrink: 0; }

.woo-integrations-strip { display: flex; flex-wrap: wrap; gap: .375rem; }
.woo-int-pill {
  font-family: var(--mono); font-size: .65rem;
  padding: .2rem .625rem; border-radius: 100px;
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.15);
  color: var(--blue); letter-spacing: .03em;
}
