@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --brand-green: #47d782;
  --brand-green-strong: #19a05c;
  --deep-night: #03090d;
  --deep-navy: #061823;
  --accent-mint: #9effd7;
  --card-bg: rgba(9, 28, 37, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --text-main: #f6fef8;
  --text-muted: #c1d8d0;
  --warning: #ffd67d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at 10% 20%, #07222f 0%, #02080d 55%, #010407 100%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(71, 215, 130, 0.18), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(158, 255, 215, 0.15), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

main {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1rem;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text span:first-child {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-mint);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  background: linear-gradient(120deg, var(--brand-green-strong), var(--accent-mint));
  color: var(--deep-night);
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  min-height: 52px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto !important;
  z-index: 20;
  text-align: center;
  transform: translateZ(0);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(71, 215, 130, 0.35);
}

.primary-btn:focus,
.primary-btn:focus-visible,
.primary-btn:active {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(71, 215, 130, 0.45);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), transparent 70%);
  opacity: 0.15;
  transform: translateX(-120%);
  animation: buttonShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--stagger, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal[data-animate="fade-right"] {
  transform: translateX(36px);
}

.reveal[data-animate="fade-left"] {
  transform: translateX(-36px);
}

.reveal[data-animate="zoom-in"],
.reveal[data-animate="scale-in"] {
  transform: scale(0.88);
}

.reveal[data-animate="float-up"] {
  transform: translateY(60px);
}

.reveal[data-animate="tilt-up"] {
  transform: perspective(1200px) rotateX(14deg);
  transform-origin: bottom;
}

.reveal.is-visible[data-animate="zoom-in"],
.reveal.is-visible[data-animate="scale-in"],
.reveal.is-visible[data-animate="tilt-up"],
.reveal.is-visible[data-animate="float-up"] {
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  0% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.07) translateY(-10px);
  }
  100% {
    transform: scale(1.02) translateY(-3px);
  }
}

@keyframes cardPulse {
  0% {
    box-shadow: 0 20px 45px rgba(1, 6, 10, 0.35);
  }
  50% {
    box-shadow: 0 30px 70px rgba(1, 6, 10, 0.5);
  }
  100% {
    box-shadow: 0 20px 45px rgba(1, 6, 10, 0.35);
  }
}

@keyframes glowDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
  100% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

@keyframes badgePulse {
  0% {
    opacity: 0.75;
    box-shadow: 0 0 0 rgba(71, 215, 130, 0.25);
  }
  60% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(71, 215, 130, 0.45);
  }
  100% {
    opacity: 0.8;
    box-shadow: 0 0 0 rgba(71, 215, 130, 0.1);
  }
}

@keyframes buttonShine {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.hero {
  display: grid;
  column-gap: clamp(1.25rem, 2.5vw, 2.6rem);
  row-gap: clamp(0.5rem, 1vw, 1.4rem);
  padding: 3rem 0 2rem;
  grid-template-areas:
    "copy"
    "visual"
    "card";
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  min-height: clamp(220px, 32vw, 420px);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.hero-card {
  grid-area: card;
  height: 100%;
  width: 100%;
  background: rgba(3, 9, 13, 0.6);
  min-height: clamp(200px, 24vw, 280px);
  aspect-ratio: 4 / 3;
  position: relative;
  align-self: flex-start;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(3, 9, 13, 0.65) 100%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.03);
  animation: heroDrift 24s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.hero-copy p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: rgba(71, 215, 130, 0.15);
  color: var(--accent-mint);
  border: 1px solid rgba(71, 215, 130, 0.4);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  animation: badgePulse 4.5s ease-in-out infinite;
}

.hero-badges .badge:nth-child(2) {
  animation-delay: 0.35s;
}

.hero-badges .badge:nth-child(3) {
  animation-delay: 0.7s;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: cardPulse 9s ease-in-out infinite;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(158, 255, 215, 0.25), transparent 70%);
  filter: blur(40px);
  opacity: 0.4;
  animation: glowDrift 18s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -30% 10% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(71, 215, 130, 0.5), transparent 70%);
  filter: blur(20px);
  animation: glowDrift 16s ease-in-out infinite reverse;
  z-index: -1;
}

