@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --teal: #00b7ae;
  --teal-deep: #0891a0;
  --teal-bright: #2de0d4;
  --blue: #1f4fd6;
  --blue-deep: #1639a8;
  --mint: #d7fffb;
  --coral: #fb7185;
  --coral-deep: #f43f5e;
  --ink: #0b1630;
  --ink-soft: #1c2f55;
  --muted: #5a6b86;
  --line: #d5e0f0;
  --fog: #f2f7ff;
  --white: #ffffff;
  --surface: #eaf4ff;
  --shadow: 0 18px 50px rgba(31, 79, 214, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Outfit', sans-serif;
  --sans: 'Figtree', sans-serif;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(900px 500px at -5% 20%, rgba(251, 113, 133, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fffd 0%, #ffffff 38%, #f3fbfa 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 10px 14px;
  border: 2px solid var(--teal);
  border-radius: 8px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 230, 232, 0.7);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-name {
  display: block;
  white-space: nowrap;
}

.brand-clini {
  color: var(--blue);
}

.brand-qora {
  color: var(--teal);
}

.brand-word small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--teal-deep);
}

.menu {
  display: none;
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.menu-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: 0.25s ease;
}

.menu[aria-expanded='true'] .menu-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu[aria-expanded='true'] .menu-bars span:nth-child(2) {
  opacity: 0;
}

.menu[aria-expanded='true'] .menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(31, 79, 214, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 183, 174, 0.32);
}

.btn.light {
  background: #ffffff;
  color: #0f766e;
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn.light:hover {
  transform: translateY(-2px);
  background: #f0fdfa;
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.outline:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn.coral {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.35);
}

.btn.coral:hover {
  transform: translateY(-2px);
  background: #e11d48;
  border-color: #e11d48;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(11, 22, 48, 0.94) 0%, rgba(22, 57, 168, 0.88) 42%, rgba(8, 145, 160, 0.86) 100%),
    radial-gradient(circle at 80% 20%, #2de0d4 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, #1f4fd6 0%, transparent 40%),
    #0b1630;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  border-radius: 50%;
  right: -12%;
  top: 10%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.35), transparent 68%);
  animation: pulseOrb 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 88px;
  max-width: 720px;
}

.brand-hero {
  font-family: var(--display);
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 18px;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: fadeUp 0.8s ease both;
}

.brand-hero em {
  font-style: normal;
  color: var(--teal-bright);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 18ch;
  color: #ffffff;
  opacity: 1;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero p {
  margin: 0;
  max-width: 42ch;
  color: #e6fffa;
  font-size: 1.08rem;
  opacity: 1;
  animation: fadeUp 0.8s ease 0.18s both;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 1;
  animation: fadeUp 0.8s ease 0.26s both;
}

.hero-orbit {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: min(38vw, 380px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
  animation: spinSlow 40s linear infinite;
}

.hero-orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  top: 8%;
  left: 50%;
  box-shadow: 0 0 0 8px rgba(251, 113, 133, 0.2);
}

.hero-orbit::before,
.hero-orbit::after {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 34%;
  border-color: rgba(94, 234, 212, 0.35);
}

/* Trust */
.trust {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

.trust-item {
  padding: 18px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

/* Sections */
section {
  padding: 96px 0;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 12px 0 0;
  color: var(--ink);
  max-width: 18ch;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: end;
}

.intro-copy p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.text-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  transition: gap 0.2s ease;
}

.text-link:hover {
  gap: 10px;
  color: var(--coral-deep);
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--fog) 0%, #ffffff 100%);
}

.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}

.heading-row p {
  max-width: 380px;
  color: var(--muted);
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 230px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-bright), var(--coral));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

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

.service:nth-child(1) {
  grid-column: span 7;
}

.service:nth-child(2) {
  grid-column: span 5;
  background: linear-gradient(160deg, #1639a8 0%, #0b1630 100%);
  color: var(--white);
  border-color: transparent;
}

.service:nth-child(2)::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--coral), #fda4af);
}

.service:nth-child(3),
.service:nth-child(4),
.service:nth-child(5) {
  grid-column: span 4;
}

.service-no {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.service:nth-child(2) .service-no {
  color: var(--teal-bright);
}

.service h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}

.service p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.service:nth-child(2) p {
  color: rgba(204, 251, 241, 0.85);
}

.service .text-link {
  position: absolute;
  bottom: 24px;
  left: 28px;
}

.service:nth-child(2) .text-link {
  color: var(--teal-bright);
}

/* Process */
.process {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(45, 224, 212, 0.22), transparent 50%),
    linear-gradient(145deg, #0b1630 0%, #1639a8 55%, #0891a0 100%);
  color: var(--white);
}

.process .section-title {
  color: var(--white);
  max-width: 16ch;
}

