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

:root {
  color-scheme: light;
  --bg: #f5f0e8;
  --surface: #ffffff;
  --surface-soft: #fff8e7;
  --surface-strong: #000000;
  --text: #111111;
  --text-muted: #444444;
  --outline: #000000;
  --primary: #ff0044;
  --secondary: #00aaff;
  --accent: #ffdd00;
  --pop-red: #e60012;
  --pop-blue: #0066ff;
  --pop-green: #00cc44;
  --border: #000000;
  --shadow: 6px 6px 0 #000000;
  --shadow-sm: 3px 3px 0 #000000;
  --radius: 24px;
  --radius-sm: 16px;

  /* Pop Art pattern definitions */
  --ben-day: radial-gradient(circle, #000000 1.2px, transparent 1.5px);
  --halftone: radial-gradient(circle, var(--primary) 2px, transparent 2.5px);
  --speed-lines: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.04) 6px,
    rgba(0,0,0,0.04) 8px
  );
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Global Ben-Day dot texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--ben-day);
  background-size: 8px 8px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 9999;
}

/* Comic speed lines background accent */
body::after {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100vh;
  background: var(--speed-lines);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.15), transparent 70%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.15), transparent 70%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container,
.container-wide,
.container-narrow,
.container-slim {
  margin: 0 auto;
  padding: 0 24px;
}

.container { max-width: 1120px; }
.container-wide { max-width: 1200px; }
.container-narrow { max-width: 960px; }
.container-slim { max-width: 760px; }

.skip-link {
  position: absolute;
  top: -120%;
  left: 20px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  z-index: 1000;
  font-size: 0.85rem;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--outline);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Pop Art misregistration on logo */
.logo::after {
  content: 'A1PHA';
  position: absolute;
  top: 0;
  left: 2px;
  color: rgba(0, 170, 255, 0.35);
  z-index: -1;
  clip-path: inset(0 40% 0 0);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--outline);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 4px solid var(--outline);
    flex-direction: column;
    padding: 20px 24px 24px;
    gap: 10px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  border: 3px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--outline);
  background: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--outline);
}

.hero {
  position: relative;
  padding: 100px 0 72px;
  overflow: hidden;
}

/* Hero starburst background */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.35) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  pointer-events: none;
  border: 4px solid var(--outline);
}

/* Hero speed lines left side */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 0, 68, 0.04) 10px,
    rgba(255, 0, 68, 0.04) 12px
  );
  pointer-events: none;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.2), transparent 60%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.2), transparent 60%);
}

.hero h1 {
  position: relative;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--outline);
  /* CMYK misregistration effect */
  text-shadow:
    3px 0 0 rgba(0, 170, 255, 0.45),
    -3px 0 0 rgba(255, 0, 68, 0.4),
    0 3px 0 rgba(255, 221, 0, 0.35);
}

.hero p {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 740px;
  font-size: 1.08rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 4px solid var(--outline);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 6px 6px 0 var(--outline);
}

.btn-order.primary {
  background: var(--primary);
  color: #fff;
}

.btn-order.secondary {
  background: var(--accent);
  color: var(--outline);
}

.btn-order.outline {
  background: transparent;
  color: var(--outline);
}

.btn-order:hover,
.btn-order:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--outline);
}

/* Hero stats as starburst badges */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.hero-stats div {
  position: relative;
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: 50%;
  padding: 28px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Starburst background on stat badges */
.hero-stats div::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.25) 0deg 10deg,
    transparent 10deg 20deg
  );
  z-index: 0;
}

.hero-stats div > * {
  position: relative;
  z-index: 1;
}

.hero-stats strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.08);
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.services-banner {
  padding: 24px 0 8px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--outline);
  margin-bottom: 32px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  border: 4px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  flex-shrink: 0;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--outline) 0px,
    var(--outline) 8px,
    transparent 8px,
    transparent 14px
  );
  opacity: 0.35;
  min-width: 60px;
}

