/* ===== CoxyTheBuilder — Premium Design System ===== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== Design Tokens ===== */
:root {
  /* Backgrounds */
  --navy:        #0a1628;
  --navy-light:  #111f33;
  --navy-card:   rgba(255,255,255,0.035);
  --navy-deep:   #060e1a;
  --glass:       rgba(255,255,255,0.05);
  --glass-border:rgba(255,255,255,0.09);

  /* Accents */
  --teal:        #2a9d8f;
  --teal-light:  #35b8a8;
  --teal-glow:   rgba(42,157,143,0.22);
  --teal-subtle: rgba(42,157,143,0.08);
  --amber:       #e9c46a;

  /* Text */
  --text:        #f0f4f8;
  --text2:       rgba(240,244,248,0.65);
  --text3:       rgba(240,244,248,0.38);
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  /* Semantic */
  --bg:          var(--navy);
  --bg2:         var(--navy-light);
  --card-bg:     var(--navy-card);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Radii */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-teal:0 8px 32px rgba(42,157,143,0.25);

  /* Transitions */
  --transition:  0.2s ease;
  --transition-md: 0.35s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg:          #f2f5f9;
  --bg2:         #ffffff;
  --card-bg:     #ffffff;
  --navy-card:   rgba(0,0,0,0.03);
  --glass:       rgba(255,255,255,0.7);
  --glass-border:rgba(0,0,0,0.08);
  --text:        #0a1628;
  --text2:       rgba(10,22,40,0.62);
  --text3:       rgba(10,22,40,0.38);
  --line:        rgba(10,22,40,0.08);
  --line-strong: rgba(10,22,40,0.14);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.1),  0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.72; transition: background 0.3s, color 0.3s; }

/* ===== Keyframes ===== */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  100% { transform: translateX(200%)  skewX(-12deg); }
}
@keyframes fade-up {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Layout ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

/* ===== Typography ===== */
h1,.h1 { font-family:var(--font-display); font-size:clamp(2rem,4vw,3rem); font-weight:700; line-height:1.12; letter-spacing:-0.025em; }
h2,.h2 { font-family:var(--font-display); font-size:clamp(1.5rem,3vw,2.25rem); font-weight:600; line-height:1.18; letter-spacing:-0.015em; }
h3,.h3 { font-family:var(--font-body); font-size:1.125rem; font-weight:600; line-height:1.4; }

.display {
  font-family:var(--font-display);
  font-size: clamp(2.5rem,5vw,4rem);
  font-weight:700; line-height:1.08; letter-spacing:-0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 60%, #6ee7df 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-label.with-dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease infinite;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.75;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.825rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-12deg);
  transition: none;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-primary:hover::after { animation: shimmer 0.65s ease; }

.btn-outline {
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-subtle); transform: translateY(-2px); }

.btn-ghost { color: var(--teal); padding: 0; font-size: 0.9375rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3em; position: relative; }
.btn-ghost::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1.5px; background: var(--teal); transition: width 0.25s ease; }
.btn-ghost:hover::after { width: 100%; }

.btn-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-md);
  position: relative;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ===== Browser Frame ===== */
