/*
Theme Name: FlowMate
Theme URI: https://flowmate.com.au
Author: FlowMate
Author URI: https://flowmate.com.au
Description: FlowMate — AI Automation for Australian Businesses
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flowmate
Tags: business, one-page, responsive
*/

/* =============================================
   FLOWMATE v2 — DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  /* Core palette */
  --white:        #ffffff;
  --off-white:    #f8f7f4;
  --surface:      #f2f0ec;
  --teal:         #059669;
  --teal-light:   #d1fae5;
  --teal-mid:     #10b981;
  --teal-dark:    #047857;
  --teal-glow:    rgba(5, 150, 105, 0.18);
  --ink:          #0c1117;
  --ink-mid:      #1a2332;
  --ink-soft:     #2d3748;
  --muted:        #5a6a7e;
  --muted-light:  #8fa0b4;
  --border:       #e4e1da;
  --border-dark:  #c8c3b8;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07);
  --shadow-xl:  0 40px 80px rgba(0,0,0,0.15), 0 16px 32px rgba(0,0,0,0.08);
  --shadow-teal: 0 8px 32px rgba(5,150,105,0.28);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-pill: 9999px;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* =================== TYPOGRAPHY =================== */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.08; }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--teal); font-family: var(--font-display); }

/* =================== LAYOUT =================== */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }
.section-light { background: var(--surface); }
.section-white { background: var(--white); }

/* =================== BUTTONS =================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--white);
  padding: 0.9rem 2rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.925rem; font-family: var(--font-body);
  transition: all 0.25s var(--ease-spring);
  border: 1.5px solid var(--ink); cursor: pointer;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--teal); border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--ink);
  padding: 0.9rem 2rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.925rem;
  border: 1.5px solid var(--border-dark);
  transition: all 0.2s var(--ease); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--white);
  padding: 0.9rem 2rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.925rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s var(--ease); cursor: pointer;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.btn-outline {
  display: block; text-align: center;
  background: transparent; color: var(--ink);
  padding: 0.9rem 2rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.925rem;
  border: 1.5px solid var(--border-dark);
  transition: all 0.2s var(--ease); cursor: pointer;
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.btn-nav {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--white);
  padding: 0.55rem 1.35rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.875rem;
  transition: all 0.2s var(--ease-spring);
  border: 1.5px solid var(--ink);
}
.btn-nav:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }

.btn-xl { padding: 1.1rem 2.6rem; font-size: 1rem; }

/* =================== STICKY CTA BAR =================== */
#sticky-cta {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(100px);
  z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 0.875rem 1.5rem; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.5s var(--ease-spring), opacity 0.4s var(--ease);
  opacity: 0; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
#sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: all;
}
.sticky-cta-text { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.sticky-cta-text strong { color: var(--white); }
.sticky-cta-btn {
  background: var(--teal); color: var(--white);
  padding: 0.5rem 1.25rem; border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s var(--ease-spring);
  border: none; cursor: pointer; display: inline-block;
}
.sticky-cta-btn:hover { background: var(--teal-dark); transform: scale(1.03); }
.sticky-cta-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 1.1rem; padding: 0 0.25rem;
  transition: color 0.2s; line-height: 1;
}
.sticky-cta-close:hover { color: var(--white); }

/* =================== NAV =================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s var(--ease);
  padding: 0;
}
#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

.logo {
  display: flex; align-items: center; gap: 0.5rem;
}
.logo img { height: 44px; width: auto; display: block; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.875rem; color: var(--muted); font-weight: 500;
  transition: color 0.2s; letter-spacing: -0.005em;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0; transition: max-height 0.4s var(--ease);
}
.mobile-menu a {
  font-weight: 500; color: var(--muted); padding: 1rem 2rem;
  border-bottom: 1px solid var(--border); font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--ink); background: var(--surface); }
.mobile-menu.open { display: flex; max-height: 500px; }

/* =================== HERO =================== */
#hero {
  min-height: 100vh;
  padding: 0 2rem 0;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  align-items: center; gap: 5rem;
  position: relative; padding-top: 7rem;
}

