/* ==========================================================================
   AutoFlow — warm glass theme
   --------------------------------------------------------------------------
   Deep espresso canvas, drifting amber glow orbs, frosted glass panels and
   glowing ember accents. Typography: Fraunces (display) + Instrument Sans
   (UI) + JetBrains Mono (technical labels / code).
   ========================================================================== */

:root {
  /* canvas */
  --af-bg: #17100a;
  --af-bg-deep: #100b06;

  /* type */
  --af-text: #f7ecda;
  --af-text-soft: #cbb9a0;
  --af-text-faint: #93846f;

  /* ember accents */
  --af-amber: #ffb45e;
  --af-ember: #ff7847;
  --af-glow: rgba(255, 158, 74, 0.45);
  --af-glow-soft: rgba(255, 158, 74, 0.18);
  --af-green: #8fd8a0;

  /* glass */
  --af-glass: rgba(255, 226, 190, 0.045);
  --af-glass-strong: rgba(255, 226, 190, 0.08);
  --af-line: rgba(255, 214, 170, 0.14);
  --af-line-strong: rgba(255, 214, 170, 0.28);

  --af-radius: 16px;
  --af-font-display: 'Fraunces', Georgia, serif;
  --af-font-ui: 'Instrument Sans', system-ui, sans-serif;
  --af-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* theme hooks for shared Vue islands */
  --flow-node-bg: rgba(255, 235, 210, 0.05);
  --flow-node-border: rgba(255, 220, 180, 0.14);
  --flow-node-text: rgba(255, 240, 220, 0.72);
  --flow-active: var(--af-amber);
  --flow-active-glow: var(--af-glow);
  --flow-done: var(--af-green);
  --flow-stat-num: #fff4e4;
  --flow-stat-font: var(--af-font-display);
  --flow-muted: rgba(255, 235, 210, 0.42);

  --lead-accent: var(--af-amber);
  --lead-text: var(--af-text);
  --lead-label: rgba(255, 235, 210, 0.55);
  --lead-muted: var(--af-text-faint);
  --lead-input-bg: rgba(255, 235, 210, 0.05);
  --lead-input-bg-focus: rgba(255, 235, 210, 0.09);
  --lead-input-border: var(--af-line);
  --lead-placeholder: rgba(255, 235, 210, 0.28);
  --lead-btn-bg: linear-gradient(120deg, #ffc57e, #ff8c50);
  --lead-btn-text: #221405;
  --lead-success: var(--af-green);
  --lead-error: #ff9d8a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.af {
  font-family: var(--af-font-ui);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(255, 140, 60, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(255, 178, 96, 0.07), transparent 55%),
    var(--af-bg);
  color: var(--af-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 158, 74, 0.35); color: #fff6e8; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--af-amber);
  color: #221405;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Ambient backdrop — drifting glow orbs, technical grid, film grain
   ========================================================================== */

.af-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.af-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.af-orb--1 {
  width: 46vw; height: 46vw;
  top: -18vw; right: -12vw;
  background: radial-gradient(circle, rgba(255, 150, 64, 0.30), transparent 65%);
  animation: af-drift-1 26s ease-in-out infinite alternate;
}

.af-orb--2 {
  width: 34vw; height: 34vw;
  bottom: 4vh; left: -14vw;
  background: radial-gradient(circle, rgba(255, 190, 110, 0.20), transparent 65%);
  animation: af-drift-2 32s ease-in-out infinite alternate;
}

.af-orb--3 {
  width: 22vw; height: 22vw;
  top: 55vh; right: 18vw;
  background: radial-gradient(circle, rgba(255, 110, 70, 0.16), transparent 65%);
  animation: af-drift-3 22s ease-in-out infinite alternate;
}

@keyframes af-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, 8vh, 0) scale(1.12); }
}
@keyframes af-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vw, -6vh, 0) scale(0.94); }
}
@keyframes af-drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4vw, -8vh, 0) scale(1.18); }
}

.af-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 214, 170, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 170, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
}

.af-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.af-main {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */

.af-glass-panel {
  background: var(--af-glass);
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

.af-icon { width: 1em; height: 1em; flex-shrink: 0; }

.af-kicker,
.af-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--af-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--af-amber);
  margin-bottom: 1.4rem;
  text-shadow: 0 0 18px var(--af-glow-soft);
}

.af-kicker .af-icon { font-size: 1.05rem; }

