/* ================================================
   Thornwood AI — Dark Theme Design System
   Adapted from Blueprint Motion aesthetic
   ================================================ */

/* --- Tokens --- */
:root {
  --color-dark: #0a0a0f;
  --color-darker: #06060a;
  --color-surface: #12121a;
  --color-surface-elevated: #1a1a24;
  --color-border: rgba(255,255,255,0.08);
  --color-text: #f0f0f5;
  --color-text-muted: #9494ac;
  --color-accent: #4ecdc4;
  --color-accent-glow: rgba(78, 205, 196, 0.3);
  --color-accent-secondary: #ff6b6b;
  --color-success: #22c55e;
  --color-success-bg: rgba(34,197,94,0.08);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 100px;
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --transition: 0.3s ease;
  --max-width: 1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-tap-highlight-color: rgba(78, 205, 196, 0.15);
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-text); }
ul, ol { list-style: none; }

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================================
   Navigation
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--color-darker), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(6,6,10,0.92);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo:hover { color: var(--color-text); text-decoration: none; }

.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-dark);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); text-decoration: none; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ================================================
   Focus Styles
   ================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--color-accent-glow);
  text-decoration: none;
  color: var(--color-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface);
  border-color: rgba(255,255,255,0.15);
  text-decoration: none;
  color: var(--color-text);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px; height: 18px;
}

/* ================================================
   Hero
   ================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 65%);
  opacity: 0.3;
  animation: pulse 8s ease-in-out infinite;
}

.hero-glow::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 50%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,107,107,0.1), transparent 60%);
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge { animation: fadeInUp 0.8s ease-out; }
.hero h1 { animation: fadeInUp 0.8s ease-out 0.1s both; }
.hero-sub { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-buttons { animation: fadeInUp 0.8s ease-out 0.3s both; }

/* --- Hero Workflow Visual --- */
.hero-visual {
  flex: 0 0 auto;
  width: 320px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-workflow {
  width: 100%;
  height: auto;
  display: block;
}

.hw-agent-bg {
  animation: agentPulse 4s ease-in-out infinite;
}

@keyframes agentPulse {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.14; }
}

/* ================================================
   Section Generic
   ================================================ */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-darker {
  background: var(--color-darker);
}

.section-darker::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ================================================
   Feature Cards Grid
   ================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.4);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--color-surface-elevated), var(--color-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  font-size: 1.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover .card-icon {
  border-color: rgba(78,205,196,0.25);
  box-shadow: 0 0 16px rgba(78,205,196,0.1);
}

.card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease;
}

.card:hover .card-icon svg {
  transform: scale(1.1);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

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

/* ================================================
   Stats
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.stat-source {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.footer-brand .nav-logo-icon {
  width: 28px; height: 28px;
  font-size: 0.8rem;
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer a:hover { color: var(--color-accent); text-decoration: none; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-contact a {
  font-size: 0.92rem;
}

.footer-contact .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

/* ================================================
   Page Hero (inner pages)
   ================================================ */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* ================================================
   Services Page
   ================================================ */
.service-block {
  padding: 5rem 0;
  position: relative;
}

.service-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.service-block:last-of-type::after { display: none; }

.service-block:nth-child(even) {
  background: var(--color-darker);
}

.service-block-inner {
  max-width: 760px;
  margin: 0 auto;
}

.service-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(78,205,196,0.08);
  border: 1px solid rgba(78,205,196,0.15);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.service-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.service-block .problem {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.service-block .problem strong {
  color: var(--color-text);
}

/* How It Works Steps */
.how-it-works h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}
.step:hover {
  border-color: rgba(78,205,196,0.2);
}

.step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.step p strong {
  color: var(--color-text);
}

/* ROI Box */
.roi-box {
  background: var(--color-success-bg);
  border: 1px solid rgba(34,197,94,0.2);
  border-left: 3px solid var(--color-success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.roi-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-success);
  margin-bottom: 0.5rem;
}

.roi-box p {
  font-size: 0.95rem;
  color: rgba(34,197,94,0.85);
  line-height: 1.7;
}

/* ================================================
   Case Studies
   ================================================ */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.4);
}

.case-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at bottom right, var(--color-accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.case-card:hover::after { opacity: 0.3; }

.industry-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.case-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.case-section {
  margin-bottom: 1rem;
}

.case-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.case-section p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.case-result {
  background: var(--color-success-bg);
  border-left: 3px solid var(--color-success);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}

.case-result h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-success);
  margin-bottom: 0.35rem;
}

.case-result p {
  font-size: 0.92rem;
  color: rgba(34,197,94,0.85);
  line-height: 1.6;
}

.case-card .cta-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}
.case-card .cta-link:hover {
  gap: 0.6rem;
  text-decoration: none;
}

/* ================================================
   Service Flow Diagrams
   ================================================ */
.service-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.sf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.sf-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.sf-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-node span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  max-width: 90px;
}

.sf-node-agent .sf-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  border-color: rgba(78,205,196,0.3);
  background: rgba(78,205,196,0.06);
  box-shadow: 0 0 20px rgba(78,205,196,0.1);
}

.sf-node-agent .sf-icon svg {
  stroke: var(--color-accent);
  width: 22px;
  height: 22px;
}

.sf-node-agent span {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.78rem;
}

