/* ─────────────────────────────────────────────────────────
   HOME.CSS — FrearBros Labs main site styles (index.html)
───────────────────────────────────────────────────────── */

:root {
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59,130,246,0.15);
  --accent-2: #8b5cf6;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --max-w: 1200px;
  --section-pad: 120px;
}

/* ─── HOME NAV OVERRIDE ───────────────────────────────── */
nav { background: rgba(10,10,10,0.7); }
.nav-logo img { height: 36px; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 40px 180px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../original-images/frearbros-header-2560w.jpg');
  background-size: cover;
  background-position: center 25%;
  opacity: 0.22;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,0.08) 0%, transparent 70%),
              linear-gradient(to bottom, rgba(10,10,10,0) 60%, rgba(10,10,10,1) 100%);
  z-index: 1;
}

.hero-grid {
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #b8b8b8;
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 400;
  text-shadow: 0 1px 16px rgba(0,0,0,0.9);
  line-height: 1.7;
}

.hero-actions {
  justify-content: center;
  gap: 16px;
}

.btn-primary {
  font-size: 0.95rem;
  padding: 14px 28px;
  box-shadow: 0 0 30px rgba(59,130,246,0.25);
}

.btn-primary:hover { box-shadow: 0 8px 40px rgba(59,130,246,0.4); }

.btn-secondary {
  font-size: 0.95rem;
  padding: 14px 28px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── STATS STRIP ─────────────────────────────────────── */
.stats-strip { padding: 0 40px; overflow-x: hidden; }

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  padding-bottom: 0.05em;
  margin-bottom: 8px;
}

.stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ─── SECTION LAYOUT ──────────────────────────────────── */
section { padding: var(--section-pad) 40px; overflow-x: hidden; }

.section-label::before { width: 24px; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.section-desc { max-width: 540px; font-size: 1.05rem; }

/* ─── SERVICES ────────────────────────────────────────── */
#services { background: var(--dark); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.4rem;
}

.service-icon.blue { background: rgba(59,130,246,0.12); }
.service-icon.purple { background: rgba(139,92,246,0.12); }
.service-icon.teal { background: rgba(20,184,166,0.12); }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.service-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; line-height: 1.65; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
}

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

/* ─── PRODUCTS ────────────────────────────────────────── */
#products { background: var(--black); }

.products-header { text-align: center; max-width: 600px; margin: 0 auto 72px; }
.products-header .section-label { justify-content: center; }

.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.product-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.product-card:hover .product-image { opacity: 0.9; }

.product-body { padding: 36px; }

.product-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.product-tag.platform { background: rgba(59,130,246,0.12); color: var(--accent-bright); }
.product-tag.apps { background: rgba(139,92,246,0.12); color: #a78bfa; }

.product-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.product-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 24px; }

.product-features { display: flex; flex-direction: column; gap: 8px; }

.product-features li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
}

.product-features li::before {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: rgba(59,130,246,0.1);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

.app-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  min-width: 0; /* prevent grid blowout */
}

.app-pill-name { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-pill-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ─── PRODUCTS — single card override ────────────────── */
.products-grid--single { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
.product-card--wide .product-image { height: 280px; }

/* ─── iOS APPS SECTION ────────────────────────────────── */
#apps { background: var(--dark); }

.apps-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}

.apps-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ─── App card ─────────────────────────────────────────── */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--app-glow, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}

.app-card:hover {
  border-color: var(--app-accent, rgba(59,130,246,0.35));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.app-card:hover::before { opacity: 1; }

.app-card--coming {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255,255,255,0.08);
}

.app-card--coming:hover {
  border-color: rgba(255,255,255,0.15);
  transform: none;
  box-shadow: none;
}

/* App card header */
.app-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.app-card-icon--placeholder {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
  flex-shrink: 0;
}

.app-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.app-card-category {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-card-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.app-card:hover .app-card-arrow {
  color: var(--white);
  transform: translateX(4px);
}

/* App card body */
.app-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.app-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.app-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #aaa;
  font-weight: 500;
}

.app-card-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-accent, var(--gradient));
  flex-shrink: 0;
}

/* Coming soon body */
.app-card-coming-body {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: auto;
  padding-top: 8px;
}

.coming-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ─── App card mini mockup ───────────────────────────── */
.app-card-mockup {
  margin-top: 4px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acm-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  padding: 0 2px;
}