.services-grid,
.apps-grid,
.stats-grid,
.contact-grid,
.pricing-grid,
.process-grid,
.features-grid,
.faq-list {
  display: grid;
  gap: 24px;
}

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

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

.stats-grid,
.contact-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card,
.app-card,
.feature-card,
.stat-card,
.contact-card,
.pricing-card,
.process-step,
.faq-item,
.legal-content,
.contact-form-wrapper,
.cta-box,
.location-box {
  position: relative;
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Halftone overlay on major cards */
.service-card::before,
.app-card::before,
.feature-card::before,
.pricing-card::before,
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--halftone);
  background-size: 10px 10px;
  opacity: 0.12;
  pointer-events: none;
  border-radius: var(--radius);
  z-index: 0;
}

.service-card > *,
.app-card > *,
.feature-card > *,
.pricing-card > *,
.cta-box > * {
  position: relative;
  z-index: 1;
}

.service-card {
  padding: 32px 28px;
}

.service-card .icon,
.feature-card .icon,
.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-sm);
}

.service-card .icon.android { background: rgba(255, 0, 68, 0.12); color: var(--primary); }
.service-card .icon.web { background: rgba(0, 170, 255, 0.12); color: var(--secondary); }
.service-card .icon.design { background: rgba(255, 221, 0, 0.25); color: #c29d00; }
.service-card .icon.marketing { background: rgba(0, 0, 0, 0.06); color: var(--outline); }

.service-card h2,
.feature-card h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--outline);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.service-card h3,
.feature-card h3,
.pricing-card h3,
.process-step h3,
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.service-card p,
.feature-card p,
.pricing-card .subtext,
.process-step p,
.faq-item p,
.section p,
.app-desc,
.contact-card-info p,
.legal-content p,
.legal-content ul li {
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-card .subtext {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--outline);
}

.price-tag,
.feature-card .price,
.app-rating {
  font-weight: 900;
}

.stat-card strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--outline);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 221, 0, 0.3), rgba(0, 170, 255, 0.25));
  border: 4px solid var(--outline);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.app-info {
  min-width: 0;
}

.app-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.app-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.app-rating::before {
  content: '★';
  font-size: 0.95rem;
}

.app-desc {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-play,
.btn-details,
.btn-primary,
.contact-link,
.app-resources a,
.form-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-play,
.btn-primary,
.contact-link,
.app-resources a,
.btn-order.primary {
  background: var(--primary);
  color: #fff;
}

.btn-details,
.btn-order.secondary,
.btn-order.outline,
.contact-link.outline,
.app-resources a.outline {
  background: var(--accent);
  color: var(--outline);
}

.btn-play:hover,
.btn-details:hover,
.btn-primary:hover,
.contact-link:hover,
.app-resources a:hover,
.btn-order:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--outline);
}

.contact-section {
  padding: 64px 0 40px;
  position: relative;
}

/* Speed lines on contact section */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--speed-lines);
  opacity: 0.25;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent);
}

.contact-section h2,
.app-hero h1,
.page-hero h1,
.section h2 {
  color: var(--outline);
}

.contact-section p,
section p {
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.contact-link {
  background: var(--surface);
  border: 3px solid var(--outline);
  color: var(--outline);
  box-shadow: var(--shadow-sm);
}

.contact-link:hover {
  background: var(--accent);
  color: var(--outline);
}

.app-hero {
  padding: 60px 0 36px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

/* Starburst behind app hero */
.app-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.18) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.app-hero-img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  margin: 0 auto 18px;
  border: 4px solid var(--outline);
  background: linear-gradient(135deg, rgba(255, 0, 68, 0.18), rgba(0, 170, 255, 0.18));
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.app-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow:
    2px 0 0 rgba(0, 170, 255, 0.35),
    -2px 0 0 rgba(255, 0, 68, 0.3);
  position: relative;
  z-index: 1;
}

