:root {
  --font-body: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Warm bright canvas */
  --bg: #FFFBF5;
  --bg-soft: #FFF7ED;
  --surface: #FFFFFF;
  --surface-2: #FFF4E6;

  /* Text */
  --text: #1C1917;
  --text-muted: #78716C;
  --text-inverse: #FAFAF8;

  /* Accents */
  --accent: #F97316;
  --accent-glow: rgba(249, 115, 22, 0.30);
  --accent-text: #FFFFFF;
  --violet: #9D7BFF;
  --violet-glow: rgba(157, 123, 255, 0.30);
  --teal: #14B8A6;
  --teal-glow: rgba(20, 184, 166, 0.22);

  /* Borders & effects */
  --border: #F0E2D4;
  --radius-sm: 0.5rem;
  --radius: 0.85rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
  --shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 25, 23, 0.10);
  --transition: 180ms ease;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

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

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 1002;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

/* Mono labels */
.label-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.label-mono::before { content: "{ "; color: var(--accent); }
.label-mono::after  { content: " }"; color: var(--accent); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(249, 115, 22, 0.42);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn-lg {
  padding: 1.15rem 2.25rem;
  font-size: 1.1rem;
}

/* Ripple container */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

input, textarea {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea {
  border-radius: var(--radius);
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover {
    transform: none;
    transition: none;
  }
}

/* Cursor spotlight effect */
.cursor-spotlight {
  position: relative;
  overflow: hidden;
}

.cursor-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 115, 22, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.cursor-spotlight:hover::before {
  opacity: 1;
}

.cursor-spotlight > * {
  position: relative;
  z-index: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-2);
  color: var(--text-muted);
}

/* Demo label (private previews only) */
.demo-label {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.82);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}

.demo-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* Lead / project starter form */
.project-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.project-form input {
  flex: 1;
  min-width: 220px;
}

/* Section header */
.section-header {
  max-width: 760px;
}

.section-header .section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 1rem;
}

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

/* Icon utilities */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn i { font-size: 1.1em; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Reveal utility (animated by anime.js) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

/* Process section */
.process-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.process-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing section */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 1rem 0;
}

.pricing-card .price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card ul {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 800px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-question:hover { color: var(--accent); }

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-answer[aria-hidden="false"] {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact section */
.contact-section {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

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

.contact-form .btn-primary {
  align-self: flex-start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-meta a { color: var(--text); }
.contact-meta a:hover { color: var(--accent); }

/* Newsletter compact variant */
.newsletter-compact {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-compact input {
  flex: 1;
  min-width: 220px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .process-card,
  .pricing-card,
  .faq-icon,
  .btn,
  .card {
    transition: none;
  }
  .process-card:hover,
  .pricing-card:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
