:root {
  --navy: #0b1020;
  --navy-soft: #111833;
  --cyan: #35d0ff;
  --cyan-soft: rgba(53, 208, 255, 0.2);
  --lime: #b6ff5c;
  --mist: #f6f8fb;
  --charcoal: #111827;
  --text-on-dark: #e8eef8;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 30px 80px rgba(9, 12, 24, 0.55);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-body: "Sora", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(900px 700px at 10% 10%, rgba(182, 255, 92, 0.14), transparent 60%),
    linear-gradient(180deg, #050608 0%, #050608 100%);
  color: var(--text-on-dark);
  line-height: 1.6;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(182, 255, 92, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

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

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section.light {
  background: var(--mist);
  color: var(--charcoal);
}

.section.light .service-card,
.section.light .process-step,
.section.light .portfolio-card,
.section.light .contact-card,
.section.light .roi-panel,
.section.light .audit-card,
.section.light .result-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
}

.section.light .badge {
  background: rgba(17, 24, 39, 0.08);
  color: var(--charcoal);
}

.section.light .btn-secondary {
  background: #ffffff;
  color: var(--charcoal);
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.section.light .btn-ghost {
  color: var(--charcoal);
  border: 1px solid rgba(17, 24, 39, 0.2);
}

.section.light .btn-ghost:hover {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--cyan);
  color: #081321;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 10;
}

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

#starfall {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: rgba(232, 238, 248, 0.8);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #5fe1ff);
  color: #06101d;
  box-shadow: 0 16px 30px rgba(53, 208, 255, 0.25);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-ghost {
  background: transparent;
  color: rgba(232, 238, 248, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  color: var(--cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(53, 208, 255, 0.14);
  color: #bcecff;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero {
  padding-top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2.1rem + 1.4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(232, 238, 248, 0.82);
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.metric {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 18px;
  border-radius: 14px;
  min-width: 160px;
}

.metric span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.metric small {
  color: rgba(232, 238, 248, 0.72);
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-card ul,
.audit-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: rgba(232, 238, 248, 0.75);
}

.glass-card ul li,
.audit-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.glass-card ul li::before,
.audit-card ul li::before {
  content: "•";
  color: var(--lime);
}

.section.light .glass-card ul,
.section.light .audit-card ul {
  color: rgba(17, 24, 39, 0.7);
}

.glass-head {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.video-frame {
  position: relative;
  border-radius: 18px;
  padding: 46% 0 0 0;
  background: linear-gradient(135deg, rgba(53, 208, 255, 0.18), rgba(182, 255, 92, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #ffffff;
}

.caption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 0.85rem;
  color: rgba(232, 238, 248, 0.9);
}

.glass-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: center;
}

.glass-stats strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.glass-stats span {
  font-size: 0.8rem;
  color: rgba(232, 238, 248, 0.7);
}

.section-head {
  margin-bottom: 36px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(232, 238, 248, 0.6);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.6rem);
  margin-bottom: 12px;
}

.section-head p {
  color: rgba(232, 238, 248, 0.75);
}

.section.light .section-head p {
  color: rgba(17, 24, 39, 0.7);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(53, 208, 255, 0.12);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(53, 208, 255, 0.35), rgba(182, 255, 92, 0.18));
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 16px;
  color: #dff6ff;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.service-card p {
  color: rgba(232, 238, 248, 0.72);
  font-size: 0.95rem;
}

.service-note {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
}

.service-note h3 {
  font-size: 1.05rem;
}

.service-note p {
  color: rgba(232, 238, 248, 0.72);
  font-size: 0.95rem;
}

.section.light .service-card p {
  color: rgba(17, 24, 39, 0.7);
}

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

.process-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(53, 208, 255, 0.2);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.process-step p {
  color: rgba(232, 238, 248, 0.72);
  font-size: 0.92rem;
}

.section.light .process-step p {
  color: rgba(17, 24, 39, 0.7);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio-description {
  display: grid;
  gap: 6px;
  min-height: 110px;
}

.portfolio-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(232, 238, 248, 0.6);
}

.portfolio-description h3 {
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-description p {
  color: rgba(232, 238, 248, 0.72);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px;
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  width: 100%;
  margin-top: auto;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 180px at 20% 20%, rgba(53, 208, 255, 0.25), transparent 60%),
    radial-gradient(260px 200px at 80% 80%, rgba(182, 255, 92, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(53, 208, 255, 0.14);
  border-color: rgba(53, 208, 255, 0.4);
}

.portfolio-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 208, 255, 0.35);
}

.portfolio-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(5, 8, 18, 0.45);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.portfolio-card:hover .portfolio-card-inner {
  transform: translateY(-4px);
}

.portfolio-card img {
  transition: opacity 0.25s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  filter: hue-rotate(var(--preview-hue, 0deg)) saturate(1.2);
  animation: portfolio-float 8s ease-in-out infinite;
}

.portfolio-card img.is-photo {
  filter: none;
  object-position: center top;
  animation: none;
}

.portfolio-live {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.portfolio-live iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  border-radius: inherit;
  background: #ffffff;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
}

.portfolio-card.is-live .portfolio-live {
  opacity: 1;
}


.portfolio-card-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-card-hint,
.portfolio-card:focus-visible .portfolio-card-hint {
  opacity: 1;
  transform: translateY(0);
}

@keyframes portfolio-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

body.preview-open {
  overflow: hidden;
}

.portfolio-preview-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.portfolio-preview-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-preview-shell {
  width: min(1100px, 92vw);
  height: min(720px, 86vh);
  background: #0c1224;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 120px rgba(5, 8, 18, 0.7);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.portfolio-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(8, 12, 24, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-preview-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portfolio-preview-dots {
  display: flex;
  gap: 6px;
}

.portfolio-preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.portfolio-preview-text {
  display: grid;
  gap: 2px;
}

.portfolio-preview-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: rgba(232, 238, 248, 0.6);
}

.portfolio-preview-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.portfolio-preview-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-on-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-preview-close:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 208, 255, 0.5);
}

.portfolio-preview-frame {
  position: relative;
  padding: 20px;
  background: radial-gradient(380px 280px at 20% 20%, rgba(53, 208, 255, 0.12), transparent 60%),
    radial-gradient(360px 260px at 80% 80%, rgba(182, 255, 92, 0.12), transparent 60%),
    #0b1020;
  display: grid;
  place-items: center;
}

.portfolio-preview-frame::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 18px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  pointer-events: none;
}

