/* ============================================================
   AppTeky — Main Stylesheet
   Design system: clean, technical, B2B SaaS tone
   ============================================================ */

/* Fonts are loaded with <link> in each page's <head> (no render-blocking @import). */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:      #6F15E5;   /* accent for text, links, outlines */
  --brand:       #6F15E5;   /* solid fills behind white text — same in both themes */
  --bg:          #FFFFFF;
  --surface:     #FFFFFF;   /* cards, inputs, tables */
  --bg-alt:      #F8F8F6;
  --dark:        #0F0F0F;
  --text:        #1A1A1A;
  --text-sec:    #6B6B6B;
  --border:      #E5E5E3;
  --r-card:      8px;
  --r-btn:       6px;
  --shadow:      0 1px 3px rgba(0,0,0,0.08);
  --max-w:       1160px;
  --section-pad: 80px 0;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 16px; outline: none; }

/* ── Focus styles ── */
*:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: .88; }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { opacity: 1; box-shadow: 0 4px 16px rgba(111,21,229,.28); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.btn-white {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { border-color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Typography helpers ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
h4 { font-size: 15px; font-weight: 600; }

.section-header {
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p  { color: var(--text-sec); font-size: 17px; max-width: 580px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── Section spacing ── */
section { padding: var(--section-pad); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.07); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--purple); }

.nav-cta {
  margin-left: 16px;
  padding: 9px 18px;
  font-size: 14px;
}

.nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-left { max-width: 620px; }

.hero-h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-p {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-pill {
  padding: 10px 18px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
}

/* Terminal visual */
.terminal {
  background: var(--dark);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}

.terminal-bar {
  background: #1e1e1e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2a2a2a;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red   { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #666;
  margin-left: 8px;
}

.terminal-body { padding: 24px 20px; }
.term-line {
  padding: 3px 0;
  white-space: pre;
}
.term-prompt { color: #666; }
.term-cmd    { color: #e2e2e2; }
.term-ok     { color: #28c840; }
.term-arrow  { color: var(--purple); }
.term-dim    { color: #555; }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #e2e2e2;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem { background: var(--bg-alt); }

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

.problem-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.problem-card .icon {
  width: 40px;
  height: 40px;
  background: var(--danger-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #dc2626;
}

.problem-card h3 { margin-bottom: 10px; font-size: 16px; }
.problem-card p  { font-size: 15px; color: var(--text-sec); line-height: 1.65; }

.problem-tagline {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--purple);
}

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

/* ============================================================
   WHAT APPTEKY IS
   ============================================================ */
.what-appteky { background: var(--bg); }

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

.what-left p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-top: 20px;
}
.what-left p + p { margin-top: 16px; }

.what-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--purple);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.what-link:hover { border-color: var(--purple); }

.connection-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.entity-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  flex: 1;
  box-shadow: var(--shadow);
}

.connection-arrows {
  font-size: 20px;
  color: var(--purple);
  white-space: nowrap;
}

.connection-tools {
  text-align: center;
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 20px;
}

.connection-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.c-tag {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

@media (max-width: 768px) {
  .what-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES CARDS
   ============================================================ */
.services { background: var(--bg-alt); }

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

.service-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.service-card .s-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 16px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 15px; color: var(--text-sec); line-height: 1.65; }

.services-more {
  margin-top: 32px;
  text-align: center;
}
.services-more a {
  font-size: 15px;
  font-weight: 500;
  color: var(--purple);
}
.services-more a:hover { text-decoration: underline; }

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

/* ============================================================
   HOW IT WORKS — HOMEPAGE STRIP
   ============================================================ */
.how-strip { background: var(--bg); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 16px;
}

.step-item {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 1px;
  background: var(--border);
}

.step-item h4 { font-size: 14px; margin-bottom: 6px; }
.step-item p  { font-size: 13px; color: var(--text-sec); line-height: 1.5; }

@media (max-width: 768px) {
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .step-item::after { display: none; }
  .step-item { text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 0; }
  .step-num  { flex-shrink: 0; margin: 0; }
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing { background: var(--bg-alt); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--purple);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: .03em;
}

.price-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.price-duration {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sec);
  padding: 5px 0;
}
.price-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F15E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 24px;
}

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

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-studies { background: var(--bg); }

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

.case-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: var(--surface);
  transition: border-color .2s;
}
.case-card:hover { border-color: var(--purple); }

.case-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--purple);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.case-card h3 { margin-bottom: 16px; font-size: 18px; }

.case-field {
  margin-bottom: 14px;
}
.case-field > strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sec);
  margin-bottom: 4px;
}
.case-field p { font-size: 14px; line-height: 1.6; color: var(--text-sec); }
.case-field ul, .case-field ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sec);
}
.case-field ul { list-style: disc; }
.case-field ol { list-style: decimal; }
.case-field li::marker { color: var(--purple); }
.case-field li b { color: var(--text); font-weight: 600; }