.acm-icons { letter-spacing: -2px; }

.acm-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  padding: 2px 0;
}

.acm-seg {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 2px;
  font-size: 0.6rem;
  font-weight: 600;
}

.acm-seg span {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 6px;
  color: var(--muted);
}

.acm-seg-active {
  background: rgba(255,255,255,0.1) !important;
  color: var(--white) !important;
}

.acm-ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.acm-ball-row,
.acm-racket-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 10px;
}

.acm-ball-info { flex: 1; min-width: 0; }
.acm-ball-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acm-ball-stat {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 1px;
}

.acm-badge {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.acm-badge.fresh  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
.acm-badge.good   { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.acm-badge.dead   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

/* RacketLog mockup specifics */
.acm-rl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 2px;
}

.acm-rl-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
}

.acm-rl-plus {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1;
}

.acm-chips {
  display: flex;
  gap: 5px;
}

.acm-chip {
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.acm-chip-active {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}

/* WDWMAGIC mockup specifics */
.wdwmagic-mockup { gap: 6px; padding: 10px 10px 0; }

.acm-wdw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 4px;
}

.acm-wdw-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.acm-wdw-appicon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
}

.acm-wdw-logo {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.acm-wdw-date {
  font-size: 0.48rem;
  color: var(--muted);
}

.acm-wdw-bell { font-size: 0.75rem; color: var(--muted); }

.acm-wdw-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #60a5fa;
  padding: 0 2px 2px;
  letter-spacing: -0.02em;
}

/* Hero image */
.acm-wdw-hero-img {
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2d4a6e 0%, #1a3a5c 50%, #3d6b4a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.acm-wdw-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.75) 100%);
}

.acm-wdw-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 6px 8px;
}