.browser-frame {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  background: var(--navy-deep);
  position: relative;
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.browser-frame__dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.browser-frame__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-frame__dot:nth-child(1) { background: #ff5f57; }
.browser-frame__dot:nth-child(2) { background: #febc2e; }
.browser-frame__dot:nth-child(3) { background: #28c840; }

.browser-frame__url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text3);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame__content {
  position: relative;
  overflow: hidden;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(10,22,40,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] .header.scrolled { background: rgba(242,245,249,0.9); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 0.125rem; }
.nav a {
  padding: 0.4rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active { background: rgba(255,255,255,0.06); }
[data-theme="light"] .nav a.active { background: rgba(0,0,0,0.06); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); background: rgba(255,255,255,0.08); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.08); }
.theme-toggle svg { display: none; }
.theme-toggle svg.active { display: block; }

.menu-btn { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--text); border-radius: var(--radius-sm); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: min(320px,85vw); height: 100vh;
  background: var(--bg2); border-left: 1px solid var(--line);
  z-index: 200; display: flex; flex-direction: column;
  padding: 2rem 1.5rem; gap: 0.375rem;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1); overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 0.8rem 1rem; font-size: 1rem; font-weight: 500; color: var(--text2); border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
[data-theme="light"] .mobile-nav a:hover { background: rgba(0,0,0,0.06); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 150; backdrop-filter: blur(4px); }
.mobile-nav-overlay.open { display: block; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 7rem; padding-bottom: 5rem;
  position: relative; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-bg-orb-1 {
  width: 600px; height: 600px;
  top: -15%; right: -8%;
  background: radial-gradient(ellipse, rgba(42,157,143,0.14) 0%, transparent 65%);
}
.hero-bg-orb-2 {
  width: 500px; height: 500px;
  bottom: -20%; left: -5%;
  background: radial-gradient(ellipse, rgba(42,100,200,0.08) 0%, transparent 65%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(42,157,143,0.3);
  border-radius: 100px;
  background: rgba(42,157,143,0.07);
}
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text2);
  line-height: 1.78;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

/* ===== Hero trust row (under CTAs) ===== */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem;
  margin-top: 2rem;
  list-style: none;
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text2); font-weight: 500;
}
.hero-trust-check {
  width: 16px; height: 16px;
  color: var(--teal); flex-shrink: 0;
  padding: 3px;
  background: rgba(42,157,143,0.12);
  border-radius: 50%;
  box-sizing: content-box;
}

/* ===== Hero visual — real-work composition: badge + clickable screenshot + Result card ===== */
.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-visual-badge {
  position: absolute;
  top: -10px; left: 18px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--teal); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(42,157,143,0.45);
}

.hero-visual-frame {
  position: relative; display: block;
  width: 100%; max-width: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(42,157,143,0.16),
    0 0 0 1px rgba(42,157,143,0.18) inset;
  animation: float 5s ease-in-out infinite;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
}
.hero-visual-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    0 0 100px rgba(42,157,143,0.25),
    0 0 0 1px rgba(42,157,143,0.28) inset;
}
.hero-visual-frame:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.hero-visual-bar {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.65rem 0.875rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
}
.hero-visual-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.hero-visual-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.hero-visual-url {
  font-size: 0.78rem; color: var(--text2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-visual-frame img {
  width: 100%; height: auto;
  max-height: 360px;
  object-fit: cover; object-position: top;
  display: block;
}

.hero-visual-card {
  position: absolute;
  right: -18px; bottom: -28px;
  width: 250px;
  background: rgba(13, 22, 38, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(42,157,143,0.25);
  border-radius: var(--radius-md);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  padding: 0.95rem 1.1rem;
  z-index: 2;
}
.hero-visual-card-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}
.hero-visual-card-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.hero-visual-card-rows > div {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 0.78rem;
}
.hero-visual-card-rows span { color: var(--text3); }
.hero-visual-card-rows strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-visual-card-rows strong.ok {
  color: var(--teal);
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0.625rem; }

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md), background var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--teal-subtle) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-md);
  pointer-events: none;
}
.service-card:hover { border-color: rgba(42,157,143,0.35); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42,157,143,0.15) 0%, rgba(42,157,143,0.06) 100%);
  border: 1px solid rgba(42,157,143,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem;
  color: var(--teal);
  margin-bottom: 1.375rem;
  transition: background var(--transition), border-color var(--transition);
}
.service-icon svg { width: 22px; height: 22px; display: block; }
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(42,157,143,0.25) 0%, rgba(42,157,143,0.1) 100%);
  border-color: rgba(42,157,143,0.4);
}
.service-card h3 { margin-bottom: 0.625rem; }
.service-card p { font-size: 0.9375rem; color: var(--text2); line-height: 1.68; }