.sf-node-output .sf-icon {
  border-color: rgba(78,205,196,0.18);
  background: rgba(78,205,196,0.03);
}

.sf-node-output .sf-icon svg {
  stroke: var(--color-accent);
  opacity: 0.75;
}

.sf-node-output span {
  color: rgba(78,205,196,0.7);
}

.sf-arrow {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 0.5rem;
  position: relative;
}

.sf-arrow svg {
  width: 48px;
  height: 10px;
  display: block;
}

.sf-arrow-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  animation: sfDotFlow 2.2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--color-accent-glow);
}

.sf-arrow:nth-of-type(2) .sf-arrow-dot {
  animation-delay: 0.6s;
}

@keyframes sfDotFlow {
  0% { left: 12px; opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { left: calc(100% - 12px); opacity: 0; }
}

/* ================================================
   Process Section (Services)
   ================================================ */
.process-intro {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.process-intro-text {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.process-intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.process-intro-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.process-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
}

.process-card-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.25);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.process-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ================================================
   ROI Highlight (Case Studies)
   ================================================ */
.roi-highlight {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(78, 205, 196, 0.06);
  border: 1px solid rgba(78, 205, 196, 0.18);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.roi-highlight-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-accent);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.roi-highlight-label {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.roi-highlight-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* ================================================
   CTA Alt (secondary contact line)
   ================================================ */
.cta-alt {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  position: relative;
}

.cta-alt a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ================================================
   Contact Page
   ================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-info h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.contact-info > p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 48px; height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px; height: 22px;
  stroke: var(--color-accent);
}

.contact-item-text span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.contact-item-text a,
.contact-item-text p {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}

/* --- Contact Form --- */
.contact-message {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(148,148,172,0.45);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(78,205,196,0.4);
  box-shadow: 0 0 0 3px rgba(78,205,196,0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-note {
  text-align: center;
  color: var(--color-success);
  font-weight: 600;
  font-size: 1rem;
  padding: 2rem 0;
  background: var(--color-success-bg);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
}

.calendly-embed-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendly-inline-widget {
  min-width: 320px;
  min-height: 650px;
}

/* ================================================
   FAQ Page
   ================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 1.5rem;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(78,205,196,0.2);
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  padding: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.faq-answer p {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer strong { color: var(--color-text); }

.faq-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.faq-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.97rem;
  line-height: 1.65;
}

.faq-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem;
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

.faq-answer .faq-bullets:last-child { margin-bottom: 0; }

/* ================================================
   Proof Block (home — near primary CTA)
   ================================================ */
.proof-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.proof-cred {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.proof-cred strong { color: var(--color-accent); }

.proof-framing {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.proof-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.25rem;
}

.proof-stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.proof-stat-label {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.proof-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-inner { gap: 2.5rem; }
  .hero-visual { width: 260px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(6,6,10,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; font-size: 1.05rem; color: var(--color-text); }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 0.25rem; }
  .hero { padding: 6rem 1.5rem 2rem; min-height: auto; padding-bottom: 4rem; }
  .hero-inner { flex-direction: column; gap: 2rem; }
  .hero-visual { width: 100%; max-width: 260px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .sf-icon { width: 40px; height: 40px; border-radius: 10px; }
  .sf-node-agent .sf-icon { width: 46px; height: 46px; }
  .sf-arrow { padding: 0 0.3rem; }
  .sf-arrow svg { width: 36px; }
  .sf-node span { font-size: 0.68rem; max-width: 68px; }
  .section { padding: 4.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 1.25rem; }
  .proof-stats { grid-template-columns: 1fr; gap: 1rem; }
  .faq-item summary { font-size: 1.1rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .service-block { padding: 3.5rem 0; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .contact-layout { padding: 2.5rem 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { padding: 1.25rem; }
  .roi-highlight { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer-contact { align-items: center; }
}

@media (max-width: 480px) {
  .nav { padding: 0.75rem 1rem; }
  .hero { padding: 5.5rem 1rem 3rem; }
  .hero-visual { max-width: 220px; }
  .container { padding: 0 1.25rem; }
  .btn { min-height: 48px; } /* iOS/Android touch target minimum */
  .nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
  .contact-item { padding: 0.25rem 0; }
  .cta-section { padding: 4rem 0; }
  .section-header h2 { font-size: 1.6rem; }
  .roi-highlight-number { font-size: 2rem; }
  .service-flow { padding: 0.75rem 0; margin-bottom: 1rem; }
  .sf-arrow { padding: 0 0.15rem; }
  .sf-arrow svg { width: 22px; }
  .sf-icon { width: 36px; height: 36px; border-radius: 9px; }
  .sf-node-agent .sf-icon { width: 40px; height: 40px; }
  .sf-icon svg { width: 16px; height: 16px; }
  .sf-node-agent .sf-icon svg { width: 18px; height: 18px; }
  .sf-node span { font-size: 0.6rem; max-width: 56px; }
}

/* ================================================
   Reduced Motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in { opacity: 1; transform: none; }
  .hero-glow::before, .hero-glow::after { animation: none; opacity: 0.2; }
  .hw-agent-bg { animation: none; opacity: 0.06; }
  .sf-arrow-dot { display: none; }
  .hero-workflow circle[r="3"],
  .hero-workflow circle[r="2.5"] { display: none; }
}
