:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --container: 1200px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #07070d;
  --bg-alt: #0c0c18;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #eeeef6;
  --text-secondary: #9898b8;
  --text-muted: #58587a;
  --accent-1: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --accent-gradient-alt: linear-gradient(135deg, #f59e0b, #f97316);
  --glow: 0 0 40px rgba(139, 92, 246, 0.2);
  --glow-strong: 0 0 60px rgba(139, 92, 246, 0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg: #f6f6fe;
  --bg-alt: #eeeef8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0fa;
  --border: #ddddea;
  --border-hover: #c0c0da;
  --text: #16162e;
  --text-secondary: #58587a;
  --text-muted: #9898b8;
  --accent-1: #7c3aed;
  --accent-2: #0891b2;
  --accent-3: #d97706;
  --accent-gradient: linear-gradient(135deg, #7c3aed, #0891b2);
  --accent-gradient-alt: linear-gradient(135deg, #d97706, #ea580c);
  --glow: 0 0 30px rgba(124, 58, 237, 0.12);
  --glow-strong: 0 0 50px rgba(124, 58, 237, 0.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

img {
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Section header === */

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-strong);
}

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

.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

/* === Logo === */

.logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* === Header === */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

[data-theme="light"] .header {
  background: rgba(246, 246, 254, 0.85);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  color: var(--text-muted);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background: var(--bg-card);
}

.nav__link--external::after {
  content: ' ↗';
  font-size: 0.8em;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.burger--active span:nth-child(2) {
  opacity: 0;
}

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

/* === Mobile nav === */

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 7, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
}

[data-theme="light"] .mobile-nav {
  background: rgba(246, 246, 254, 0.98);
}

.mobile-nav--active {
  transform: translateX(0);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__link {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  background: var(--bg-card);
  color: var(--accent-1);
}

/* === Hero === */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  transition: transform 0.15s ease-out;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__subtitle {
  display: block;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__proof-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__proof-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__proof-logo {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* === Stats === */

.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 20px;
}

.stat__number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === About === */

.about {
  padding: 120px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.about__lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about__feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.about__highlight-card {
  background: var(--accent-gradient);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: #fff;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.about__highlight-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.about__highlight-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.about__highlight-sub {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.about__highlight-note {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.about__highlight-card .btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  width: 100%;
}

.about__highlight-card .btn:hover {
  background: rgba(255,255,255,0.3);
}

/* === Services === */

.services {
  padding: 120px 0;
  background: var(--bg-alt);
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  backdrop-filter: blur(4px);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}

.service-card--featured {
  border-color: rgba(139, 92, 246, 0.15);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.03));
}

.service-card--featured:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--glow);
}

.service-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.service-card__icon svg,
.service-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.services__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.services__cta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* === Cases === */

.cases {
  padding: 120px 0;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

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

.case-card--wide {
  grid-column: span 2;
}

.case-card__preview {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.case-card__type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  z-index: 1;
}

.case-card__mockup {
  position: absolute;
  right: 20px;
  bottom: 10px;
  opacity: 0.6;
  transition: all var(--transition);
}

.case-card:hover .case-card__mockup {
  opacity: 1;
  transform: scale(1.1) translateY(-4px);
}

.case-card__emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.case-card__body {
  padding: 20px 24px 24px;
}

.case-card__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.case-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
  opacity: 0.85;
}

.case-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.case-card__client {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 12px;
}

/* === Process === */

.process {
  padding: 120px 0;
  background: var(--bg-alt);
  position: relative;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.process__step:hover {
  border-color: var(--accent-1);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.process__step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.process__emoji {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.process__step:hover .process__emoji {
  opacity: 1;
}

.process__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: auto;
}

/* === Hire === */

.hire {
  padding: 120px 0;
}

.hire__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 48px;
}

.hire__info {
  width: 100%;
}

.hire__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hire__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hire__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hire__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hire__contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hire__contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.hire__contact-value:hover {
  color: var(--accent-2);
}

.hire__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.hire__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.hire__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  padding-left: 18px;
}

.hire__input {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.hire__input::placeholder {
  color: var(--text-muted);
}

.hire__input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.hire__textarea {
  resize: vertical;
  min-height: 80px;
}

.hire__submit {
  align-self: center;
  margin-top: 8px;
}

.hire__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 18px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hire__checkbox input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-1);
}

.hire__checkbox-text a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hire__checkbox-text a:hover {
  opacity: 0.7;
}

.hire__direct {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-mono);
}

.hire__direct a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hire__direct a:hover {
  opacity: 0.7;
}

/* Message after submit */
.hire__msg {
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-family: var(--font-sans);
}

.hire__msg--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.hire__msg--err {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Button loading state */
.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* === Footer === */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

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

.footer__copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__contacts,
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* === NDA Badge === */

.nda-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  vertical-align: middle;
}

/* === Scroll reveal === */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.revealed:nth-child(1) { transition-delay: 0s; }
.revealed:nth-child(2) { transition-delay: 0.05s; }
.revealed:nth-child(3) { transition-delay: 0.1s; }
.revealed:nth-child(4) { transition-delay: 0.15s; }
.revealed:nth-child(5) { transition-delay: 0.2s; }
.revealed:nth-child(6) { transition-delay: 0.25s; }
.revealed:nth-child(7) { transition-delay: 0.3s; }
.revealed:nth-child(8) { transition-delay: 0.35s; }
.revealed:nth-child(9) { transition-delay: 0.4s; }
.revealed:nth-child(10) { transition-delay: 0.45s; }
.revealed:nth-child(11) { transition-delay: 0.5s; }
.revealed:nth-child(12) { transition-delay: 0.55s; }

/* === Responsive === */

.hide-mobile {
  display: inline;
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .case-card--wide {
    grid-column: span 1;
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hide-mobile {
    display: none;
  }

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

  .stat__number {
    font-size: 2.2rem;
  }

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

  .about__features {
    grid-template-columns: 1fr;
  }

  .about__highlight-card {
    position: static;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__cta {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }

  .hire__card {
    padding: 32px 24px;
  }

  .hire__submit {
    align-self: stretch;
  }

  .process__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero__title {
    font-size: 2.2rem;
    line-height: 1.3;
  }
}

/* === Case detail page === */

.case-detail {
  padding: 120px 0 80px;
}

.case-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
  font-family: var(--font-mono);
}

.case-detail__back:hover {
  color: var(--accent-2);
}

.case-detail__header {
  margin-bottom: 20px;
}

.case-detail__type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-1);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.case-detail__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.case-detail__link {
  font-size: 1rem;
  color: var(--accent-2);
  font-family: var(--font-mono);
  transition: opacity var(--transition);
}

.case-detail__link:hover {
  opacity: 0.7;
}

.case-detail__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.case-detail__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.case-detail__preview {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 48px;
}

.case-detail__emoji {
  font-size: 6rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.case-detail__info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-detail__info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 720px;
}

.case-detail__info p:last-child {
  margin-bottom: 0;
}

.case-detail__project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  font-family: var(--font-mono);
  transition: opacity var(--transition);
}

.case-detail__project-link:hover {
  opacity: 0.7;
}

/* === Policy Pages === */

.policy {
  max-width: 760px;
  margin: 0 auto;
}

.policy h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.policy__date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 20px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
}

.policy h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--accent-2);
}

.policy p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.policy ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.policy li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.policy a:not(.btn) {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy a:not(.btn):hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .case-detail__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-detail__emoji {
    font-size: 4rem;
  }
}