/* ===== Value Props ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.value-item {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card-bg);
  position: relative;
}
.value-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.45;
}
.value-item h3 { margin-bottom: 0.625rem; }
.value-item p { font-size: 0.9375rem; color: var(--text2); line-height: 1.68; }

/* ===== Work / Portfolio Cards ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  border-color: rgba(42,157,143,0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* Browser frame as work card image area */
.work-card .browser-frame {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--line);
}
.work-card .browser-frame__content {
  aspect-ratio: 16/9;
  background: var(--navy-deep);
  overflow: hidden;
}
.work-card .browser-frame__content img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Fallback for non-browser-frame image areas */
.work-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work-card:hover .work-card-img img { transform: scale(1.03); }

.work-card-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.625rem; padding: 1.5rem; text-align: center;
}
.work-placeholder-icon { font-size: 2.25rem; opacity: 0.35; }
.work-card-placeholder span { font-size: 0.8125rem; color: var(--text3); }

/* CSS preview for Arborea card inside browser frame */
.calc-preview {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.calc-preview-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
}
.calc-preview-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.45rem 0.75rem;
}
.calc-preview-field-label { font-size: 0.7rem; color: var(--text3); }
.calc-preview-field-val { font-size: 0.75rem; font-weight: 600; color: var(--text2); }
.calc-preview-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(42,157,143,0.1);
  border: 1px solid rgba(42,157,143,0.2);
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
}
.calc-preview-result-label { font-size: 0.7rem; color: var(--teal); font-weight: 600; }
.calc-preview-result-val { font-size: 0.875rem; font-weight: 700; color: var(--teal); font-family: var(--font-display); }

.work-card-body { padding: 1.375rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.work-card-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.work-card h3 { margin-bottom: 0.625rem; font-size: 1.0625rem; }
.work-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.65; margin-bottom: 1rem; flex: 1; }

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.work-card-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text3);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* ===== Process Steps ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 23px; left: calc(12.5% + 24px); right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,157,143,0.3), rgba(42,157,143,0.3), transparent);
  z-index: 0;
}
.process-step { position: relative; text-align: center; }
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42,157,143,0.15) 0%, rgba(42,157,143,0.05) 100%);
  border: 1.5px solid rgba(42,157,143,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--teal);
  margin: 0 auto 1.375rem;
  position: relative; z-index: 1;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.process-step:hover .process-num { box-shadow: 0 0 0 4px var(--teal-subtle); border-color: var(--teal); }
.process-step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.process-step p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

/* ===== Products (Homepage) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: rgba(42,157,143,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.product-card-img {
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 72px; height: 72px;
  object-fit: contain;
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-body { padding: 0 1.25rem 1.375rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.product-card p { font-size: 0.8375rem; color: var(--text2); line-height: 1.6; margin-bottom: 0.875rem; flex: 1; }
.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.875rem;
}
.product-price-from { font-size: 0.7rem; font-weight: 500; color: var(--text3); display: block; margin-bottom: 0.125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.product-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.product-links a {
  font-size: 0.775rem; font-weight: 600; color: var(--teal);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(42,157,143,0.25);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}
.product-links a:hover { background: var(--teal-subtle); border-color: var(--teal); }

/* Products page - full cards */
.products-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-full-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
  display: flex;
  flex-direction: column;
}
.product-full-card:hover { border-color: rgba(42,157,143,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.product-full-header {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.product-full-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.product-full-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-full-icon img { width: 100%; height: 100%; object-fit: contain; }

.product-full-title { flex: 1; }
.product-full-title h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.product-full-title .product-price { margin-bottom: 0; }

.product-full-body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.product-full-body p { font-size: 0.9375rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }

.product-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.25rem; }
.product-tag {
  font-size: 0.7rem; font-weight: 500; color: var(--text3);
  padding: 0.225rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.product-full-links { display: flex; gap: 0.75rem; }
.product-full-links a {
  flex: 1; text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.product-full-links a.btn-primary { background: var(--teal); color: #fff; }
.product-full-links a.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); }
.product-full-links a.btn-outline-sm {
  border: 1.5px solid var(--line-strong);
  color: var(--text2);
}
.product-full-links a.btn-outline-sm:hover { border-color: var(--teal); color: var(--teal); }

/* ===== CTA Section ===== */
.cta-section { padding: 6rem 0; }
.cta-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top center, rgba(42,157,143,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { color: var(--text2); margin-bottom: 2rem; font-size: 1.0625rem; }

/* ===== Footer ===== */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,157,143,0.4), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo { margin-bottom: 0.875rem; }
.footer-brand .logo img { height: 44px; width: auto; }
.footer-tagline { font-size: 0.875rem; color: var(--text3); max-width: 240px; line-height: 1.65; }

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.125rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--text2); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--teal); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: 0.8375rem; color: var(--text3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8375rem; color: var(--text3); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text2); }