.case-card-wide { grid-column: 1 / -1; padding: 40px; }
.case-card-wide h3 { font-size: 22px; margin-bottom: 12px; }
.case-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 780px;
  margin-bottom: 28px;
}
.case-wide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  margin-bottom: 18px;
}
.case-card-wide .case-field { margin-bottom: 20px; }
.case-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.case-card-wide { scroll-margin-top: 96px; }
.case-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.case-jump a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .2s, color .2s;
}
.case-jump a:hover { border-color: var(--purple); color: var(--purple); }

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tech-tag {
  background: var(--bg-alt);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

.case-result {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid var(--purple);
  padding-left: 12px;
}

.case-cta { margin-top: 40px; text-align: center; }
.case-cta a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--purple);
}
.case-cta a:not(.btn):hover { text-decoration: underline; }

@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-wide-grid { grid-template-columns: 1fr; }
  .case-card-wide { padding: 28px; }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-live { background: #e6f6ec; color: #1a7f4b; }
.status-beta { background: #fef3d9; color: #9a6a00; }
.status-planning { background: var(--bg-alt); color: var(--text-sec); border: 1px solid var(--border); }

/* Full product cards (products.html) */
.product-grid { grid-template-columns: repeat(2, 1fr); }
.product-card { display: flex; flex-direction: column; }
.product-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.product-card h3 { margin-bottom: 4px; font-size: 19px; }
.product-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 12px;
}
.product-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.product-links .btn { font-size: 13px; padding: 8px 16px; }
.product-soon {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
}

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

/* Compact product strip (homepage) */
.products-strip { background: var(--bg-alt); }

.products-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-feature-row-3 { grid-template-columns: repeat(3, 1fr); }
.product-feature-row-3 .product-feature-card { padding: 30px; display: flex; flex-direction: column; }
.product-feature-row-3 .product-feature-badge { align-self: flex-start; }
.product-feature-row-3 .product-feature-body { flex-direction: column; gap: 18px; flex: 1; }
.product-feature-row-3 .product-feature-text { display: flex; flex-direction: column; flex: 1; }
.product-feature-row-3 .product-feature-links { margin-top: auto; }

.product-feature-card {
  position: relative;
  background: var(--dark);
  border-radius: 16px;
  padding: 36px;
  overflow: hidden;
}
.product-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(111,21,229,.4), transparent 55%);
  pointer-events: none;
}
.product-feature-badge {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.product-feature-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.product-feature-logo {
  width: 56px;
  height: 56px;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(111,21,229,.45);
  flex-shrink: 0;
}
.product-feature-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.product-feature-title-row h3 { color: #fff; font-size: 22px; }
.product-feature-text p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 22px;
}
.product-feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.products-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-mini-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-mini-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
}

.product-mini-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.product-mini-card .product-logo { width: 38px; height: 38px; font-size: 12px; border-radius: 9px; }
.product-mini-card h3 { font-size: 16px; margin-bottom: 2px; }

.product-mini-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-mini-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
}
.product-mini-link:hover { text-decoration: underline; }
.product-mini-soon { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--text-sec); }

.products-more { margin-top: 32px; text-align: center; }
.products-more a { font-size: 15px; font-weight: 500; color: var(--purple); }
.products-more a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .products-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .product-feature-row, .product-feature-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .product-feature-card { padding: 26px; }
  .product-feature-body { flex-direction: column; }
}
@media (max-width: 600px) {
  .products-strip-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT / FOUNDER DARK SECTION
   ============================================================ */
.founder-section {
  background: var(--dark);
  color: #fff;
}

.founder-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}

.founder-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.founder-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-right .eyebrow { color: var(--purple); }
.founder-right h2 { color: #fff; margin-bottom: 20px; }
.founder-right p  { color: #a0a0a0; font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.founder-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--purple);
}
.founder-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .founder-inner { grid-template-columns: 1fr; }
  .founder-img, .founder-img-placeholder { max-width: 200px; }
}

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.cta-band {
  background: var(--purple);
  padding: var(--section-pad);
  text-align: center;
  color: #fff;
}

