/* ==========================================================================
   WebGuRU 2026 — Design System & Styles
   Dark premium theme · Inspired by Stripe, Linear, Vercel
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --color-bg:          #09090b;
  --color-surface:     #111114;
  --color-surface-raised: #1a1a2e;

  /* Borders */
  --color-border:      rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(124, 58, 237, 0.3);

  /* Accent */
  --color-accent:       #7c3aed;
  --color-accent-hover: #8b5cf6;
  --color-accent-glow:  rgba(124, 58, 237, 0.25);
  --color-amber:        #f59e0b;
  --color-amber-glow:   rgba(245, 158, 11, 0.15);
  --color-success:      #10b981;
  --color-blue:         #3b82f6;
  --color-cyan:         #06b6d4;

  /* Text */
  --color-text:        #f4f4f5;
  --color-text-secondary: #a1a1aa;
  --color-text-muted:  #71717a;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.25rem;
  --text-6xl:  4rem;
  --leading:        1.6;
  --leading-tight:  1.15;

  /* Spacing */
  --section-py:    100px;
  --section-py-lg: 140px;
  --container-max: 1200px;
  --container-px:  24px;

  /* Misc */
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow:    0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px var(--color-accent-glow);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text-secondary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin: 0 0 1em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

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

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

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--6 { grid-template-columns: 1fr; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.header--scrolled {
  background: rgba(9, 9, 11, 0.9);
  border-bottom-color: var(--color-border);
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px var(--container-px);
  flex-direction: column;
  gap: 4px;
}

.nav--open {
  display: flex;
}

.nav__link {
  display: block;
  padding: 12px 16px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__cta {
  margin-top: 8px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 0 40px var(--color-accent-glow);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn--amber {
  background: var(--color-amber);
  color: #09090b;
  box-shadow: 0 0 20px var(--color-amber-glow);
}

.btn--amber:hover {
  color: #09090b;
  box-shadow: 0 0 40px var(--color-amber-glow);
  transform: translateY(-2px);
}

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

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__mesh .orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.2);
  top: -15%;
  left: -5%;
  animation: orbFloat1 25s ease-in-out infinite;
}

.hero__mesh .orb--2 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.15);
  top: 10%;
  right: -10%;
  animation: orbFloat2 30s ease-in-out infinite;
}

.hero__mesh .orb--3 {
  width: 450px;
  height: 450px;
  background: rgba(6, 182, 212, 0.1);
  bottom: -15%;
  left: 25%;
  animation: orbFloat3 22s ease-in-out infinite;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-hover);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue) 50%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--amber {
  background: linear-gradient(135deg, var(--color-amber) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Page Hero — Inner Pages ---------- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Section Headers ---------- */
.section__header {
  margin-bottom: 56px;
}

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

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section__title {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.08);
}

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

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-accent-hover);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: 8px;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-hover);
  transition: gap var(--transition), color var(--transition);
}

.card__link:hover {
  gap: 10px;
  color: var(--color-text);
}

/* ---------- Stats ---------- */
.stats-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text), var(--color-accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 700;
}

.feature__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 4px;
}

.feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Manifesto layout — used on "Why WebGuRU" */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.split__lead h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

.split__lead p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- Process / How We Work ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding-left: 56px;
  counter-increment: step;
}

.process__step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-hover);
}

.process__step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.3), transparent);
}

.process__step:last-child::after {
  display: none;
}

.process__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.process__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ---------- Work / Portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
}

.work-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-surface-raised), var(--color-surface));
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(9, 9, 11, 0.9) 100%);
  z-index: 1;
}

.work-card__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
}

.work-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.work-card__title {
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

.work-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.work-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.08);
}

/* Decorative pattern dots for work cards */
.work-card__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.testimonial__quote {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: rgba(124, 58, 237, 0.2);
  pointer-events: none;
}

.testimonial__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  padding-top: 12px;
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-blue), var(--color-cyan));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.timeline__year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.timeline__title {
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ---------- Values Grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}

.value-card:hover {
  border-color: var(--color-border-hover);
}

.value-card__icon {
  font-size: var(--text-2xl);
  margin-bottom: 12px;
}

.value-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq {
  max-width: 768px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  transition: color var(--transition);
}

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

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
  color: var(--color-accent-hover);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding: 0 0 20px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- Tech Tags ---------- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-tag {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: border-color var(--transition), color var(--transition);
}

.tech-tag:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Contact info panel */
.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info__item:last-child {
  margin-bottom: 0;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border-radius: var(--radius);
  color: var(--color-accent-hover);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-info__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
}

.contact-info__value a {
  color: var(--color-text);
}

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

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
  background: var(--color-bg);
  position: relative;
}

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

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.footer__nav-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text);
}

/* Newsletter */
.footer__newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer__newsletter input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-body);
}

.footer__newsletter input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer__newsletter button {
  padding: 10px 18px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.footer__newsletter button:hover {
  background: var(--color-accent-hover);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent-hover); }
.text-muted  { color: var(--color-text-muted); }

.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;
}

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.stagger--visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger--visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger--visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger--visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger--visible > *:nth-child(6) { transition-delay: 0.4s; }

.stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy class support */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(0.95); }
  66% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 30px) scale(1.1); }
  66% { transform: translate(-40px, -10px) scale(0.9); }
}

/* ---------- Responsive — Tablet (768px) ---------- */
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process__step::after {
    display: none;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* ---------- Responsive — Desktop (1024px) ---------- */
@media (min-width: 1024px) {
  .nav {
    display: flex;
    position: static;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav__link {
    padding: 8px 14px;
  }

  .nav__cta {
    margin-top: 0;
    margin-left: 8px;
  }

  .hamburger {
    display: none;
  }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Responsive — Wide (1280px) ---------- */
@media (min-width: 1280px) {
  :root {
    --container-max: 1280px;
  }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }

  .process {
    grid-template-columns: repeat(5, 1fr);
  }

  .process__step {
    padding-left: 0;
    text-align: center;
  }

  .process__step::before {
    position: relative;
    left: auto;
    margin: 0 auto 16px;
  }

  .process__step::after {
    display: none;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .fade-in,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}