.app-hero .rating,
.app-hero .downloads,
.app-hero .meta {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.app-hero .rating::before {
  content: '★ ';
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: #0088cc;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--outline);
}

.section {
  padding: 42px 0;
}

.section h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section p,
.section li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.section ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.section ul li::before {
  content: '✔';
  color: var(--pop-green);
  font-weight: 800;
  margin-top: 2px;
  font-size: 1.1rem;
}

/* Speech bubble style for disclaimers */
.disclaimer,
.update-note {
  position: relative;
  background: var(--surface-soft);
  border: 4px solid var(--outline);
  border-radius: 28px;
  padding: 22px 26px;
  color: var(--outline);
  box-shadow: var(--shadow);
  margin: 24px 0;
}

/* Speech bubble tail */
.disclaimer::after,
.update-note::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 32px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 20px solid var(--outline);
}

.disclaimer strong,
.update-note strong {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-hero {
  position: relative;
  padding: 60px 0 32px;
  text-align: center;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Starburst on page hero */
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 0, 68, 0.1) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 16px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--outline);
  text-shadow:
    2px 0 0 rgba(0, 170, 255, 0.35),
    -2px 0 0 rgba(255, 0, 68, 0.3);
  position: relative;
  z-index: 1;
}

.page-hero-note a {
  color: var(--primary);
}

.page-hero-note a:hover {
  text-decoration: underline;
}

.updated,
.form-status,
.contact-card-info p,
.location-box strong,
.location-box span,
.legal-content p,
.legal-content ul li {
  color: var(--text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 32px;
  padding: 24px 0 48px;
}

.contact-card-panel,
.contact-form-wrapper,
.location-box {
  border-radius: var(--radius);
}

.contact-card-panel {
  background: var(--surface-soft);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.contact-card-panel h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.contact-card-panel p {
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.starburst-slot {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.35) 0deg 10deg,
    transparent 10deg 20deg
  );
  border-radius: 50%;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--surface-soft);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  background: var(--surface);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 3px solid var(--outline);
  background: rgba(255, 0, 68, 0.1);
  color: var(--primary);
  box-shadow: 2px 2px 0 var(--outline);
}

.contact-card-info h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.contact-card-info p {
  margin-top: 4px;
}

.location-box {
  text-align: center;
  padding: 24px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
  position: relative;
}
.location-box strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.location-box span {
  position: relative;
  z-index: 1;
}

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

.contact-main { min-width: 0; }
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact-form-headline { margin-bottom: 24px; }
.contact-form-headline h2 { font-size: 1.35rem; font-weight: 900; margin-bottom: 8px; color: var(--outline); text-transform: uppercase; }
.contact-form-headline p { color: var(--text-muted); font-size: 0.95rem; }
.form-field { display: block; }

.contact-form-wrapper {
  border: 4px solid var(--outline);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ben-day);
  background-size: 8px 8px;
  opacity: 0.06;
  pointer-events: none;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form .form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-form label span {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 3px solid var(--outline);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 16px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 0, 68, 0.15);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.captcha-question,
.captcha-hint {
  font-size: 0.95rem;
}

.contact-form button {
  width: fit-content;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 16px 34px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--outline);
}