.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 17px; max-width: 520px; margin: 0 auto 36px; }

.cta-band-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-band-contact {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.cta-band-contact a { color: rgba(255,255,255,.9); }
.cta-band-contact a:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.footer-brand .tagline {
  font-size: 13px;
  color: #666;
}

.footer-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #555; margin-bottom: 16px; }
.footer-nav a {
  display: block;
  font-size: 14px;
  color: #999;
  padding: 4px 0;
  transition: color .15s;
}
.footer-nav a:hover { color: #fff; }

.footer-contact h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #555; margin-bottom: 16px; }
.footer-contact a {
  display: block;
  font-size: 14px;
  color: #999;
  padding: 4px 0;
  transition: color .15s;
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #999; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--bg);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 16px; max-width: 640px; }
.page-hero p  {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  padding: var(--section-pad);
}
.service-detail:nth-child(even) { background: var(--bg-alt); }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }

.service-detail h2 { margin-bottom: 16px; }
.service-detail p  { font-size: 16px; color: var(--text-sec); line-height: 1.8; margin-bottom: 12px; }

.include-list {
  margin-top: 20px;
}
.include-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-sec);
  padding: 6px 0;
}
.include-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F15E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.info-card.dark-card {
  background: var(--dark);
  color: #fff;
  border-color: #2a2a2a;
}

.info-card h4 { margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sec); }
.dark-card h4 { color: #555; }

.info-stat {
  font-size: 36px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 14px;
  line-height: 1.6;
}

.addon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.addon-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sec);
}
.addon-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sec);
}
.addon-table tr:last-child td { border-bottom: none; }
.addon-table td:first-child { color: var(--text); font-weight: 500; }

@media (max-width: 960px) {
  .service-detail-inner { grid-template-columns: 1fr; }
  .service-detail-inner.reverse { direction: ltr; }
}

/* ============================================================
   HOW IT WORKS PAGE
   ============================================================ */
.process-steps { padding: var(--section-pad); }

.step-panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step-panel:last-child { border-bottom: none; }

.step-num-lg {
  font-size: 56px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  font-family: 'DM Mono', monospace;
}

.step-panel h3 { font-size: 20px; margin-bottom: 10px; }
.step-panel p  { font-size: 15px; color: var(--text-sec); line-height: 1.7; max-width: 640px; }

.tools-section { background: var(--bg-alt); padding: var(--section-pad); }

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tool-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.ownership-section { padding: var(--section-pad); }

.ownership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.own-card {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  text-align: center;
}
.own-card .own-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin: 0 auto 12px;
}
.own-card h4 { font-size: 14px; margin-bottom: 6px; }
.own-card p  { font-size: 13px; color: var(--text-sec); }