.af-kicker::before,
.af-label::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--af-amber), transparent);
  box-shadow: 0 0 8px var(--af-glow);
}

.af-label { color: var(--af-text-faint); text-shadow: none; margin-bottom: 1rem; }
.af-label::before { background: var(--af-text-faint); box-shadow: none; width: 16px; height: 1px; }

.af-heading {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.af-heading--sm { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }

.af-desc {
  color: var(--af-text-soft);
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Buttons */
.af-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, filter 0.25s ease;
}

.af-btn--primary {
  background: linear-gradient(120deg, #ffc57e, #ff8c50);
  color: #221405;
  box-shadow: 0 0 26px var(--af-glow-soft), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.af-btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 44px var(--af-glow), 0 10px 28px rgba(0, 0, 0, 0.4);
}

.af-btn--ghost {
  background: var(--af-glass);
  color: var(--af-text);
  border: 1px solid var(--af-line);
  backdrop-filter: blur(10px);
}
.af-btn--ghost:hover {
  border-color: var(--af-line-strong);
  background: var(--af-glass-strong);
  box-shadow: 0 0 22px var(--af-glow-soft);
}

.af-btn--nav {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  background: linear-gradient(120deg, #ffc57e, #ff8c50);
  color: #221405 !important;
  border-radius: 8px;
  box-shadow: 0 0 18px var(--af-glow-soft);
}
.af-btn--nav:hover { box-shadow: 0 0 32px var(--af-glow); }

.af-btn--block {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.af-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.af-nav.is-scrolled {
  background: rgba(23, 16, 10, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--af-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.af-nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.af-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--af-text);
}

.af-logo__pulse {
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--af-amber);
  box-shadow: 0 0 12px var(--af-glow);
  animation: af-pulse 2.4s ease-in-out infinite;
}

@keyframes af-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.72); }
}

.af-logo__word {
  font-family: var(--af-font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.af-logo__dot {
  color: var(--af-ember);
  font-size: 1.9rem;
  line-height: 0;
  text-shadow: 0 0 14px var(--af-glow);
}

.af-nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.af-nav__links a:not(.af-btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--af-text-soft);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.af-nav__links a:not(.af-btn):hover {
  color: var(--af-amber);
  text-shadow: 0 0 16px var(--af-glow);
}

.af-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: var(--af-glass);
  border: 1px solid var(--af-line);
  border-radius: 10px;
  cursor: pointer;
}

.af-nav__toggle span {
  display: block;
  height: 2px;
  background: var(--af-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.af-nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.af-nav__toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.af-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  min-height: min(88vh, 860px);
}

.af-hero__title {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 4.6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
}

.af-hero__title em {
  font-style: italic;
  font-weight: 500;
}

.af-glow-text {
  background: linear-gradient(115deg, #ffd9a0 10%, var(--af-amber) 40%, var(--af-ember) 70%, #ffd9a0 95%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px var(--af-glow-soft));
  animation: af-sheen 6s linear infinite;
}

@keyframes af-sheen {
  from { background-position: 0% center; }
  to   { background-position: -220% center; }
}

.af-hero__lead {
  color: var(--af-text);
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.af-hero__sub {
  color: var(--af-text-soft);
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 2.6rem;
}

.af-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.af-hero__right {
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  animation: af-fade-up 0.9s 0.35s ease both;
}

/* soft ember bloom inside the glass panel */
.af-hero__right::before {
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  top: -25%;
  right: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 64, 0.16), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.af-flow-fallback { font-size: 0.85rem; color: var(--af-text-soft); line-height: 1.8; }
.af-flow-fallback__title {
  font-family: var(--af-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--af-text-faint);
  margin-bottom: 1rem;
}

/* hero entrance stagger */
@keyframes af-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.af-stagger-1 { animation: af-fade-up 0.7s 0.05s ease both; }
.af-stagger-2 { animation: af-fade-up 0.7s 0.15s ease both; }
.af-stagger-3 { animation: af-fade-up 0.7s 0.25s ease both; }
.af-stagger-4 { animation: af-fade-up 0.7s 0.35s ease both; }

/* ==========================================================================
   Sections
   ========================================================================== */

.af-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
  position: relative;
}

.af-section + .af-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--af-line-strong), transparent);
}

.af-section--deep {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 2, 0.55) 12%, rgba(8, 5, 2, 0.55) 88%, transparent);
}