.form-status {
  background: var(--accent);
  border: 3px solid var(--outline);
  border-radius: 22px;
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.form-status.success {
  color: var(--pop-green);
  background: rgba(0, 204, 68, 0.12);
  border-color: var(--pop-green);
}

.form-status.error {
  color: var(--pop-red);
  background: rgba(230, 0, 18, 0.1);
  border-color: var(--pop-red);
}

.faq-item {
  border: 3px solid var(--outline);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item a:hover {
  color: var(--secondary);
}

.pricing-header {
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  padding-bottom: 14px;
}

.pricing-header .tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 4px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 4px;
}

.pricing-amount .currency {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pricing-amount .amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow:
    2px 2px 0 rgba(0, 170, 255, 0.2),
    -1px -1px 0 rgba(255, 0, 68, 0.15);
}

.pricing-card.featured .pricing-amount .amount {
  font-size: 2.8rem;
  text-shadow:
    3px 3px 0 rgba(0, 170, 255, 0.25),
    -2px -2px 0 rgba(255, 0, 68, 0.2);
}

.pricing-card.featured {
  border-color: var(--primary);
  padding-top: 68px;
}

.pricing-card.website-featured {
  border-color: var(--secondary);
  padding-top: 68px;
}

.pricing-card.website-featured .pricing-starburst {
  background: var(--secondary);
}

.pricing-card.website-featured .pricing-amount .amount {
  color: var(--secondary);
}

.pricing-starburst {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 28px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
}

.pricing-starburst::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.25) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.pricing-card.featured .btn-order.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 4px 4px 0 var(--outline);
}

.pricing-card.featured .btn-order.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--outline);
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--pop-green);
  font-weight: 900;
}

.pricing-card ul li.missing::before {
  content: '✕';
  color: var(--text-muted);
}

.process-step {
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.process-step:hover {
  border-color: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.process-step .num,
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--outline);
  font-weight: 900;
  border: 3px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
  margin-bottom: 10px;
}

.cta-box {
  text-align: center;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow);
}

.cta-box p {
  color: var(--text-muted);
}

.service-card .icon.fill,
.contact-card-icon.fill {
  background: var(--outline);
  color: #fff;
}

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

.btn-order.outline {
  background: transparent;
  color: var(--outline);
}

/* Ben-Day dot utility for sections that want it explicitly */
.ben-day-bg {
  position: relative;
}
.ben-day-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ben-day);
  background-size: 8px 8px;
  opacity: 0.08;
  pointer-events: none;
  border-radius: inherit;
}

/* Starburst utility class */
.starburst {
  position: relative;
  overflow: hidden;
}
.starburst::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.3) 0deg 10deg,
    transparent 10deg 20deg
  );
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .nav { padding: 12px 18px; }
  .nav .nav-links { justify-content: center; }
  .hero { padding: 72px 0 56px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div {
    aspect-ratio: auto;
    border-radius: var(--radius);
    padding: 24px;
  }
  .hero-stats div::before {
    inset: -10%;
  }
  .app-card { grid-template-columns: 1fr; align-items: center; }
  .app-card .app-icon { margin: 0 auto; }
  .app-card .app-info { text-align: center; }
  .app-actions { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ─── Portfolio Redesign Styles ─── */

.portfolio-header-main {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.portfolio-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Bento grid on homepage */
.portfolio-bento {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
}

.portfolio-bento .bento-card:nth-child(1) { grid-column: span 2; }
.portfolio-bento .bento-card:nth-child(2) { grid-column: span 2; }
.portfolio-bento .bento-card:nth-child(3) { grid-column: span 1; }
.portfolio-bento .bento-card:nth-child(4) { grid-column: span 1; }
.portfolio-bento .bento-card:nth-child(5) { grid-column: span 1; }
.portfolio-bento .bento-card:nth-child(6) { grid-column: span 1; }

.bento-card {
  position: relative;
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--halftone);
  background-size: 10px 10px;
  opacity: 0.1;
  pointer-events: none;
  border-radius: var(--radius);
  z-index: 0;
}

.bento-card > * { position: relative; z-index: 1; }

.bento-badge {
  position: absolute;
  top: -14px;
  right: 18px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--primary);
  color: #fff;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.bento-badge-alt {
  background: var(--secondary);
}

.bento-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.bento-featured .bento-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.bento-card h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--outline);
}

.bento-featured h3 {
  font-size: 1.25rem;
}

.bento-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.bento-cta {
  background: var(--surface-soft);
  align-items: center;
  text-align: center;
}

.bento-icon-svg {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 0, 68, 0.15), rgba(0, 170, 255, 0.15));
  border: 4px solid var(--outline);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.bento-cta h3 {
  margin-top: 4px;
}