/* ===== Page Hero (inner pages) ===== */
.page-hero { padding-top: 9rem; padding-bottom: 4.5rem; border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 680px; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.125rem; color: var(--text2); line-height: 1.75; }

/* ===== Contact Form ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}
.form-group { margin-bottom: 1.375rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text2); margin-bottom: 0.5rem; }
.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.925rem 1rem;
  background: var(--card-bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.14);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
[data-theme="dark"] .form-group input:not([type="checkbox"]),
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select { background: rgba(255,255,255,0.04); }
.form-group select option { background: #111f33; color: #f0f4f8; }
[data-theme="light"] .form-group select option { background: #fff; color: #0a1628; }

.contact-meta {
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-meta h3 { margin-bottom: 1.375rem; font-size: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1.25rem; }
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--teal-subtle);
  border: 1px solid rgba(42,157,143,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 0.8375rem; color: var(--text2); line-height: 1.6; }

/* ===== About Page ===== */
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 4rem;
  align-items: start;
}
.about-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.about-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, rgba(42,157,143,0.3) 100%);
  border: 2px solid rgba(42,157,143,0.3);
  box-shadow: 0 0 0 6px rgba(42,157,143,0.08), var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-body h2 { margin-bottom: 1.25rem; }
.about-body p { color: var(--text2); line-height: 1.8; margin-bottom: 1.25rem; }
.about-body p:last-of-type { margin-bottom: 0; }

.about-sidebar .card { margin-bottom: 1.25rem; padding: 1.5rem; }
.about-sidebar .card:last-child { margin-bottom: 0; }
.about-sidebar .card h3 { font-size: 0.9375rem; margin-bottom: 1rem; }
.about-checklist { display: flex; flex-direction: column; gap: 0.5rem; }
.about-checklist li {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; color: var(--text2);
}
.about-checklist li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ===== Services page ===== */
.services-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-full-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition-md);
}
.service-full-card:hover { border-color: rgba(42,157,143,0.3); box-shadow: var(--shadow-md); }
.service-full-card .service-icon { margin-bottom: 1.25rem; }
.service-full-card h3 { font-size: 1.125rem; margin-bottom: 0.625rem; }
.service-full-card .service-desc { font-size: 0.9375rem; color: var(--text2); line-height: 1.65; margin-bottom: 1.25rem; }
.service-outcomes { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.service-outcomes li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9rem; color: var(--text2); }
.service-outcomes li::before { content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 0.05em; }

/* ===== Legal ===== */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 1.375rem; margin-top: 3rem; margin-bottom: 1rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--line); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 0.9375rem; color: var(--text2); line-height: 1.8; margin-bottom: 0.875rem; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-meta { font-size: 0.875rem; color: var(--text3); margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }

