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

:root {
  --bg: #070b14;
  --bg-alt: #0d1321;
  --bg-card: #121a2b;
  --bg-elevated: #182033;
  --border: #1e2d45;
  --border-light: #2a3f5f;
  --text: #eef2f7;
  --text-muted: #8b9cb8;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.18);
  --cyan: #06b6d4;
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --gradient-start: #3b82f6;
  --gradient-end: #06b6d4;
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 68px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 11, 20, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  position: relative;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo-mark {
  font-family: var(--mono);
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  opacity: 0.92;
}

/* ── Language switcher ── */
.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.lang-globe {
  opacity: 0.7;
}

.lang-chevron {
  opacity: 0.5;
  transition: transform 0.2s;
}

.lang-toggle[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: var(--bg-elevated);
  color: var(--text);
}

.lang-menu button.active {
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.12);
  top: -100px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.08);
  bottom: -80px;
  left: -80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
}

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

.btn-ghost:hover {
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

.hero-panel-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.panel-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.panel-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.panel-icon-blue {
  background: var(--accent-glow);
  color: var(--accent);
}

.panel-icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.panel-icon-purple {
  background: var(--purple-glow);
  color: var(--purple);
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.panel-stats div {
  text-align: center;
}

.panel-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--text);
}

.panel-stats span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Trust bar ── */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.25rem 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.trust-items span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-items span::before {
  content: '·';
  margin-right: 1.25rem;
  color: var(--border-light);
}

.trust-items span:first-child::before {
  display: none;
}

/* ── Sections ── */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-eyebrow-purple {
  color: var(--purple);
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Service groups ── */
.service-groups {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.group-header {
  margin-bottom: 1.5rem;
}

.group-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.group-badge-blue {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.group-badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.group-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── AI section ── */
.section-ai {
  background: linear-gradient(180deg, var(--bg) 0%, #0a0f1a 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.section-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, var(--purple-glow), transparent);
  pointer-events: none;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
}

.ai-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ai-intro > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ai-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-benefits li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.35rem;
  position: relative;
}

.ai-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.ai-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.25s;
}

.ai-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

.ai-card-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--purple);
  opacity: 0.7;
}

.ai-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.35rem 0 0.5rem;
}

.ai-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Process ── */
.section-process {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

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

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.project-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.project-tags span:first-child {
  color: var(--purple);
  background: var(--purple-glow);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
}

.project-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.project-meta li {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-muted);
}

.project-meta li::before {
  content: '→ ';
  color: var(--accent);
}

/* ── About ── */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.about-main h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.about-main p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.tech-block h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

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

.tech-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  color: var(--text-muted);
}

/* ── CTA band ── */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}

/* ── Contact ── */
.section-contact {
  padding-bottom: 4rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

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

.contact-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-points li {
  padding-left: 1rem;
  border-left: 2px solid var(--border-light);
}

.contact-points strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-points span {
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

.optional {
  font-weight: 400;
  opacity: 0.7;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.925rem;
  transition: border-color 0.2s;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9cb8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-info h2 {
    font-size: clamp(1.65rem, 4vw, 2rem);
  }
}

/* ── Mobile landscape / small tablet ── */
@media (max-width: 960px) {
  .hero-grid,
  .ai-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    overflow-wrap: break-word;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel-inner {
    padding: 1.25rem;
  }

  .panel-stats strong {
    font-size: 1.1rem;
  }

  .nav-end {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1rem 1.25rem;
    gap: 0.5rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 150;
  }

  .nav-end.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.1rem !important;
  }

  .lang-switcher {
    align-self: stretch;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .lang-toggle {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
  }

  .lang-menu {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }

  .lang-menu button {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .ai-cards {
    grid-template-columns: 1fr;
  }

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

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .process-step {
    padding: 1.25rem 0.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
    width: 100%;
  }

  .contact-form .btn {
    width: 100%;
    align-self: stretch;
    min-height: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: none;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cta-inner h2 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .cta-inner .btn {
    width: 100%;
    min-height: 44px;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .trust-items {
    gap: 0.35rem 0.75rem;
  }

  .trust-items span::before {
    display: none;
  }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 375px) {
  .hero-content h1 {
    font-size: clamp(1.65rem, 8.5vw, 1.85rem);
  }

  .panel-stats {
    gap: 0.35rem;
  }

  .panel-stats span {
    font-size: 0.65rem;
  }

  .section-header h2,
  .about-main h2,
  .ai-intro h2 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .project-card,
  .service-card,
  .ai-card {
    padding: 1.25rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-end {
    left: -0.75rem;
    right: -0.75rem;
    padding: 0.75rem 0.75rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}

body.menu-open {
  overflow: hidden;
}

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