.bento-cta p {
  font-size: 0.85rem;
}

/* Portfolio Hero */
.portfolio-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.3) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.portfolio-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--speed-lines);
  opacity: 0.15;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.2), transparent 50%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.2), transparent 50%);
}

.portfolio-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--outline);
  text-shadow:
    3px 0 0 rgba(0, 170, 255, 0.45),
    -3px 0 0 rgba(255, 0, 68, 0.4),
    0 3px 0 rgba(255, 221, 0, 0.35);
}

.portfolio-hero p {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stat bar */
.portfolio-stat-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.stat-pill strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.stat-pill span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Portfolio grid large (portfolio.php) */
.portfolio-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  padding: 0 0 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--outline);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--halftone);
  background-size: 10px 10px;
  opacity: 0.08;
  pointer-events: none;
  border-radius: var(--radius);
  z-index: 0;
}

.portfolio-card > * { position: relative; z-index: 1; }

/* Colored top accent bar */
.portfolio-card-top {
  width: 100%;
  height: 72px;
  border-bottom: 4px solid var(--outline);
  margin-bottom: -40px;
}

.portfolio-icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  border: 4px solid var(--outline);
  object-fit: cover;
  box-shadow: 5px 5px 0 var(--outline);
  background: var(--surface);
  flex-shrink: 0;
}

.portfolio-icon-web {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--secondary);
  border: 4px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
  flex-shrink: 0;
}

.portfolio-info {
  width: 100%;
  padding: 0 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.portfolio-info h3 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--outline);
  line-height: 1.25;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portfolio-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--outline);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}

.portfolio-card .app-actions {
  margin-top: 6px;
  justify-content: center;
}

.portfolio-card-cta {
  background: var(--surface-soft);
}

/* Card link overlay — makes entire card clickable without nesting anchors */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

/* Ensure interactive children sit above the overlay */
.portfolio-card .app-actions,
.portfolio-card .btn-play,
.portfolio-card .btn-details,
.portfolio-card .btn-primary,
.portfolio-card .btn-play-outline {
  position: relative;
  z-index: 2;
}

/* Visually hidden text for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive portfolio */
@media (max-width: 1024px) {
  .portfolio-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-bento .bento-card:nth-child(1) { grid-column: span 2; }
  .portfolio-bento .bento-card:nth-child(2) { grid-column: span 2; }
  .portfolio-bento .bento-card:nth-child(3) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(4) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(5) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(6) { grid-column: span 1; }
}

@media (max-width: 680px) {
  .portfolio-grid-large {
    grid-template-columns: 1fr;
  }
  .portfolio-card {
    padding-bottom: 24px;
  }
  .portfolio-info {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .portfolio-bento {
    grid-template-columns: 1fr;
  }
  .portfolio-bento .bento-card:nth-child(1) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(2) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(3) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(4) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(5) { grid-column: span 1; }
  .portfolio-bento .bento-card:nth-child(6) { grid-column: span 1; }
  .stat-pill {
    width: 100%;
    justify-content: center;
  }
}

.app-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.25), rgba(255, 221, 0, 0.25));
  color: var(--secondary);
  border-radius: 24px;
}

.app-card .btn-play-outline {
  background: rgba(0, 170, 255, 0.12);
  color: var(--secondary);
  border-color: var(--outline);
}

.app-card .btn-play-outline.pink {
  background: rgba(255, 0, 68, 0.12);
  color: var(--primary);
  border-color: var(--outline);
}

.apps-section { padding: 42px 0; }

.portfolio-header { margin-bottom: 20px; }

.portfolio-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
}