/* ===== Browser frame image (extracted from inline styles) ===== */
.browser-frame__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--object-position, top left);
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
}
.testimonial-card:hover {
  border-color: rgba(42,157,143,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.testimonial-star { width: 18px; height: 18px; color: rgba(255,255,255,0.15); }
.testimonial-star.filled { color: var(--amber); }
[data-theme="light"] .testimonial-star { color: rgba(10,22,40,0.12); }
[data-theme="light"] .testimonial-star.filled { color: #d4a437; }
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.25rem;
  flex: 1;
}
.testimonial-quote::before { content: '\201C'; color: var(--teal); font-size: 1.5rem; margin-right: 0.15rem; vertical-align: -0.15em; }
.testimonial-quote::after  { content: '\201D'; color: var(--teal); font-size: 1.5rem; margin-left: 0.15rem; vertical-align: -0.15em; }
.testimonial-meta { display: flex; flex-direction: column; gap: 0.625rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.testimonial-author strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.testimonial-business { display: block; font-size: 0.8125rem; color: var(--text2); margin-top: 0.125rem; }
.testimonial-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.testimonial-product, .testimonial-source {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 100px;
  background: var(--teal-subtle);
  color: var(--teal);
  border: 1px solid rgba(42,157,143,0.2);
}
.testimonial-source { background: rgba(255,255,255,0.04); color: var(--text2); border-color: var(--line-strong); }

/* ===== Star rating input ===== */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 0.25rem; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label {
  cursor: pointer; padding: 0.25rem;
  color: rgba(255,255,255,0.18);
  transition: color var(--transition), transform 0.15s ease;
}
[data-theme="light"] .rating-input label { color: rgba(10,22,40,0.18); }
.rating-input label svg { width: 32px; height: 32px; display: block; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--amber); }
[data-theme="light"] .rating-input input:checked ~ label,
[data-theme="light"] .rating-input label:hover,
[data-theme="light"] .rating-input label:hover ~ label { color: #d4a437; }
.rating-input label:hover { transform: scale(1.08); }
.rating-input input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ===== Form checkbox ===== */
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox input[type="checkbox"] {
  width: 1.125rem; height: 1.125rem;
  flex-shrink: 0; margin-top: 0.2rem;
  accent-color: var(--teal);
  cursor: pointer;
}
.form-checkbox label { margin-bottom: 0; font-size: 0.9rem; color: var(--text2); font-weight: 400; line-height: 1.55; cursor: pointer; }

/* ===== FAQ accordion ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: rgba(42,157,143,0.3); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 2px solid var(--text2);
  border-bottom: 2px solid var(--text2);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--teal); }
.faq-answer { padding: 0 1.5rem 1.5rem; color: var(--text2); font-size: 0.9375rem; line-height: 1.72; }
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===== About: social links + response pill ===== */
.about-social-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem;
}
.about-social-links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text2);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.about-social-links a:hover { color: var(--teal); border-color: rgba(42,157,143,0.4); background: var(--teal-subtle); }
.about-social-links svg { width: 14px; height: 14px; }
.response-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--teal-subtle);
  border: 1px solid rgba(42,157,143,0.25);
  border-radius: 100px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.response-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 0 var(--teal-glow);
  animation: pulse-glow 2.2s ease-in-out infinite;
}

/* ===== Industries line ===== */
.industries-line {
  margin-top: 2rem; font-size: 0.9375rem; color: var(--text3);
  text-align: center; line-height: 1.65;
}
.industries-line strong { color: var(--text2); font-weight: 500; }

/* ===== Case study result row ===== */
.case-study-result {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: var(--teal-subtle);
  border: 1px solid rgba(42,157,143,0.22);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem; color: var(--text);
}
.case-study-result strong { color: var(--teal); }

/* ===== Guarantee callout ===== */
.guarantee-callout {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 1rem;
  background: var(--teal-subtle);
  border: 1px solid rgba(42,157,143,0.25);
  border-radius: 100px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--teal);
  margin-top: 1rem;
}
.guarantee-callout svg { width: 16px; height: 16px; }