@media (max-width: 768px) {
  .step-panel { grid-template-columns: 1fr; gap: 8px; }
  .step-num-lg { font-size: 36px; }
  .ownership-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.comparison-section { background: var(--bg-alt); padding: var(--section-pad); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 32px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table th {
  background: var(--dark);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.compare-table th:first-child { background: #1a1a1a; }
.compare-table th.hl { background: var(--brand); }

.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sec);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 500; color: var(--text); }
.compare-table td.good { color: #16a34a; font-weight: 500; }
.compare-table td.hl { background: var(--purple-soft); color: var(--text); font-weight: 500; }
.compare-table td.bad  { color: #dc2626; }

.roi-section { padding: var(--section-pad); }
.roi-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
.roi-card h3 { font-size: 22px; margin-bottom: 24px; }

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

.roi-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sec); margin-bottom: 16px; }

.roi-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.roi-item:last-child { border-bottom: none; }
.roi-item .label { color: var(--text-sec); }
.roi-item .val   { font-weight: 600; }
.roi-item .val.total { color: var(--purple); font-size: 16px; }

@media (max-width: 768px) {
  .roi-row { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--bg-alt); padding: var(--section-pad); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story { padding: var(--section-pad); }

.story-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.story-inner h2 { margin-bottom: 20px; }
.story-inner p  { font-size: 16px; color: var(--text-sec); line-height: 1.8; margin-bottom: 16px; }

.timeline {
  margin-top: 40px;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}
.tl-item {
  position: relative;
  padding-bottom: 28px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--purple);
}
.tl-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.tl-item h4 { font-size: 15px; margin-bottom: 4px; }
.tl-item p  { font-size: 14px; color: var(--text-sec); line-height: 1.6; }

.values-section { background: var(--bg-alt); padding: var(--section-pad); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.value-card h3 { font-size: 16px; margin-bottom: 10px; }
.value-card p  { font-size: 14px; color: var(--text-sec); line-height: 1.65; }

@media (max-width: 768px) {
  .story-inner { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { background: var(--bg); padding: var(--section-pad); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
}

.calendly-wrapper {
  min-height: 650px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-sidebar {}

.contact-alt {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.contact-alt h3 { margin-bottom: 16px; font-size: 16px; }
.contact-alt a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.contact-alt a:last-child { border-bottom: none; }
.contact-alt a:hover { color: var(--purple); }

.expect-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sec);
  padding: 6px 0;
}
.expect-list li::before {
  content: '→';
  color: var(--purple);
  font-weight: 600;
  flex-shrink: 0;
}

.contact-form-section { background: var(--bg-alt); padding: var(--section-pad); }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 100px; }

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

/* ============================================================
   CASE STUDIES PAGE — individual
   ============================================================ */
.case-detail { padding: var(--section-pad); }
.case-detail-inner { max-width: 760px; }
.case-detail h2 { margin-bottom: 12px; }
.case-detail .case-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.case-section { margin-bottom: 36px; }
.case-section h3 { font-size: 16px; margin-bottom: 10px; color: var(--text); }
.case-section p  { font-size: 15px; color: var(--text-sec); line-height: 1.75; }

/* ============================================================
   404
   ============================================================ */
.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.not-found h1 { font-size: 24px; color: var(--text); margin-bottom: 12px; }
.not-found h2 { margin-bottom: 12px; }
.not-found p  { color: var(--text-sec); margin-bottom: 32px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.js .fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.divider { height: 1px; background: var(--border); margin: 0; }

/* Legal pages (privacy policy, terms) */
.legal-prose { max-width: 720px; }
.legal-prose h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p,
.legal-prose li {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
}
.legal-prose p { margin-bottom: 16px; }
.legal-prose ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.legal-prose li { margin-bottom: 8px; }
.legal-prose a { color: var(--purple); text-decoration: underline; }

/* ============================================================
   BRAND & PREMIUM POLISH
   ============================================================ */
:root {
  --purple-deep: #5110B0;
  --purple-soft: #F3ECFF;
  --tag-bg:      #F0E8FE;
  --danger-soft: #FEF2F2;
  --nav-bg:      rgba(255,255,255,.82);
  --pill-bg:     rgba(255,255,255,.7);
  --grid-line:   var(--border);
  --r-lg:        14px;
  --shadow-sm:   0 1px 2px rgba(16,12,32,.04), 0 1px 3px rgba(16,12,32,.06);
  --shadow-lg:   0 2px 6px rgba(16,12,32,.04), 0 18px 40px -12px rgba(16,12,32,.16);
  --ease-out:    cubic-bezier(.22,1,.36,1);
}

::selection { background: var(--purple-soft); color: var(--purple-deep); }

h1, h2, .hero-h1 { letter-spacing: -.025em; }
h3 { letter-spacing: -.01em; }

/* Brand mark */
.brand-mark { width: 26px; height: auto; flex-shrink: 0; }
.nav-logo, .footer-brand .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text .brand-mark { filter: brightness(0) invert(1); opacity: .92; }

/* Frosted sticky nav */
.site-nav {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.nav-links a { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
}

/* Buttons */
.btn { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, border-color .2s, color .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(180deg, #7B24F0 0%, var(--brand) 100%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(81,16,176,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px -6px rgba(111,21,229,.55); }
.btn-outline { background: var(--surface); }
.btn-outline:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Hero atmosphere */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(111,21,229,.16), rgba(111,21,229,0));
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 70%);
  opacity: .5;
  z-index: -2;
  pointer-events: none;
}
.hero-accent {
  background: linear-gradient(90deg, var(--purple) 0%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-pill { background: var(--pill-bg); border-width: 1px; border-radius: 999px; }
.terminal { border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(36,10,80,.45), 0 0 0 1px rgba(255,255,255,.04); }
.term-live { color: #28c840; }
.term-pilot { color: #febc2e; }

/* Product proof strip */
.proof-strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.proof-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.proof-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-sec); white-space: nowrap; }
.proof-list { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.proof-list a { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: #8a8a88; transition: color .2s; }
.proof-list a:hover { color: var(--purple); }

/* Cards: softer radius, gentle lift */
.problem-card, .service-card, .case-card, .price-card, .product-mini-card, .info-card, .value-card {
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .2s;
}
.service-card:hover, .case-card:hover, .problem-card:hover, .value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured { box-shadow: 0 24px 48px -20px rgba(111,21,229,.35); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, #8B3DF5 0%, var(--purple) 45%, #3D0C8C 100%);
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  z-index: -1;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }

/* Footer */
.footer-about { font-size: 14px; line-height: 1.7; color: #8a8a8a; margin-top: 14px; max-width: 320px; }
.footer-brand .tagline { color: #b9a3f5; font-weight: 500; font-size: 14px; }
.footer-address { font-size: 14px; color: #777; padding-top: 8px; }
@media (max-width: 960px) and (min-width: 769px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 404 */
.not-found-code {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #d9c7fb, #f3ecff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Home FAQ */
.home-faq { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .fade-in { opacity: 1; transform: none; }
}
.case-result a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 56px 0 64px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

/* Small phones: let the "Your company ⟷ AppTeky team" card shrink */
.what-inner > * { min-width: 0; }
@media (max-width: 480px) {
  .connection-card { padding: 20px; }
  .connection-row { gap: 8px; }
  .entity-box { padding: 12px 10px; font-size: 13px; }
  .connection-arrows { font-size: 16px; }
}

@media (max-width: 480px) {
  .addon-table th, .addon-table td { padding: 10px 8px; }
}

/* ============================================================
   DARK MODE — follows the visitor's system setting
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --purple:      #A78BFA;   /* lighter accent so purple text stays readable */
    --bg:          #0B0B10;
    --bg-alt:      #111118;
    --surface:     #16161F;
    --dark:        #050508;
    --text:        #EDEDF3;
    --text-sec:    #A3A3B2;
    --border:      #262633;
    --purple-soft: rgba(139,92,246,.14);
    --tag-bg:      rgba(139,92,246,.16);
    --danger-soft: rgba(248,113,113,.12);
    --nav-bg:      rgba(11,11,16,.78);
    --pill-bg:     rgba(22,22,31,.7);
    --grid-line:   rgba(255,255,255,.06);
    --shadow:      0 1px 3px rgba(0,0,0,.5);
    --shadow-sm:   0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.5);
    --shadow-lg:   0 2px 6px rgba(0,0,0,.35), 0 18px 40px -12px rgba(0,0,0,.7);
  }

  ::selection { background: rgba(139,92,246,.35); color: #fff; }

  /* Brand mark: lift the deep logo purple so it reads on dark */
  .nav-logo .brand-mark { filter: brightness(1.9) saturate(1.1); }

  /* Hero atmosphere */
  .hero::before { background: radial-gradient(closest-side, rgba(139,92,246,.22), rgba(139,92,246,0)); }
  .hero-accent { background-image: linear-gradient(90deg, #A78BFA 0%, #E0B3FF 100%); }
  .terminal { box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }

  /* Buttons */
  .btn-outline { border-color: #34344A; }
  .btn-outline:hover { border-color: var(--purple); color: var(--purple); }
  .btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 26px -6px rgba(139,92,246,.6); }

  /* Status pills & tags */
  .status-live     { background: rgba(34,197,94,.14);  color: #4ADE80; }
  .status-beta     { background: rgba(245,158,11,.14); color: #FBBF24; }
  .status-planning { background: var(--bg-alt); color: var(--text-sec); }
  .problem-card .icon { color: #F87171; }
  .compare-table td.good { color: #4ADE80; }
  .compare-table td.bad  { color: #F87171; }
  .compare-table th, .compare-table th:first-child { background: #1C1C27; }

  /* Dark-on-dark sections need an edge */
  .product-feature-card, .terminal, .founder-section { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
  .site-footer { border-top: 1px solid var(--border); }
  .footer-brand .tagline { color: #C4B5FD; }

  /* CTA band */
  .cta-band { background: radial-gradient(120% 140% at 0% 0%, #7C3AED 0%, #5B12C9 45%, #24074F 100%); }

  /* 404 */
  .not-found-code { background-image: linear-gradient(180deg, #4C3A80, #1E1A33); }

  /* Forms */
  input, select, textarea { color-scheme: dark; }

  .step-num-lg { color: #3A3A50; }
  .product-logo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
  .price-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  }
}