/* Animated mesh gradient background */
.hero-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute; top: -40%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(5,150,105,0.08) 0%, transparent 70%);
  animation: meshDrift1 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute; bottom: -20%; right: -10%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse, rgba(5,150,105,0.05) 0%, transparent 70%);
  animation: meshDrift2 22s ease-in-out infinite alternate;
}
.hero-bg-noise {
  position: absolute; inset: 0;
  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)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.4;
}

@keyframes meshDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 5%) scale(1.15); }
}
@keyframes meshDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, -8%) scale(1.2); }
}

.hero-left { display: flex; flex-direction: column; align-items: flex-start; }

.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill); margin-bottom: 1.5rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: inline-block;
  animation: lineReveal 0.9s var(--ease-out) forwards;
  opacity: 0;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.4s; }

@keyframes lineReveal {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 500px;
  margin-bottom: 2.25rem; line-height: 1.75;
  animation: fadeUp 0.8s var(--ease-out) 0.55s both;
}

.hero-ctas {
  display: flex; gap: 0.875rem; flex-wrap: wrap;
  margin-bottom: 3.5rem; align-items: center;
  animation: fadeUp 0.8s var(--ease-out) 0.65s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
  animation: fadeUp 0.8s var(--ease-out) 0.75s both;
}
.stat { display: flex; flex-direction: column; }
.stat-n {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 400;
  color: var(--ink); letter-spacing: -0.03em; line-height: 1;
}
.stat-n .count { color: var(--teal); }
.stat-l { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* ---- PHONE MOCKUP ---- */
.phone-wrap {
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}

.phone {
  width: 280px;
  background: var(--ink);
  border-radius: 42px;
  padding: 1.25rem 0.875rem 1.5rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-screen { background: #111827; border-radius: 28px; overflow: hidden; }

.chat-bar {
  background: #0d1524; padding: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chat-avi {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}
.chat-name { font-size: 0.78rem; font-weight: 600; color: var(--white); }
.chat-online { font-size: 0.6rem; color: var(--teal-mid); display: flex; align-items: center; gap: 3px; }
.chat-online::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-mid); display: inline-block; }

.messages { padding: 1rem 0.875rem; display: flex; flex-direction: column; gap: 0.875rem; min-height: 290px; }

.msg-in, .msg-out { display: flex; flex-direction: column; }
.msg-out { align-items: flex-end; }

.bubble {
  max-width: 88%; padding: 0.625rem 0.875rem;
  border-radius: 18px; font-size: 0.72rem; line-height: 1.55;
}
.msg-in .bubble  { background: #1e2d3d; color: #d1d9e6; border-bottom-left-radius: 4px; }
.msg-out .bubble { background: var(--teal); color: var(--white); border-bottom-right-radius: 4px; }

.msg-t { font-size: 0.58rem; color: #3d5068; margin-top: 0.2rem; padding: 0 0.25rem; }

.typing {
  display: flex; align-items: center; gap: 4px;
  padding: 0.6rem 0.875rem; background: #1e2d3d;
  border-radius: 18px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing span {
  width: 6px; height: 6px; background: #4d6480; border-radius: 50%;
  animation: typingDot 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8) translateY(0); }
  30%           { opacity: 1;   transform: scale(1)   translateY(-3px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-msg { opacity: 0; animation: fadeInUp 0.4s var(--ease-out) forwards; }

/* =================== LOGO / TRUST BAR =================== */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem;
  overflow: hidden;
}
.trust-label {
  text-align: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 1.75rem;
}
.trust-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 3.5rem; flex-wrap: wrap;
}
.trust-logo {
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0.35; transition: opacity 0.25s;
  filter: grayscale(100%);
}
.trust-logo:hover { opacity: 0.7; filter: none; }
.trust-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink-soft); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.trust-logo-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.trust-strip {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.trust-item { font-size: 0.82rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.trust-item-icon { color: var(--teal); font-size: 0.9rem; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.8rem; }

/* =================== SECTION HEADERS =================== */
.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin-bottom: 3.5rem; line-height: 1.75; }

/* =================== PROBLEM =================== */
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.problem-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #fca5a5, transparent);
  opacity: 0; transition: opacity 0.3s;
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.problem-card:hover::before { opacity: 1; }

.p-icon { font-size: 1.75rem; margin-bottom: 1.25rem; }
.problem-card h3 { margin-bottom: 0.625rem; font-size: 1.05rem; }
.problem-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }

.cost-tag {
  display: inline-block;
  background: #fef2f2; color: #b91c1c;
  font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill); border: 1px solid #fecaca; letter-spacing: 0.02em;
}

/* =================== HOW IT WORKS =================== */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 1rem; margin-bottom: 3rem; }

.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease); position: relative;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.step-n {
  font-family: var(--font-display); font-size: 3rem; font-weight: 400;
  color: var(--teal); opacity: 0.2; margin-bottom: 1rem; line-height: 1;
}
.step h3 { margin-bottom: 0.5rem; }
.step p  { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.step-arrow { color: var(--border-dark); font-size: 1.5rem; flex-shrink: 0; text-align: center; }

.how-cta { text-align: center; padding-top: 1rem; }

/* =================== FLOW DIAGRAM =================== */
.flow-diagram {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  max-width: 600px; margin: 0 auto;
}

.flow-node {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.25rem 1.5rem;
  width: 100%; box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.flow-node:hover { box-shadow: var(--shadow-md); }
.flow-node.accent-node {
  background: var(--ink); border-color: var(--ink);
}
.flow-node.accent-node .fn-text strong { color: var(--white); }
.flow-node.accent-node .fn-text span   { color: rgba(255,255,255,0.6); }

.fn-icon { font-size: 1.6rem; flex-shrink: 0; }
.fn-text { display: flex; flex-direction: column; gap: 0.2rem; }
.fn-text strong { font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.fn-text span   { font-size: 0.78rem; color: var(--muted); }

.flow-line { color: var(--border-dark); font-size: 1.1rem; margin: 0.2rem 0; opacity: 0.7; }

.flow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; margin: 0.2rem 0; }
.split-node { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.split-node.urgent { border-color: #fca5a5; background: #fff8f8; }
.split-node.normal { border-color: #6ee7b7; background: #f0fdf9; }
.sn-head { font-weight: 700; font-size: 0.82rem; margin-bottom: 0.5rem; }
.split-node p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* =================== AI DEMO =================== */
.demo-box {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.demo-top {
  background: #0d1117; padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.demo-dots { display: flex; gap: 7px; }
.dd { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dd.red    { background: #ff5f57; }
.dd.yellow { background: #febc2e; }
.dd.green  { background: #28c840; }
.demo-label { font-size: 0.72rem; color: #4d6480; font-family: 'SF Mono', 'Fira Code', monospace; }

.demo-body { display: grid; grid-template-columns: 1fr 1fr; }
.demo-left  { padding: 1.75rem; border-right: 1px solid var(--border); background: var(--surface); }
.demo-right { padding: 1.75rem; background: var(--white); display: flex; flex-direction: column; gap: 0.875rem; overflow-y: auto; max-height: 420px; }

.call-card {
  text-align: center; padding: 1.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.call-ring { font-size: 2rem; margin-bottom: 0.5rem; }
.call-num  { font-weight: 700; font-size: 1rem; color: var(--ink); }
.call-info { font-size: 0.75rem; color: var(--teal); margin-top: 0.25rem; font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.78rem; color: var(--muted); }
.tl-item strong { color: var(--ink); }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; margin-top: 4px; }
.tl-dot.tl-urgent { background: #ef4444; }
.tl-line { width: 1px; height: 18px; background: var(--border); margin-left: 3.5px; }

.conv-msg { display: flex; flex-direction: column; gap: 0.2rem; }
.conv-who { font-size: 0.65rem; color: var(--muted); font-weight: 600; letter-spacing: 0.03em; }
.conv-bub { font-size: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 14px; line-height: 1.55; }
.ai-msg .conv-bub   { background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.user-msg           { align-items: flex-end; }
.user-msg .conv-bub { background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }

.sms-alert {
  margin-top: 0.5rem; padding: 0.875rem;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--r-md); font-size: 0.72rem; color: #92400e; line-height: 1.55;
}

/* =================== BUILT FOR =================== */
.industry-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.industry-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); transition: all 0.35s var(--ease);
  cursor: default;
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.industry-card.primary {
  border-color: var(--teal);
  background: linear-gradient(145deg, #f0fdf9 0%, var(--white) 100%);
}
.ind-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.industry-card h3 { font-size: 0.95rem; margin-bottom: 0.375rem; }
.industry-card p  { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.ind-badge {
  display: inline-block; margin-top: 0.875rem;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill); letter-spacing: 0.03em;
}

/* =================== SERVICES =================== */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.svc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
  opacity: 0; transition: opacity 0.3s;
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.svc-card:hover::after { opacity: 1; }
.svc-card.featured {
  border-color: var(--teal);
  background: linear-gradient(145deg, #f0fdf9 0%, var(--white) 100%);
}
.svc-card.featured::after { opacity: 1; }

.svc-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.svc-tag  { font-size: 0.68rem; font-weight: 700; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.svc-card h3 { margin-bottom: 0.5rem; }
.svc-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* =================== ROI CALCULATOR =================== */
.roi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.roi-inputs, .roi-results {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 3rem;
  box-shadow: var(--shadow-md);
}

.roi-group { margin-bottom: 2rem; }
.roi-group label {
  display: block; font-size: 0.78rem; color: var(--muted);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.roi-group input[type=range] {
  width: 100%; -webkit-appearance: none; height: 3px;
  background: var(--border); border-radius: 2px;
  outline: none; cursor: pointer; margin-bottom: 0.625rem;
}
.roi-group input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--ink); cursor: pointer;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--ink), var(--shadow-sm);
  transition: all 0.2s var(--ease-spring);
}
.roi-group input[type=range]::-webkit-slider-thumb:hover {
  background: var(--teal); box-shadow: 0 0 0 2px var(--teal), var(--shadow-teal);
  transform: scale(1.1);
}
.roi-val { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-weight: 400; }

.roi-results { display: flex; flex-direction: column; }
.roi-r-item { margin-bottom: 1rem; }
.roi-r-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; font-weight: 500; letter-spacing: 0.02em; }
.roi-r-val { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.roi-r-val.highlight { color: var(--teal); }
.roi-r-sub { font-size: 0.75rem; color: var(--muted-light); margin-top: 0.2rem; }
.roi-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.roi-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.75rem; }

/* =================== PRICING =================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }

.price-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2.5rem;
  box-shadow: var(--shadow-sm); position: relative;
  transition: all 0.35s var(--ease);
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.price-card.popular {
  border-color: var(--ink);
  background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-lg);
}
.price-card.popular:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: var(--r-pill);
  white-space: nowrap; letter-spacing: 0.04em;
}
.custom-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--off-white); color: var(--ink); border: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: var(--r-pill);
  white-space: nowrap; letter-spacing: 0.04em;
}

.pc-tier {
  font-size: 0.72rem; color: var(--muted); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.625rem;
}
.price-card.popular .pc-tier { color: rgba(255,255,255,0.55); }

.pc-price { display: flex; align-items: baseline; gap: 0.125rem; margin-bottom: 0.25rem; }
.pc-dollar { font-family: var(--font-display); font-size: 1.4rem; color: var(--muted); }
.pc-num    { font-family: var(--font-display); font-size: 3.5rem; font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.pc-per    { font-size: 0.9rem; color: var(--muted); margin-left: 0.25rem; }
.price-card.popular .pc-dollar { color: rgba(255,255,255,0.6); }
.price-card.popular .pc-num    { color: var(--white); }
.price-card.popular .pc-per    { color: rgba(255,255,255,0.6); }

.pc-num-custom { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--ink); }

.pc-setup { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.75rem; }
.pc-setup strong { color: var(--teal); }
.price-card.popular .pc-setup { color: rgba(255,255,255,0.5); }
.price-card.popular .pc-setup strong { color: #6ee7b7; }

.pc-div { height: 1px; background: var(--border); margin: 1.5rem 0; }
.price-card.popular .pc-div { background: rgba(255,255,255,0.1); }

.pc-feats { list-style: none; margin-bottom: 2rem; }
.pc-feats li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--muted); padding: 0.375rem 0; line-height: 1.5;
}
.price-card.popular .pc-feats li { color: rgba(255,255,255,0.75); }
.ck { color: var(--teal); font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.price-card.popular .ck { color: #6ee7b7; }

.pricing-note {
  text-align: center; margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted);
  padding: 1.25rem; background: var(--surface); border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.pricing-note strong { color: var(--teal); }

/* =================== CASE STUDY =================== */
.case-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  background: var(--ink); border-radius: var(--r-xl); padding: 3.5rem;
  align-items: center; box-shadow: var(--shadow-xl);
  position: relative; overflow: hidden;
}
.case-card::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(5,150,105,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.case-quote-mark {
  font-family: var(--font-display); font-size: 6rem;
  color: var(--teal); opacity: 0.3; line-height: 0.8; margin-bottom: 1rem;
}
blockquote {
  font-family: var(--font-display); font-size: 1.2rem; font-style: italic;
  color: rgba(255,255,255,0.9); line-height: 1.75; margin-bottom: 1.75rem;
}
.case-attr { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.case-attr strong { color: rgba(255,255,255,0.85); display: block; margin-bottom: 0.2rem; }

.case-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; z-index: 1; }
.case-stat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md); padding: 1.5rem; text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.case-stat:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.cs-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--teal-mid); letter-spacing: -0.03em; }
.cs-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 0.375rem; line-height: 1.45; }

/* =================== FAQ =================== */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.375rem 0; font-family: var(--font-body);
  font-size: 0.975rem; font-weight: 600; color: var(--ink); text-align: left;
  transition: color 0.2s; gap: 1rem;
}
.faq-q:hover { color: var(--teal); }
.faq-ic {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted); transition: all 0.3s var(--ease-spring);
  flex-shrink: 0; line-height: 1;
}
.faq-item.open .faq-ic {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 0.9rem; color: var(--muted); line-height: 1.8;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 1.5rem; }

/* =================== CTA SECTION =================== */
.section-cta {
  background: var(--ink); padding: 8rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.section-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(5,150,105,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 30%, rgba(5,150,105,0.07) 0%, transparent 60%);
}
/* Grid overlay */
.section-cta::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-inner { position: relative; z-index: 1; }

.cta-tag {
  display: inline-block;
  background: rgba(16,185,129,0.12); color: #6ee7b7;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: var(--r-pill); margin-bottom: 1.75rem;
  border: 1px solid rgba(16,185,129,0.2);
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400; color: var(--white); margin-bottom: 1.25rem;
  line-height: 1.08; letter-spacing: -0.03em;
}
.cta-title em { color: var(--teal-mid); }
.cta-sub { font-size: 1.1rem; color: rgba(255,255,255,0.5); max-width: 480px; margin: 0 auto 2.75rem; line-height: 1.75; }

.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-fine { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-top: 1.75rem; }

/* =================== FOOTER =================== */
footer {
  background: #070b12; padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-wrap {
  max-width: 1120px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 36px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 1; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.footer-copy a { color: rgba(255,255,255,0.3); }
.footer-copy a:hover { color: rgba(255,255,255,0.6); }

/* =================== SCROLL ANIMATIONS =================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 6rem; min-height: auto; padding-bottom: 4rem; }
  .phone-wrap { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-left { border-right: none; border-bottom: 1px solid var(--border); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .case-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .roi-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .problem-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .flow-split { grid-template-columns: 1fr; }
  .case-right { grid-template-columns: 1fr 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  #sticky-cta { padding: 0.75rem 1.25rem; gap: 0.875rem; }
  .sticky-cta-text { display: none; }
  .trust-logos { gap: 2rem; }
}

@media (max-width: 480px) {
  .problem-grid, .services-grid, .industry-grid { grid-template-columns: 1fr; }
  .case-right { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.25rem; }
  .stat-div { display: none; }
  .trust-strip { flex-direction: column; gap: 0.875rem; }
  .trust-logos { gap: 1.5rem; }
  section { padding: 4rem 0; }
}