/* ===== Keyboard focus on cards (accessibility) ===== */
.card:focus-within,
.work-card:focus-within,
.service-card:focus-within,
.product-card:focus-within,
.product-full-card:focus-within,
.testimonial-card:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ===== Expanded teal hover shadow across feature cards ===== */
.work-card:hover, .product-card:hover, .product-full-card:hover {
  box-shadow: var(--shadow-md), 0 8px 32px rgba(42,157,143,0.12);
}

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .about-layout { grid-template-columns: 200px 1fr; }
  .about-sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2,1fr); }
  .products-grid     { grid-template-columns: repeat(2,1fr); }
  .contact-layout    { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .footer-brand      { grid-column: 1/-1; }
}

@media (max-width: 960px) {
  .hero-inner  { grid-template-columns: 1fr; gap: 3rem; }
  /* Stack children vertically — prevents the floating card from sitting beside the frame */
  .hero-visual {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    margin-bottom: 2.5rem;
    padding-top: 0.75rem; /* room for the badge that hangs above the frame */
    width: 100%;
    max-width: 100%;
  }
  .hero-visual-frame {
    max-width: 100%;
    width: 100%;
  }
  .hero-visual-card {
    position: static;
    right: auto; bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
    box-sizing: border-box;
  }
  .hero-visual-badge { left: 12px; top: -8px; }
  .value-grid  { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-steps::before { display: none; }
  .work-grid   { grid-template-columns: 1fr 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .products-full-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-avatar-col { flex-direction: row; align-items: center; gap: 2rem; }
  .about-avatar { width: 120px; height: 120px; font-size: 2.5rem; }
  .about-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: flex; }
  /* Horizontal navbar logo — smaller on mobile so it fits alongside the menu button */
  .logo img { height: 32px; width: auto; }
  .footer-brand .logo img { height: 38px; width: auto; }
  .hero-trust { gap: 0.5rem 1.25rem; margin-top: 1.75rem; }
  .hero-trust li { font-size: 0.8125rem; }
  .hero-visual-card { width: 100%; }
  .hero-visual-frame img { max-height: 260px; }
  .section { padding: 4rem 0; }
  .section-sm { padding: 3rem 0; }
  /* Hero padding earlier */
  .hero { padding-top: 5.25rem; }
  .hero-sub { font-size: 1.0625rem; }
  .section-intro { font-size: 1.0625rem; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr !important; }
  .process-steps { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-sidebar { grid-template-columns: 1fr; }
  .about-avatar-col { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .about-avatar { width: 120px; height: 120px; font-size: 2.5rem; }
  .cta-box { padding: 2.5rem 1.75rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .rating-input label svg { width: 28px; height: 28px; }
}

@media (max-width: 640px) {
  /* Products: single column earlier */
  .products-grid { grid-template-columns: 1fr; }
  /* Product card image: 16:9 matches screenshot ratio */
  .product-card-img { aspect-ratio: 16/9; }
  /* Product row cards: stack vertically */
  .card[style*="display:flex;align-items:center"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
    flex-wrap: wrap !important;
  }
  .card[style*="display:flex;align-items:center"] > div:last-child {
    align-self: flex-start;
    flex-shrink: 1 !important;
  }
  /* Work card strong labels */
  .work-card-body strong { display: block; margin-bottom: 0.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.125rem; }
  .hero { padding-top: 5.5rem; padding-bottom: 3rem; }
  .hero-sub { font-size: 1rem; }
  /* Hide the <br> in hero headline — flows better on small screens */
  .hero-headline br { display: none; }
  /* CTA buttons stack full-width */
  .btn-group { flex-direction: column; gap: 0.75rem; }
  .btn-group .btn { width: 100%; justify-content: center; }
  /* Reduce browser frame image height on phones */
  .browser-frame__content { aspect-ratio: 4/3; }
  .work-card-img { aspect-ratio: 4/3; }
  .footer-legal { flex-direction: column; gap: 0.75rem; }
  .hero-visual-frame { animation: none; }
  .hero-visual-card { padding: 0.8rem 0.95rem; }
  .hero-trust li:last-child { display: none; }
  /* Tighten section intro */
  .section-intro { font-size: 0.9625rem; }
}