.af-section--deep > * {
  max-width: 1190px;
  margin-left: auto;
  margin-right: auto;
}

.af-section__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   Scroll reveal ([data-reveal] → .is-revealed, gated on html.js-reveal)
   ========================================================================== */

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger cards inside grids */
html.js-reveal .af-services [data-reveal]:nth-child(2),
html.js-reveal .af-capabilities [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
html.js-reveal .af-services [data-reveal]:nth-child(3),
html.js-reveal .af-capabilities [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
html.js-reveal .af-services [data-reveal]:nth-child(4),
html.js-reveal .af-capabilities [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
html.js-reveal .af-packages [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
html.js-reveal .af-packages [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ==========================================================================
   Capabilities (4 areas)
   ========================================================================== */

.af-capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.af-capabilities .af-card h3 {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

.af-capabilities .af-card p {
  font-size: 0.85rem;
  color: var(--af-text-soft);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   Pillars
   ========================================================================== */

.af-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.af-pillar {
  padding: 1.8rem 1.6rem;
}

.af-pillar h3 {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.af-pillar p {
  font-size: 0.85rem;
  color: var(--af-text-soft);
  line-height: 1.65;
}

.af-workflow--split {
  margin-top: 0;
  align-items: start;
}

/* ==========================================================================
   Packages
   ========================================================================== */

.af-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1.6rem;
}

.af-package {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.af-package:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 94, 0.35);
  box-shadow: 0 0 32px var(--af-glow-soft), 0 20px 44px rgba(0, 0, 0, 0.35);
}

.af-package--featured {
  border-color: rgba(255, 180, 94, 0.45);
  background: var(--af-glass-strong);
  box-shadow: 0 0 28px var(--af-glow-soft);
}

.af-package__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--af-font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  color: var(--af-amber);
  background: rgba(255, 180, 94, 0.12);
  border: 1px solid rgba(255, 180, 94, 0.28);
}

.af-package__name {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
  padding-right: 4rem;
}

.af-package__subtitle {
  font-size: 0.88rem;
  color: var(--af-text-soft);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.af-package__ideal {
  font-size: 0.78rem;
  color: var(--af-text-faint);
  line-height: 1.5;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--af-line);
}

.af-package__features {
  flex: 1;
  margin-bottom: 1.4rem;
}

.af-package__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 214, 170, 0.06);
  font-size: 0.8rem;
  line-height: 1.45;
}

.af-package__row:last-child { border-bottom: none; }

.af-package__row dt {
  font-family: var(--af-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af-text-faint);
}

.af-package__row dd {
  color: var(--af-text-soft);
}

.af-blueprint {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.8rem 2rem;
  margin-top: 0.5rem;
}

.af-blueprint__icon {
  font-size: 1.6rem;
  color: var(--af-amber);
  text-shadow: 0 0 16px var(--af-glow);
  flex-shrink: 0;
}

.af-blueprint__title {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.af-blueprint__text {
  font-size: 0.88rem;
  color: var(--af-text-soft);
  line-height: 1.6;
  max-width: 52rem;
}

.af-blueprint .af-btn { margin-left: auto; flex-shrink: 0; }

/* ==========================================================================
   Services (legacy grid alias — kept for scroll stagger)
   ========================================================================== */

.af-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.af-card {
  position: relative;
  padding: 2.2rem 1.8rem;
  border-radius: var(--af-radius);
  background: var(--af-glass);
  border: 1px solid var(--af-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    background 0.3s ease;
}

/* glow seam that lights up on hover */
.af-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at 50% -20%, var(--af-glow-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.af-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 94, 0.4);
  background: var(--af-glass-strong);
  box-shadow: 0 0 38px var(--af-glow-soft), 0 22px 44px rgba(0, 0, 0, 0.4);
}

.af-card:hover::before { opacity: 1; }

.af-card__num {
  font-family: var(--af-font-mono);
  font-size: 0.78rem;
  color: var(--af-text-faint);
  margin-bottom: 1.8rem;
}

.af-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.3rem;
  color: var(--af-amber);
  background: rgba(255, 180, 94, 0.08);
  border: 1px solid rgba(255, 180, 94, 0.22);
  box-shadow: inset 0 0 16px rgba(255, 158, 74, 0.08);
  transition: box-shadow 0.3s ease, color 0.3s ease;
}

.af-card__icon svg { width: 22px; height: 22px; }

.af-card:hover .af-card__icon {
  color: #ffd9a0;
  box-shadow: inset 0 0 16px rgba(255, 158, 74, 0.14), 0 0 26px var(--af-glow-soft);
}

.af-card h3 {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

.af-card p {
  font-size: 0.85rem;
  color: var(--af-text-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.af-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.af-tag {
  font-family: var(--af-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 5px;
  color: var(--af-amber);
  background: rgba(255, 180, 94, 0.07);
  border: 1px solid rgba(255, 180, 94, 0.2);
}

/* ==========================================================================
   Workflow / Technologie
   ========================================================================== */

.af-workflow {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4.5rem;
  align-items: start;
  margin-top: 3rem;
}

.af-checks {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.af-checks li {
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.92rem;
  color: var(--af-text-soft);
  line-height: 1.55;
}

.af-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb45e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E")
    center / 11px no-repeat,
    rgba(255, 180, 94, 0.1);
  border: 1px solid rgba(255, 180, 94, 0.3);
  box-shadow: 0 0 12px var(--af-glow-soft);
}

.af-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.af-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.38rem 0.95rem;
  border-radius: 40px;
  color: var(--af-text-soft);
  background: var(--af-glass);
  border: 1px solid var(--af-line);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.af-pill:hover {
  color: var(--af-amber);
  border-color: rgba(255, 180, 94, 0.4);
  box-shadow: 0 0 18px var(--af-glow-soft);
}

/* Code panel */
.af-code { overflow: hidden; }

.af-code__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: rgba(255, 235, 210, 0.03);
  border-bottom: 1px solid var(--af-line);
}

.af-code__dot { width: 10px; height: 10px; border-radius: 50%; }

.af-code__label {
  margin-left: auto;
  font-family: var(--af-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--af-text-faint);
}

.af-code__body {
  padding: 1.5rem;
  font-family: var(--af-font-mono);
  font-size: 0.76rem;
  line-height: 1.9;
  color: #b7a68e;
  overflow-x: auto;
  white-space: pre;
}

.af-code__body .c-comment { color: rgba(255, 235, 210, 0.28); }
.af-code__body .c-blue   { color: #7ec8e3; text-shadow: 0 0 12px rgba(126, 200, 227, 0.35); }
.af-code__body .c-green  { color: #8fd8a0; text-shadow: 0 0 12px rgba(143, 216, 160, 0.3); }
.af-code__body .c-orange { color: var(--af-amber); text-shadow: 0 0 12px var(--af-glow-soft); }

.af-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--af-amber);
  box-shadow: 0 0 10px var(--af-glow);
  animation: af-caret 1.1s steps(1) infinite;
}

@keyframes af-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Example process steps (replaces code panel on landing page) */
.af-steps {
  padding: 2rem 2.2rem;
}

.af-steps__title {
  font-family: var(--af-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af-text-faint);
  margin-bottom: 1.6rem;
}

.af-steps__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.af-steps__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.af-steps__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--af-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--af-amber);
  background: rgba(255, 180, 94, 0.1);
  border: 1px solid rgba(255, 180, 94, 0.28);
  box-shadow: 0 0 14px var(--af-glow-soft);
}

.af-steps__list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.af-steps__list span {
  font-size: 0.82rem;
  color: var(--af-text-soft);
  line-height: 1.55;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.af-contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.af-contact__aside .af-desc { margin-bottom: 2.2rem; }

.af-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.af-trust__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--af-amber);
  background: rgba(255, 180, 94, 0.08);
  border: 1px solid rgba(255, 180, 94, 0.22);
  box-shadow: 0 0 16px var(--af-glow-soft);
}

.af-trust__icon svg { width: 18px; height: 18px; }

.af-trust__text strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.af-trust__text span {
  font-size: 0.8rem;
  color: var(--af-text-soft);
  line-height: 1.55;
}

.af-contact__form { padding: 2.4rem; }

/* Simple general contact (below project inquiry) */
.af-section--kontakt {
  padding-top: 3rem;
}

.af-section--kontakt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--af-line-strong), transparent);
}

