/* ====================================================================
   Webify Studio — Stylesheet
   Design tokens: red/white glass, Apple-style system font stack
   ==================================================================== */

:root {
  /* Color tokens */
  --ink: #0a0a0c;
  --ink-soft: #4a4a52;
  --paper: #ffffff;
  --paper-soft: #f4f4f6;
  --line: rgba(10, 10, 12, 0.08);
  --line-strong: rgba(10, 10, 12, 0.14);

  --red: #d91e2f;
  --red-bright: #ff3b46;
  --red-deep: #9c0f1f;
  --red-glow: rgba(217, 30, 47, 0.35);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 20px 60px rgba(10, 10, 12, 0.10), 0 2px 8px rgba(10, 10, 12, 0.04);

  --dark: #120608;
  --dark-panel: #1a0a0d;

  /* Type */
  --font-display: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-accent { color: var(--red); }

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 10px 30px var(--red-glow);
}
.btn-primary:hover { box-shadow: 0 14px 38px var(--red-glow); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}
.btn-glass:hover { background: var(--glass-bg-strong); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- */
/* Glass panel utility                                               */
/* ---------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

.section--dark .glass-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ====================================================================
   Header / Navigation
   ==================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  box-shadow: 0 14px 40px rgba(10, 10, 12, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.brand-accent { color: var(--red); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 18px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================================
   Hero
   ==================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-glow--1 {
  width: 600px; height: 600px;
  background: var(--red-glow);
  top: -200px; right: -150px;
}
.hero-glow--2 {
  width: 500px; height: 500px;
  background: rgba(217, 30, 47, 0.18);
  bottom: -250px; left: -150px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red-deep);
  background: rgba(217, 30, 47, 0.08);
  border: 1px solid rgba(217, 30, 47, 0.18);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---- Hero visual: dock-style dashboard mockup ---- */
.hero-visual { position: relative; }

.dock-panel {
  padding: 0;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  animation: dockFloat 7s ease-in-out infinite;
}

@keyframes dockFloat {
  0%, 100% { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(-12px); }
}

.dock-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.dock-dot { width: 10px; height: 10px; border-radius: 50%; }
.dock-dot--red { background: var(--red); }
.dock-dot--idle { background: rgba(10, 10, 12, 0.15); }
.dock-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-family: ui-monospace, "SF Mono", monospace;
}

.dock-panel-body { display: grid; grid-template-columns: 130px 1fr; min-height: 320px; }

.dock-side {
  padding: 18px 12px;
  background: rgba(244, 244, 246, 0.5);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dock-side-item {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dock-side-item.is-active {
  background: rgba(217, 30, 47, 0.1);
  color: var(--red-deep);
  font-weight: 600;
}
.dock-icon-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.dock-main { padding: 18px; }
.dock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dock-card--accent {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border-color: transparent;
}
.dock-card--accent .dock-card-label,
.dock-card--accent .dock-card-value { color: #fff; }
.dock-card-label { font-size: 0.7rem; color: var(--ink-soft); }
.dock-card-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }

.dock-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.dock-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.dock-list-row:last-child { border-bottom: none; }
.dock-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dock-status--green { background: #1fa86b; }
.dock-status--red { background: var(--red); }
.dock-list-text { flex: 1; color: var(--ink); }
.dock-list-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(31, 168, 107, 0.12);
  color: #1fa86b;
}
.dock-list-tag--pending {
  background: rgba(217, 30, 47, 0.1);
  color: var(--red-deep);
}

.type-dock {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
}
.type-dock-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red-deep);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.type-dock-item svg { width: 20px; height: 20px; }
.type-dock-item:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 10px 24px var(--red-glow);
}
.type-dock-item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.type-dock-item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ====================================================================
   Marquee
   ==================================================================== */
.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after {
  content: "•";
  color: var(--red);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====================================================================
   Sections (shared)
   ==================================================================== */
.section { padding: 110px 24px; position: relative; }
.section--dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.92);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, 0.62); }
.section--dark .section-lede { color: rgba(255, 255, 255, 0.55); }