.portfolio-preview-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(3, 6, 16, 0.55);
}

.portfolio-preview-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: #ffffff;
  transform-origin: top left;
  will-change: transform;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.roi-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.roi-panel ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(232, 238, 248, 0.75);
}

.roi-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roi-panel li::before {
  content: "•";
  color: var(--lime);
  font-size: 1.2rem;
}

.section.light .roi-panel h3 {
  color: var(--charcoal);
}

.section.light .roi-panel ul {
  color: rgba(17, 24, 39, 0.8);
}

.section.light .roi-panel li::before {
  color: #35b55d;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.stat-card span {
  color: rgba(232, 238, 248, 0.7);
  font-size: 0.9rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(232, 238, 248, 0.6);
  font-size: 0.85rem;
}

.conversion-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  font-size: 0.9rem;
  color: rgba(232, 238, 248, 0.85);
}

.section.light .form-grid label {
  color: rgba(17, 24, 39, 0.8);
}

.status {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

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

.status.loading {
  background: rgba(53, 208, 255, 0.16);
  border-color: rgba(53, 208, 255, 0.4);
  color: #bfefff;
}

.status.success {
  background: rgba(182, 255, 92, 0.16);
  border-color: rgba(182, 255, 92, 0.4);
  color: #d9ffb2;
}

.status.error {
  background: rgba(255, 89, 89, 0.16);
  border-color: rgba(255, 89, 89, 0.4);
  color: #ffd1d1;
}

.section.light .status {
  color: var(--charcoal);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 28, 0.7);
  color: var(--text-on-dark);
  font-family: inherit;
}

.section.light .input,
.section.light .select,
.section.light .textarea {
  background: #ffffff;
  color: var(--charcoal);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

details p {
  color: rgba(232, 238, 248, 0.7);
  font-size: 0.92rem;
}

.section.light details {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.section.light details p {
  color: rgba(17, 24, 39, 0.7);
}

.section.light .result-card {
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: none;
}

.section.light .result-card span {
  color: rgba(17, 24, 39, 0.6);
}

.section.light .note {
  color: rgba(17, 24, 39, 0.6);
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 248, 0.6);
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.page-hero {
  padding-top: 140px;
}

.audit-grid,
.roi-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.audit-card,
.result-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.result-card strong {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
}

.result-card span {
  color: rgba(232, 238, 248, 0.7);
}

.note {
  font-size: 0.85rem;
  color: rgba(232, 238, 248, 0.6);
}

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

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

@media (max-width: 1024px) {
  .card-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid,
  .roi-grid,
  .conversion-grid,
  .audit-grid,
  .roi-tool-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    flex-wrap: wrap;
  }

  .portfolio-card-inner {
    width: 100%;
  }

  .portfolio-preview-shell {
    width: min(980px, 94vw);
    height: min(680px, 86vh);
  }
}

@media (max-width: 768px) {
  .card-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .nav-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding-top: 120px;
  }

  .glass-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .portfolio-card {
    min-height: 0;
  }

  .portfolio-description {
    min-height: 0;
  }

  .portfolio-preview-shell {
    height: min(640px, 88vh);
  }

  .portfolio-preview-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-preview-frame {
    padding: 12px;
  }

  .portfolio-preview-frame::after {
    inset: 12px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .portfolio-card img {
    animation: none;
  }

  .portfolio-live {
    transition: none;
  }
}