.af-kontakt-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.af-kontakt-simple__left {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.af-kontakt-simple__intro .af-desc {
  margin-bottom: 1.2rem;
}

.af-kontakt-simple__direct {
  font-size: 0.88rem;
  color: var(--af-text-soft);
}

.af-kontakt-simple__direct a {
  color: var(--af-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 94, 0.3);
}

.af-kontakt-simple__direct a:hover {
  text-shadow: 0 0 12px var(--af-glow-soft);
}

.af-kontakt-simple__form {
  padding: 2rem;
}

.af-faq__title {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--af-text);
  margin-bottom: 1rem;
}

.af-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.af-faq__item {
  border: 1px solid var(--af-line);
  border-radius: 12px;
  background: rgba(255, 214, 170, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.af-faq__item[open] {
  border-color: var(--af-line-strong);
  background: rgba(255, 214, 170, 0.06);
}

.af-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--af-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.af-faq__question::-webkit-details-marker { display: none; }

.af-faq__question::after {
  content: '+';
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  color: var(--af-amber);
  background: rgba(255, 180, 94, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.af-faq__item[open] .af-faq__question::after {
  content: '−';
  transform: rotate(180deg);
  background: rgba(255, 180, 94, 0.18);
}

.af-faq__question:hover::after {
  background: rgba(255, 180, 94, 0.2);
}

.af-faq__answer {
  margin: 0;
  padding: 0 1.1rem 1.05rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--af-text-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.af-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--af-line);
  background: rgba(10, 7, 4, 0.6);
  backdrop-filter: blur(14px);
}

.af-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--af-text-faint);
}

.af-logo--footer .af-logo__word { font-size: 1.1rem; }

.af-footer__links { display: flex; flex-wrap: wrap; gap: 1.8rem; }

.af-footer__links a {
  color: var(--af-text-faint);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.af-footer__links a:hover {
  color: var(--af-amber);
  text-shadow: 0 0 14px var(--af-glow);
}

.af-footer__copy a {
  color: var(--af-text-faint);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 94, 0.25);
  transition: color 0.2s ease;
}

.af-footer__copy a:hover {
  color: var(--af-amber);
}

/* ==========================================================================
   Generic / legal pages (templates from tenant base)
   ========================================================================== */

.page-content,
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
}