.acm-wdw-hero-headline {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.acm-wdw-hero-meta {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* Thumbnail grid */
.acm-wdw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.acm-wdw-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acm-wdw-thumb-img {
  height: 44px;
  border-radius: 8px;
}

.acm-wdw-thumb-blue  { background: linear-gradient(135deg, #1a3a6e, #2d5a9e); }
.acm-wdw-thumb-teal  { background: linear-gradient(135deg, #0d3d3d, #1a6b5a); }

.acm-wdw-thumb-text {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.acm-wdw-thumb-meta {
  font-size: 0.46rem;
  color: var(--muted);
}

/* Tab bar */
.acm-wdw-tabbar {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 4px -10px 0;
  padding: 6px 4px 8px;
}

.acm-wdw-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.42rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.acm-wdw-tab-icon { font-size: 0.75rem; line-height: 1; }

.acm-wdw-tab-active { color: #60a5fa; }

/* SlushiCalc mockup specifics */
.slushicalc-mockup { gap: 5px; padding: 10px 10px 0; }

.acm-sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 2px;
}

.acm-sc-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
}

.acm-sc-units {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2px;
  gap: 1px;
}

.acm-sc-unit {
  font-size: 0.44rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
  color: var(--muted);
}

.acm-sc-unit-active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.acm-sc-gauge-area {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 8px;
}

.acm-sc-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acm-sc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.acm-sc-stat-label {
  font-size: 0.38rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.acm-sc-stat-val {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.acm-sc-stat-val.freeze { color: #22d3ee; }
.acm-sc-stat-val.sugar  { color: #34d399; }
.acm-sc-stat-val.abv    { color: #22d3ee; }

.acm-sc-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--white);
  padding: 0 2px;
}

.acm-sc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.acm-sc-ing-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 6px 7px;
}

.acm-sc-ing-name {
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--white);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acm-sc-ing-tags {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.acm-sc-tag {
  font-size: 0.4rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 20px;
}

.acm-sc-tag.abv  { background: rgba(139,92,246,0.2); color: #a78bfa; }
.acm-sc-tag.brix { background: rgba(34,211,238,0.15); color: #22d3ee; }

.acm-sc-ing-amt {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

/* SlushiCalc tab bar */
.acm-sc-tabbar {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2px -10px 0;
  padding: 5px 4px 8px;
  background: rgba(0,0,0,0.2);
}

.acm-sc-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.38rem;
  font-weight: 600;
  color: var(--muted);
}

.acm-sc-tab-icon { font-size: 0.7rem; line-height: 1; }
.acm-sc-tab.active { color: #22d3ee; }

/* ─── WEBSITES ────────────────────────────────────────── */
#websites { padding: var(--section-pad) 0; }

.websites-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}
.websites-header .section-desc { max-width: 360px; text-align: right; }

.websites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.web-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.web-card:hover {
  transform: translateY(-4px);
  border-color: var(--web-accent);
  box-shadow: 0 8px 40px var(--web-glow);
}

/* Browser chrome */
.web-card-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #161616;
  border-bottom: 1px solid var(--border);
}
.web-card-dots { display: flex; gap: 5px; flex-shrink: 0; }
.web-card-dot { width: 10px; height: 10px; border-radius: 50%; background: #2e2e2e; }
.web-card-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  background: #111;
  padding: 4px 12px;
  border-radius: 6px;
}
.web-card-ext { font-size: 0.8rem; color: #444; flex-shrink: 0; }

.web-card-screen { height: 210px; overflow: hidden; position: relative; }

/* Card info */
.web-card-info { padding: 20px 24px 24px; }
.web-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.web-card-name { font-size: 1.05rem; font-weight: 700; color: var(--white); }

.web-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.web-badge.live { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.web-badge.soon { background: rgba(6,182,212,0.1); color: #06b6d4; border: 1px solid rgba(6,182,212,0.25); }

.web-card-info p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.web-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.web-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: #666;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}

/* Screenshot image */
.web-card-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* WDWMAGIC screen */
.wdwmagic-screen { background: #0a0f1c; }
.wm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #070c18;
  border-bottom: 1px solid rgba(59,130,246,0.15);
}
.wm-logo { font-size: 0.75rem; font-weight: 800; color: #fff; letter-spacing: 0.06em; }
.wm-nav-links { display: flex; gap: 14px; font-size: 0.62rem; color: #4b5563; }
.wm-hero {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(59,130,246,0.08);
  background: linear-gradient(180deg, #0d1421 0%, #0a0f1c 100%);
}
.wm-tag { font-size: 0.58rem; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.wm-headline { font-size: 0.75rem; font-weight: 700; color: #e2e8f0; line-height: 1.4; }
.wm-articles { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.wm-article { display: flex; align-items: center; gap: 8px; font-size: 0.63rem; color: #6b7280; }
.wm-dot { width: 4px; height: 4px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; }

/* SlushiCalc.com screen */
.slushicalc-web-screen {
  background: #060c12;
  display: flex;
  flex-direction: column;
}
.wsc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #040810;
  border-bottom: 1px solid rgba(6,182,212,0.12);
}
.wsc-logo { font-size: 0.75rem; font-weight: 700; color: #06b6d4; }
.wsc-nav-badge {
  font-size: 0.58rem;
  font-weight: 600;
  color: #0891b2;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 2px 7px;
  border-radius: 10px;
}
.wsc-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 20px;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(6,182,212,0.07) 0%, transparent 70%);
}
.wsc-headline { font-size: 0.85rem; font-weight: 800; color: #f0f9ff; line-height: 1.35; margin-bottom: 8px; }
.wsc-sub { font-size: 0.62rem; color: #4b6070; margin-bottom: 14px; }
.wsc-btn {
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ─── BESPOKE SOFTWARE ────────────────────────────────── */
#bespoke { background: var(--surface); padding: var(--section-pad) 0; }

.bespoke-inner {
  border: 1px solid rgba(201,160,64,0.2);
  border-radius: 24px;
  padding: 56px 60px;
  background: linear-gradient(135deg, rgba(201,160,64,0.05) 0%, transparent 55%);
  position: relative;
  overflow: hidden;
}
.bespoke-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,160,64,0.5), transparent);
}

.bespoke-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}
.bespoke-confidential {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.bespoke-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.bespoke-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.bespoke-headline span {
  background: linear-gradient(135deg, #c9a040, #e8c870);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bespoke-desc {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 540px;
}

.bespoke-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.bespoke-metric {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}
.bespoke-metric:last-child { border-right: none; }
.bespoke-metric-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c9a040;
  margin-bottom: 5px;
}
.bespoke-metric-label {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.bespoke-panel {
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.bespoke-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9a040;
  margin-bottom: 20px;
}
.bespoke-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.bespoke-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.4;
}
.bespoke-feature-list li:last-child { border-bottom: none; }
.bespoke-feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a040;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .bespoke-content { grid-template-columns: 1fr; gap: 40px; }
  .bespoke-inner { padding: 40px 32px; }
}
@media (max-width: 768px) {
  .bespoke-metrics { grid-template-columns: 1fr 1fr; }
  .bespoke-metric:nth-child(2) { border-right: none; }
  .bespoke-metric:nth-child(3) { border-top: 1px solid var(--border); }
  .bespoke-metric:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .bespoke-inner { padding: 32px 24px; }
  .bespoke-label-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── HOW WE WORK ─────────────────────────────────────── */
#how { background: var(--surface); position: relative; overflow: hidden; }

.how-bg {
  position: absolute;
  inset: 0;
  background-image: url('../original-images/frearbros-ideaboard-2560w.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}

.how-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.how-list { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }

.how-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s;
}

.how-item:hover { border-color: rgba(59,130,246,0.25); }

.how-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-bright);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.how-item-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.how-item-content p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.how-visual { display: flex; flex-direction: column; gap: 16px; }

.how-visual-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.75;
  border: 1px solid var(--border);
}

/* ─── WHO WE WORK WITH ────────────────────────────────── */
#who { background: var(--dark); }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }

.who-card {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.who-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.who-icon { font-size: 2rem; margin-bottom: 20px; display: block; }
.who-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--white); }
.who-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ─── ABOUT ───────────────────────────────────────────── */
#about { background: var(--black); position: relative; overflow: hidden; }

.about-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  top: 50%;
  right: -300px; /* pushed further right so it doesn't cause scroll even if overflow clips */
  transform: translateY(-50%);
  pointer-events: none;
  max-width: 100vw;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text .section-desc { margin-bottom: 48px; }

.about-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.about-area {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--off-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.about-image-stack { position: relative; }

.about-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.75;
  border: 1px solid var(--border);
}

.about-img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 220px;
  height: 120px;
  object-fit: contain;
  object-position: center;
  padding: 20px 24px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

/* ─── CONTACT ─────────────────────────────────────────── */
#contact { background: var(--dark); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-detail { display: flex; gap: 20px; align-items: flex-start; }

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail-text a:hover { color: var(--accent-bright); }

.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}

.contact-form-wrapper h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.contact-form-wrapper p { font-size: 0.9rem; color: var(--muted); margin-bottom: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 24px; }

.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--off-white); letter-spacing: 0.02em; }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.form-group select option { background: var(--surface-2); }
.form-group textarea { min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 30px rgba(59,130,246,0.2);
}

.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── HOME FOOTER OVERRIDE ────────────────────────────── */
footer { padding: 48px 40px; }
.footer-logo img { height: 28px; }
.footer-links { gap: 28px; }

/* ─── DIVIDER ─────────────────────────────────────────── */
.divider { max-width: var(--max-w); margin: 0 auto; height: 1px; background: var(--border); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .how-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-image-stack { order: -1; }
  .about-img-accent { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .nav-links { display: none; }
  .stats-strip { padding: 0 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .apps-section-grid { grid-template-columns: 1fr; }
  .apps-section-header { flex-direction: column; align-items: flex-start; }
  .who-grid { grid-template-columns: 1fr; }
  .about-areas { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 32px 24px; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 60px) 20px 60px; }
  .services-header { flex-direction: column; align-items: flex-start; }
  section { padding: var(--section-pad) 20px; }
  footer { padding: 36px 20px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 16px; }
  .stat-num { font-size: 2rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-pill-name { white-space: normal; overflow: visible; text-overflow: unset; }
  .product-body { padding: 24px 20px; }
  .contact-form-wrapper { padding: 24px 16px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .products-header { margin-bottom: 40px; }
  .who-grid { margin-top: 40px; }
}

/* ─── MOBILE MENU ─────────────────────────────────────── */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to × when open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Backdrop */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 98;
  opacity: 0;
  pointer-events: none; /* never intercept taps when closed */
  transition: opacity 0.25s ease;
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Menu panel — slides down from nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 24px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none; /* never intercept taps when closed */
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu-links li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu-links li:last-child {
  border-bottom: none;
}

.mobile-menu-links a {
  display: block;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  letter-spacing: -0.01em;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

.mobile-menu-links li:last-child a {
  color: var(--accent-bright);
  font-weight: 700;
}

/* Show hamburger + menu on mobile */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu-backdrop { display: block; }
}