.hero-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi strong {
  font-size: 2.1rem;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.services,
.industries,
.analysis,
.process,
.cta,
.keyword-explain {
  margin: 3rem 0;
}

.services,
.process,
.cta,
.visual-gallery,
.motion-showcase,
.analysis {
  margin-top: 2.25rem;
}

.analysis {
  margin: 1.4rem 0 2.25rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(1.2rem, 3vw, 2.75rem);
  align-items: start;
}

.analysis-copy h2 {
  margin-top: 0.2rem;
}

.analysis-benefits {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-muted);
}

.analysis-benefits li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.analysis-benefits li::before {
  content: "▹";
  color: var(--accent-mint);
  margin-right: 0.5rem;
}

.analysis-note {
  margin-top: 1rem;
  color: var(--accent-mint);
  font-weight: 600;
}

.analysis-tool {
  background: rgba(4, 18, 27, 0.85);
  border: 1px solid rgba(71, 215, 130, 0.25);
  border-radius: 26px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.analysis-badge {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.analysis-input {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.analysis-input input {
  flex: 1;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(1, 6, 10, 0.75);
  color: var(--text-main);
  font-size: 1rem;
}

.analysis-input button {
  white-space: nowrap;
}

.status-message {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--accent-mint);
  font-size: 0.9rem;
}

.status-message.error {
  color: #f59b9b;
}

.analysis-result {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.score-card {
  --score-color: var(--accent-mint);
  --score-badge-bg: rgba(71, 215, 130, 0.15);
  --score-badge-border: rgba(71, 215, 130, 0.4);
  display: flex;
  gap: 1rem;
  background: rgba(2, 10, 14, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem;
  align-items: center;
}

.score-card[data-score-tier="critical"] {
  --score-color: #ff5a63;
  --score-badge-bg: rgba(255, 90, 99, 0.18);
  --score-badge-border: rgba(255, 90, 99, 0.4);
}

.score-card[data-score-tier="caution"] {
  --score-color: #ffbd4a;
  --score-badge-bg: rgba(255, 189, 74, 0.2);
  --score-badge-border: rgba(255, 189, 74, 0.45);
}

.score-card[data-score-tier="optimize"] {
  --score-color: #48d489;
  --score-badge-bg: rgba(72, 212, 137, 0.18);
  --score-badge-border: rgba(72, 212, 137, 0.4);
}

.score-card[data-score-tier="excellent"] {
  --score-color: #7ef2c0;
  --score-badge-bg: rgba(126, 242, 192, 0.22);
  --score-badge-border: rgba(126, 242, 192, 0.45);
}

.score-donut {
  --score: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.score-donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(4, 18, 27, 0.95);
}

.score-donut strong,
.score-donut span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.score-donut strong {
  font-size: 2.4rem;
}

.score-donut span {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-copy {
  flex: 1;
}

.score-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
}

.score-status {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--score-color);
  font-weight: 600;
}

.score-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.score-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.score-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--score-badge-bg);
  border: 1px solid var(--score-badge-border);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--score-color);
}

.scan-timing {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.analysis-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.insight-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(2, 10, 14, 0.85);
  padding: 1.2rem;
}

.insight-card h4 {
  margin: 0 0 0.75rem;
}

.issue-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
}

.issue-list li {
  line-height: 1.4;
}

.issue-list li.positive {
  color: var(--accent-mint);
}

.issue-list li.warning {
  color: #f3b36a;
}

.screenshot-card {
  min-height: 220px;
}

.screenshot-shell {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.screenshot-shell img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.screenshot-shell img.is-visible {
  opacity: 1;
}

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 60%);
}

.analysis-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.matrix-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 12, 18, 0.9);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matrix-head p {
  margin: 0;
  font-weight: 600;
}