.portfolio-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* App theme overrides */
.app-theme-sim { --app-accent: #ff5b3d; --app-accent-dim: rgba(255, 91, 61, 0.15); }
.app-theme-8171 { --app-accent: #22c55e; --app-accent-dim: rgba(34, 197, 94, 0.15); }
.app-theme-network { --app-accent: #00b8d9; --app-accent-dim: rgba(0, 184, 217, 0.15); }
.app-theme-bill { --app-accent: #f59e0b; --app-accent-dim: rgba(245, 158, 11, 0.15); }
.app-theme-dns { --app-accent: #10b981; --app-accent-dim: rgba(16, 185, 129, 0.15); }
.app-theme-bubble { --app-accent: #84cc16; --app-accent-dim: rgba(132, 204, 22, 0.15); }
.app-theme-uninstall { --app-accent: #ef4444; --app-accent-dim: rgba(239, 68, 68, 0.15); }
.app-theme-downloader { --app-accent: #fb7185; --app-accent-dim: rgba(251, 113, 133, 0.15); }
.app-theme-qibla { --app-accent: #38bdf8; --app-accent-dim: rgba(56, 189, 248, 0.15); }
.app-theme-qr { --app-accent: #8b5cf6; --app-accent-dim: rgba(139, 92, 246, 0.15); }

.networks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.networks div {
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: 22px;
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.networks div:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .networks { grid-template-columns: 1fr; }
}

/* App page resources and legal */
.app-resources { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 20px 0; position: relative; z-index: 1; }
.app-resources a { background: var(--surface); border: 3px solid var(--outline); color: var(--outline); box-shadow: var(--shadow-sm); }

.app-hero .btn-primary { background: var(--secondary); }
.app-hero .btn-primary:hover { background: #0088cc; }

.app-hero .app-accent-header h1 { color: var(--app-accent, var(--outline)); }

.section h2::after {
  content: '';
  display: block;
  margin-top: 10px;
  width: 50px;
  height: 5px;
  background: var(--primary);
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
}

.top-link {
  position: fixed;
  top: 80px;
  left: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--outline);
  color: var(--outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 100;
}

.top-link:hover {
  transform: translate(-3px, -3px);
  background: var(--primary);
  color: #fff;
  box-shadow: 8px 8px 0 var(--outline);
}

.screenshots-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--outline) transparent;
}

.screenshots-grid::-webkit-scrollbar {
  height: 8px;
}

.screenshots-grid::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-grid::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.screenshots-grid img {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  border-radius: 18px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.screenshots-grid img:hover {
  transform: scale(1.03);
}

.legal-content { padding: 32px 28px 48px; border: 4px solid var(--outline); box-shadow: var(--shadow); }
.legal-content h1 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; color: var(--outline); text-transform: uppercase; letter-spacing: -0.02em; }
.legal-content h2 { font-size: 1.3rem; font-weight: 900; margin-top: 28px; margin-bottom: 12px; color: var(--outline); text-transform: uppercase; }
.legal-content p { color: var(--text-muted); line-height: 1.7; }
.legal-content ul { padding-left: 24px; }
.legal-content .back-link { display: inline-flex; gap: 6px; color: var(--outline); font-weight: 700; }

.footer {
  padding: 48px 0 0;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  background: var(--bg);
  position: relative;
}
/* Subtle Ben-Day on footer */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ben-day);
  background-size: 10px 10px;
  opacity: 0.05;
  pointer-events: none;
}
.footer a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--primary); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: span 2; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: span 1; }
  .footer { padding: 36px 0 0; }
  .footer-top { gap: 24px; padding-bottom: 28px; }
  .footer-brand p { max-width: 100%; }
}
.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--outline);
  position: relative;
  display: inline-block;
}
.footer-logo::after {
  content: 'A1PHA';
  position: absolute;
  top: 0;
  left: 2px;
  color: rgba(0, 170, 255, 0.35);
  z-index: -1;
  clip-path: inset(0 40% 0 0);
}
.footer-brand p { margin-top: 10px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a { display: block; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: none; }
}

/* ─── Global Responsive Container ─── */
@media (max-width: 640px) {
  .container,
  .container-wide,
  .container-narrow,
  .container-slim {
    padding: 0 16px;
  }
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
    min-height: auto;
    position: relative;
  }
  .nav-links.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 4px solid var(--outline);
    flex-direction: column;
    padding: 16px 16px 20px;
    gap: 8px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.08);
  }
  .nav-links.open a { width: 100%; text-align: center; }

  .hero {
    padding: 48px 0 40px;
  }
  .hero::before {
    width: 200px;
    height: 200px;
    top: -30px;
    right: -30px;
    opacity: 0.5;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
    text-shadow:
      2px 0 0 rgba(0, 170, 255, 0.4),
      -2px 0 0 rgba(255, 0, 68, 0.35),
      0 2px 0 rgba(255, 221, 0, 0.3);
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 16px;
  }
  .hero-stats div {
    aspect-ratio: auto;
    border-radius: var(--radius);
    padding: 22px 20px;
    flex-direction: row;
    gap: 12px;
  }
  .hero-stats div::before {
    inset: -10%;
  }
  .hero-stats strong {
    font-size: 1.8rem;
  }
  .hero-stats span {
    font-size: 0.72rem;
    margin-top: 0;
  }
  .hero-cta {
    justify-content: center;
    gap: 14px;
  }
  .btn-order {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.85rem;
    box-shadow: 4px 4px 0 var(--outline);
  }

  .section-title { font-size: 1.4rem; }
  .section-title::before {
    width: 40px;
    height: 40px;
  }

  .services-grid,
  .features-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .app-card,
  .feature-card,
  .pricing-card,
  .contact-card,
  .faq-item,
  .process-step,
  .contact-form-wrapper,
  .cta-box {
    padding: 22px 20px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    margin: 28px 0 36px;
  }
  .contact-hero {
    padding: 48px 0 32px;
  }
  .contact-hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }
  .contact-hero-sub {
    font-size: 0.95rem;
    margin-top: 12px;
  }
  .contact-hero-shape.shape-1 {
    width: 180px;
    height: 180px;
    top: -40px;
  }
  .contact-hero-shape.shape-2 {
    width: 100px;
    height: 100px;
  }
  .contact-hero-shape.shape-3 {
    display: none;
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
  }
  .contact-form-panel .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-panel {
    padding: 24px 20px;
  }
  .info-card {
    padding: 24px 20px;
  }

  .page-hero {
    padding: 44px 0 28px;
  }
  .page-hero::before {
    width: 240px;
    height: 240px;
    opacity: 0.4;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .app-hero {
    padding: 44px 0 28px;
  }
  .app-hero::before {
    width: 300px;
    height: 300px;
    opacity: 0.5;
  }
  .app-hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .portfolio-hero {
    padding: 56px 0 40px;
  }
  .portfolio-hero::before {
    width: 300px;
    height: 300px;
    opacity: 0.4;
  }

  .app-card {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }
  .app-icon {
    margin: 0 auto;
  }
  .app-meta { justify-content: center; }
  .app-actions { justify-content: center; }

  .app-resources { justify-content: center; }
  .app-resources a { width: 100%; justify-content: center; }

  .screenshots-grid img {
    width: 160px;
  }

  .legal-content {
    padding: 24px 20px 36px;
  }
  .legal-content h1 { font-size: 1.6rem; }
  .legal-content h2 { font-size: 1.1rem; }

  .portfolio-bento {
    grid-template-columns: 1fr;
  }
  .portfolio-bento .bento-card:nth-child(n) {
    grid-column: span 1;
  }

  .stat-pill {
    width: 100%;
    justify-content: center;
  }
  .portfolio-stat-bar { gap: 12px; }

  .footer { padding: 36px 0 0; }
  .footer-top { gap: 24px; padding-bottom: 28px; }

  .footer-bottom {
    font-size: 0.75rem;
    padding: 16px 0;
  }

  .top-link {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 20px;
    left: 16px;
    box-shadow: 2px 2px 0 var(--outline);
  }

  .section {
    padding: 32px 0;
  }

  /* Ben-Day dot reduction on mobile */
  body::before {
    background-size: 6px 6px;
    opacity: 0.04;
  }
}