.page-content h1,
.legal-page h1 {
  font-family: var(--af-font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.page-content .subtitle {
  color: var(--af-text-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.prose {
  color: var(--af-text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.prose h2, .prose h3 {
  font-family: var(--af-font-display);
  font-weight: 500;
  color: var(--af-text);
  margin: 2rem 0 0.7rem;
}

.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.3rem; }

.prose a {
  color: var(--af-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 94, 0.35);
}
.prose a:hover { text-shadow: 0 0 14px var(--af-glow); }

.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--af-text-faint);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .af-hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 3.5rem; min-height: auto; }
  .af-section__intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .af-services { grid-template-columns: 1fr 1fr; }
  .af-pillars { grid-template-columns: 1fr; }
  .af-packages { grid-template-columns: 1fr; }
  .af-workflow { grid-template-columns: 1fr; gap: 2.5rem; }
  .af-contact { grid-template-columns: 1fr; gap: 3rem; }
  .af-kontakt-simple { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .af-nav__inner { padding: 1rem 1.4rem; }
  .af-nav__toggle { display: flex; }

  .af-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 1.4rem 1.4rem;
    background: rgba(20, 13, 7, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--af-line);
    display: none;
  }

  .af-nav__links.active { display: flex; }

  .af-nav__links a:not(.af-btn) { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 214, 170, 0.07); }
  .af-nav__links .af-btn { margin-top: 1rem; justify-content: center; }

  .af-section { padding: 3.5rem 1.4rem; }
  .af-section + .af-section::before { left: 1.4rem; right: 1.4rem; }
  .af-hero { padding: 3rem 1.4rem; }
  .af-hero__right { padding: 1.8rem; }
  .af-services { grid-template-columns: 1fr; }
  .af-blueprint { flex-direction: column; align-items: flex-start; }
  .af-blueprint .af-btn { margin-left: 0; width: 100%; justify-content: center; }
  .af-section--kontakt::before { left: 1.4rem; right: 1.4rem; }
  .af-kontakt-simple__form { padding: 1.6rem; }
  .page-content, .legal-page { padding: 3.5rem 1.4rem 4.5rem; }
}

/* ==========================================================================
   Reduced motion — freeze all decorative animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .af-orb,
  .af-logo__pulse,
  .af-glow-text,
  .af-caret,
  .af-stagger-1, .af-stagger-2, .af-stagger-3, .af-stagger-4,
  .af-hero__right {
    animation: none !important;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