.process .kicker {
  color: var(--teal-bright);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.step b {
  display: block;
  color: var(--coral);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.92rem;
  color: rgba(240, 253, 250, 0.78);
  line-height: 1.6;
  margin: 0;
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.industry {
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.industry:hover {
  border-color: var(--teal-bright);
  transform: translateY(-2px);
}

.industry::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  flex-shrink: 0;
}

/* Engagement */
.engagement {
  background: linear-gradient(180deg, #ffffff 0%, var(--fog) 100%);
}

.model-list {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.model {
  display: grid;
  grid-template-columns: 72px 1fr 1.6fr;
  gap: 16px;
  padding: 22px 24px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.model:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.model span {
  font-size: 0.8rem;
  color: var(--coral-deep);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.model h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.model p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Expertise */
.expertise-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.expertise-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.expertise-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.expertise-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.system {
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 224, 212, 0.28), transparent 45%),
    linear-gradient(160deg, #1f4fd6, #1639a8 60%, #0b1630);
  min-height: 380px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 12px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.system::after {
  content: 'QUALITY';
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.system-card {
  border: 1px solid rgba(153, 246, 228, 0.28);
  padding: 18px 20px;
  color: var(--white);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.system-card b {
  display: block;
  color: var(--teal-bright);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

/* Deliverables */
.deliverables {
  background: var(--fog);
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.deliverable {
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.deliverable::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

/* Tools */
.tools {
  text-align: center;
}

.tools .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.tools > .wrap > p {
  color: var(--muted);
  max-width: 52ch;
  margin: 18px auto 0;
}

.tool-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px auto 0;
}

.tool {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tool:hover {
  background: var(--mint);
  border-color: var(--teal-bright);
  color: var(--teal-deep);
}

.notice {
  font-size: 0.8rem !important;
  max-width: 56ch;
  margin-top: 20px !important;
}

/* CTA */
.cta {
  background:
    radial-gradient(600px 300px at 10% 80%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(120deg, var(--blue) 0%, var(--teal-deep) 55%, #0b1630 100%);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}

.cta .kicker {
  color: #99f6e4;
}

.cta .section-title {
  color: var(--white);
  max-width: 16ch;
  margin: 12px auto 0;
}

.cta p {
  max-width: 42ch;
  margin: 16px auto 28px;
  color: rgba(240, 253, 250, 0.88);
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 88px 0 76px;
  background:
    linear-gradient(145deg, rgba(11, 22, 48, 0.95), rgba(22, 57, 168, 0.88) 55%, rgba(8, 145, 160, 0.85)),
    radial-gradient(circle at 90% 10%, #2de0d4, transparent 40%),
    #0b1630;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}

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

.eyebrow {
  font-size: 0.75rem;
  color: var(--teal-bright);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 14px 0 16px;
  max-width: 18ch;
}

.page-hero p {
  max-width: 48ch;
  color: rgba(240, 253, 250, 0.86);
  font-size: 1.05rem;
  margin: 0;
}

.content-section {
  padding-top: 72px;
}

.prose {
  max-width: 720px;
  color: var(--muted);
}

.prose h2 {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-top: 44px;
}

.prose a {
  color: var(--teal-deep);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-details {
  padding: 28px;
  background: linear-gradient(160deg, var(--fog), #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: max-content;
}

.contact-details h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.contact-details p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-details a {
  color: var(--teal-deep);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  border: 1.5px solid var(--line);
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 3px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.success {
  display: none;
  padding: 14px 16px;
  background: var(--mint);
  color: var(--teal-deep);
  font-weight: 700;
  margin-top: 16px;
  border-radius: var(--radius-sm);
}

.success.is-visible {
  display: block;
}

.success.is-error {
  background: #ffe4e6;
  color: #9f1239;
}

button.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* Footer */
.site-footer {
  background: #070d1c;
  color: var(--white);
  padding: 56px 0 24px;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-bright);
  margin-top: 6px;
}

.footer-copy,
.footer-inner a {
  color: #a7cfc9;
  font-size: 0.92rem;
}

.footer-inner a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.footer-bottom {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  color: #7faba4;
  font-size: 0.82rem;
}

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .hero::after,
  .hero-orbit,
  .brand-hero,
  .hero h1,
  .hero p,
  .actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .menu {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(12, 31, 46, 0.08);
  }

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

  .nav-links a:not(.btn) {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .nav-links a:not(.btn):hover {
    background: var(--fog);
  }

  .nav-links .btn {
    margin-top: 8px;
    width: 100%;
  }

  .hero-orbit {
    display: none;
  }

  .trust .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .trust-item {
    border-left: 1px solid var(--line);
  }

  .intro,
  .expertise-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .heading-row {
    display: block;
  }

  .heading-row p {
    margin-top: 14px;
  }

  .service:nth-child(n) {
    grid-column: span 12;
  }

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

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

  .model {
    grid-template-columns: 56px 1fr;
  }

  .model p {
    grid-column: 2;
  }

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

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 15px;
  }

  .wrap,
  .nav,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-word {
    font-size: 1.05rem;
  }

  .hero-inner {
    padding: 56px 0 72px;
  }

  .brand-hero {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .hero h1 {
    max-width: none;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .trust .wrap {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 1px solid var(--line);
  }

  section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 64px 0 56px;
  }

  .steps,
  .industry-grid,
  .deliverable-grid,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .model {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .model p {
    grid-column: auto;
  }

  .field.full {
    grid-column: auto;
  }

  .service {
    min-height: 0;
    padding-bottom: 64px;
  }

  .cta {
    padding: 64px 0;
  }
}