/* ─── Tablet Adjustments ─── */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero { padding: 72px 0 52px; }
  .hero h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .hero-stats div {
    padding: 22px 14px;
  }

  .services-grid,
  .features-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-bento .bento-card:nth-child(1),
  .portfolio-bento .bento-card:nth-child(2) {
    grid-column: span 2;
  }

  .bento-card { padding: 24px; }

  .contact-hero-shape.shape-3 { display: none; }
}

/* ─── Remove duplicate footer breakpoint ─── */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: none; }
}

/* ─── Fix nav position relative ─── */
.nav { position: relative; }

.contact-hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}

.contact-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
}

.contact-hero-text {
  position: relative;
  z-index: 2;
}

.contact-hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 2px solid var(--primary);
  border-radius: 999px;
}

.contact-hero h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.88;
  color: var(--outline);
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.contact-hero h1 .char {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-hero h1:hover .char {
  transform: translateY(-4px);
}

.contact-hero h1 .char-o { color: var(--primary); }
.contact-hero h1 .char-n { color: var(--secondary); }
.contact-hero h1 .char-a { color: var(--accent); }
.contact-hero h1 .char-c2 { color: var(--primary); }

.contact-hero-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 460px;
  line-height: 1.6;
}

.contact-hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.shape-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 5%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 0, 0.2) 0deg 10deg,
    transparent 10deg 20deg
  );
  opacity: 0.6;
}