.matrix-head span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-item {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.check-item span {
  font-weight: 500;
}

.check-item small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.check-item.pass {
  border-color: rgba(71, 215, 130, 0.5);
  background: rgba(71, 215, 130, 0.08);
}

.check-item.warn {
  border-color: rgba(243, 179, 106, 0.6);
  background: rgba(243, 179, 106, 0.08);
}

.check-item.info {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.analysis-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.legend-item {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.legend-item.pass {
  color: var(--accent-mint);
}

.legend-item.warn {
  color: #f3b36a;
}

.legend-item.info {
  color: rgba(255, 255, 255, 0.7);
}

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

.keyword-explain {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 18, 27, 0.75);
}

.keyword-explain h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.keyword-explain p {
  color: var(--text-muted);
}

.keyword-explain p + p {
  margin-top: 1rem;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.keyword-tags span {
  border: 1px solid rgba(71, 215, 130, 0.5);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-mint);
}

.section-divider {
  width: min(320px, 65%);
  height: 2px;
  margin: 0.5rem auto 1.25rem;
  background: linear-gradient(90deg, transparent, rgba(71, 215, 130, 0.7), transparent);
  opacity: 0.65;
  border-radius: 2px;
}

.card-grid,
.services .card-grid,
.services.highlight .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  align-items: start;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-copy > * {
  margin: 0;
}

.services.highlight .section-layout,
.industries .section-layout {
  align-items: stretch;
}

.card {
  background: rgba(6, 24, 35, 0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 35px rgba(1, 6, 10, 0.35);
  transition: transform 0.45s ease, border-color 0.3s ease, box-shadow 0.45s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background: radial-gradient(circle at top, rgba(71, 215, 130, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(71, 215, 130, 0.6);
  box-shadow: 0 28px 55px rgba(2, 8, 13, 0.55);
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.industries .card {
  padding: 1.25rem;
}

.industries .card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.analysis-banner {
  margin: 0.5rem 0 0.6rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 26px;
  border: 1px solid rgba(71, 215, 130, 0.25);
  background: linear-gradient(135deg, rgba(6, 24, 35, 0.95), rgba(5, 20, 30, 0.85));
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.analysis-banner .banner-copy {
  max-width: 640px;
}

.analysis-banner h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.analysis-banner p {
  margin: 0;
  color: var(--text-muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.process-step {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.process-step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(71, 215, 130, 0.2);
  color: var(--brand-green);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.cta {
  background: linear-gradient(120deg, rgba(10, 37, 32, 0.93), rgba(3, 9, 13, 0.93));
  border: 1px solid rgba(71, 215, 130, 0.35);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.cta h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

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

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer small {
  color: var(--text-muted);
}

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

  .hero-visual img,
  .hero-card,
  .hero-card::before,
  .hero-card::after,
  .hero-badges .badge,
  .primary-btn::after,
  .metric-track {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    flex-direction: column;
  }

  .analysis-input {
    flex-direction: column;
  }

  .analysis-input button {
    width: 100%;
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--accent-mint);
  text-decoration: none;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.legal-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 11, 18, 0.65);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.legal-btn:hover {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  transform: translateY(-1px);
}

.legal-intro {
  margin: 1rem 0 3rem;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 18, 27, 0.8);
}

.legal-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.legal-intro p {
  color: var(--text-muted);
  margin: 0 0 1.2rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--accent-mint);
}

.legal-meta span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 215, 130, 0.35);
  background: rgba(3, 11, 18, 0.65);
}

.showcase {
  margin: 1rem 0 0.75rem;
}

.studio-split {
  margin: 0.5rem 0 0.75rem;
}

.testimonials {
  margin: 0.25rem 0 2rem;
  padding-top: 0.75rem;
}

.showcase-header {
  margin: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.showcase-header {
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  align-items: stretch;
}

.showcase-header > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-header .photo-grid {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  grid-auto-rows: minmax(220px, 280px);
}

.showcase-header .photo-card {
  min-height: 260px;
}

.showcase-header .photo-card:nth-child(3) {
  grid-column: span 2;
  min-height: 320px;
}

.showcase ul {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 220px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card span {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  background: rgba(3, 9, 13, 0.72);
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visual-gallery {
  margin: 3rem 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(5, 20, 30, 0.85), rgba(5, 26, 20, 0.85));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.gallery-copy h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.gallery-copy p {
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 160px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.04);
  transition: transform 0.7s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.08);
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(2, 8, 13, 0.85) 80%);
  font-size: 0.85rem;
}

.contact-gallery .gallery-grid figure {
  min-height: 140px;
  aspect-ratio: 3 / 2;
}

.contact-gallery .gallery-grid img {
  height: 100%;
}

.motion-showcase {
  margin: 3rem 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 11, 18, 0.85);
}

.motion-showcase h2 {
  margin-top: 0;
}

.motion-copy {
  max-width: 640px;
}

.motion-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.motion-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 24, 35, 0.8);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.motion-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.motion-info {
  padding: 1.2rem;
  flex: 1;
}

.motion-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.motion-info p {
  margin: 0;
  color: var(--text-muted);
}

.metric-marquee {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
  overflow: hidden;
}

.metric-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 215, 130, 0.4);
  margin-right: 1rem;
  color: var(--accent-mint);
  font-size: 0.85rem;
}

.metric-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.studio-split img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  max-height: 440px;
}

.studio-content h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.studio-content ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.testimonials {
  background: rgba(6, 24, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: rgba(2, 8, 13, 0.72);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--accent-mint);
}

.chatbot {
  position: fixed;
  right: 2.5vw;
  bottom: 2.5vw;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.chatbot-toggle {
  border: none;
  background: rgba(3, 11, 18, 0.8);
  border: 1px solid rgba(71, 215, 130, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--accent-mint);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.chatbot-toggle img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.chatbot-toggle:hover {
  transform: translateY(-2px) scale(1.01);
}

.chatbot-panel {
  width: min(320px, 88vw);
  background: rgba(2, 8, 13, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chatbot-header strong {
  display: block;
  font-size: 1.1rem;
}

.chatbot-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chatbot-close {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.chatbot-close img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.chatbot-body {
  margin-top: 1.2rem;
}

.chatbot-intro {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.chatbot-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chatbot-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.chatbot-form input,
.chatbot-form textarea {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 20, 28, 0.85);
  padding: 0.8rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.chatbot-form button {
  border: none;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--brand-green-strong), var(--accent-mint));
  color: var(--deep-night);
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 16px);
  width: min(560px, calc(100vw - 2rem));
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(4, 12, 18, 0.95);
  border: 1px solid rgba(71, 215, 130, 0.3);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.cookie-banner h3 {
  margin: 0;
  font-size: 1.15rem;
}

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

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-actions button {
  flex: 1;
  min-width: 140px;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.cookie-btn-primary {
  background: linear-gradient(120deg, var(--brand-green-strong), var(--accent-mint));
  color: var(--deep-night);
}

.cookie-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.cookie-banner a {
  color: var(--accent-mint);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

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

  .section-layout {
    grid-template-columns: 1fr;
  }

  .showcase-header {
    grid-template-columns: 1fr;
  }

  .showcase-header .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: auto;
  }

  .showcase-header .photo-card:nth-child(3) {
    grid-column: auto;
    min-height: 240px;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .cta {
    text-align: left;
  }

  .studio-split,
  .showcase-header {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: repeat(2, minmax(320px, 520px));
    grid-template-areas:
      "copy visual"
      "copy card";
    align-items: start;
    justify-content: center;
  }

  .hero-card {
    height: 100%;
  }

  .hero-visual {
    height: auto;
    max-height: 300px;
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .primary-btn {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 30;
    overflow: visible;
  }

  .primary-btn::after {
    display: none;
  }

  /* Disable reveal/tween transforms on touch to keep taps reliable */
  .reveal,
  .reveal.is-visible,
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero .primary-btn,
  .cta .primary-btn,
  nav .primary-btn,
  .analysis .primary-btn {
    justify-content: center;
  }

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

  .analysis button {
    width: 100%;
    justify-self: stretch;
  }

  .analysis-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .analysis-banner .primary-btn {
    width: 100%;
  }

  .chatbot {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 540px) {
  main {
    width: 92vw;
    padding: 1.5rem 0 3rem;
  }

  nav a,
  nav button {
    width: 100%;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem 1rem;
  }

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

  .hero-card {
    padding: 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }

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

  .cta {
    text-align: center;
  }

  footer {
    flex-direction: column;
  }
}

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

  .photo-card img {
    transition: none;
  }
}