.section-inner { max-width: var(--container); margin: 0 auto; }
.section-inner--narrow { max-width: 760px; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 50px;
}

/* ====================================================================
   Services
   ==================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 32px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(10, 10, 12, 0.14);
}
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; }
.service-price {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.service-price strong { color: var(--red-deep); font-family: var(--font-display); }

/* ====================================================================
   Process
   ==================================================================== */
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  position: relative;
  padding-top: 36px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}
.process-step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 36px;
  height: 2px;
  background: var(--red);
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; line-height: 1.6; }

/* ====================================================================
   Pricing
   ==================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  background: linear-gradient(160deg, rgba(217,30,47,0.07), rgba(255,255,255,0.7));
  border: 1.5px solid rgba(217, 30, 47, 0.3);
  transform: scale(1.03);
  box-shadow: 0 30px 70px var(--red-glow);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.price-card h3 { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-currency { font-size: 1.3rem; font-weight: 700; }
.price-cycle { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.price-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.price-features li svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ====================================================================
   Work
   ==================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card { overflow: hidden; padding: 0; }
.work-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.work-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.work-thumb--1 { background: linear-gradient(135deg, #2b0a10, var(--red-deep)); }
.work-thumb--2 { background: linear-gradient(135deg, #1a0a0d, #5c1620); }
.work-thumb--3 { background: linear-gradient(135deg, #0e0e10, #3a1015); }
.work-meta { padding: 24px 26px 28px; }
.work-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.work-meta h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.work-meta p { font-size: 0.9rem; }

/* ====================================================================
   Testimonials
   ==================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card { padding: 30px 28px; }
.testimonial-stars { display: flex; gap: 3px; color: var(--red); margin-bottom: 16px; }
.testimonial-card p { font-size: 0.96rem; color: var(--ink); margin-bottom: 22px; line-height: 1.6; }
.testimonial-person { display: flex; flex-direction: column; }
.testimonial-person strong { font-family: var(--font-display); font-size: 0.92rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--ink-soft); }

/* ====================================================================
   FAQ
   ==================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 22px;
  transition: background 0.25s;
}
.faq-item[open] { background: #fff; box-shadow: var(--glass-shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 400;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ====================================================================
   Contact form
   ==================================================================== */
.form-alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.form-alert--success { background: rgba(31, 168, 107, 0.12); color: #1fa86b; border: 1px solid rgba(31, 168, 107, 0.25); }
.form-alert--error { background: rgba(217, 30, 47, 0.12); color: var(--red-bright); border: 1px solid rgba(217, 30, 47, 0.3); }

.contact-form { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.94rem;
  color: #fff;
  font-family: var(--font-body);
  transition: border-color 0.25s, background 0.25s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.09);
}
.form-field select option { background: var(--dark); color: #fff; }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ====================================================================
   Footer
   ==================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 70px 24px 28px; }
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); max-width: 280px; }
.footer-brand .brand-mark { background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); }
.footer-brand .brand-text { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; margin-bottom: 6px; }
.footer-col a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); transition: color 0.25s; }
.footer-col a:hover { color: var(--red-bright); }
.footer-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.35); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ====================================================================
   Scroll-reveal animations
   ==================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate="fade-in"] { transform: none; }
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }

[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}
[data-animate="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
[data-animate="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.09s; }
[data-animate="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.23s; }
[data-animate="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.30s; }
[data-animate="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.37s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-animate="stagger"] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .dock-panel, .marquee-track { animation: none !important; }
}

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .services-grid, .pricing-grid, .work-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .process-rail { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
    gap: 14px;
    box-shadow: var(--glass-shadow);
  }

  .hero { padding: 120px 18px 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid, .pricing-grid, .work-grid, .testimonial-grid, .process-rail { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dock-panel-body { grid-template-columns: 1fr; }
  .dock-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .contact-form { padding: 24px; }
}