.shape-2 {
  width: 160px;
  height: 160px;
  bottom: -40px;
  right: 25%;
  background: repeating-conic-gradient(
    from 15deg,
    rgba(255, 0, 68, 0.1) 0deg 8deg,
    transparent 8deg 16deg
  );
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 45%;
  border: 4px solid var(--outline);
  transform: rotate(45deg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Contact channels row */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0 48px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.channel-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--outline);
}

.channel-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
}

.channel-icon svg {
  width: 26px;
  height: 26px;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.channel-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.channel-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
}

/* Split layout: form + info */
.contact-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding-bottom: 56px;
}

.contact-form-panel {
  background: var(--surface);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.contact-form-header {
  margin-bottom: 28px;
}

.contact-form-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--outline);
}

.contact-form-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.contact-form-panel .contact-form {
  display: grid;
  gap: 20px;
}

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

.contact-form-panel .contact-form label span {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form-panel .contact-form input,
.contact-form-panel .contact-form textarea {
  width: 100%;
  border: 3px solid var(--outline);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.contact-form-panel .contact-form input:focus,
.contact-form-panel .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 0, 68, 0.12);
}

.contact-form-panel .contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-panel .captcha-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--outline);
  margin-bottom: 8px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 2px solid var(--outline);
  border-radius: 12px;
  display: inline-block;
}

.contact-form-panel .captcha-row input {
  max-width: 200px;
}

.contact-form-panel .contact-form button {
  width: fit-content;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--outline);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-panel .contact-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--outline);
}

/* Info panel */
.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.info-card {
  background: var(--surface-soft);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.info-starburst {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 0, 68, 0.1) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  pointer-events: none;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--outline);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.info-card > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.info-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 20px 0;
  position: relative;
  z-index: 1;
  border-radius: 999px;
}

.info-location {
  position: relative;
  z-index: 1;
}

.info-location strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--outline);
  margin-bottom: 4px;
}

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

/* ─── End of contact styles ─── */

/* ─── Reduced Motion Preference ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before,
  .hero::after,
  .starburst::before,
  .portfolio-hero::before,
  .app-hero::before,
  .page-hero::before,
  .contact-hero-shape,
  .info-starburst,
  .pricing-starburst::before {
    animation: none !important;
  }
}
