/* ============================================================
   Techosole — Design System
   Warm editorial studio: off-white paper, ink text, rust accent.
   Sharp corners, no gradients, no glass. Confident and quiet.
   ============================================================ */
:root {
  --bg: #fcfaf8;
  --bg-alt: #f3efe9;
  --ink: #1a1a1a;
  --ink-2: #262626;
  --ink-70: rgba(26, 26, 26, 0.7);
  --ink-50: rgba(26, 26, 26, 0.5);
  --border: #ddd8d0;
  --rust: #c04b2a;
  --rust-dark: #9e3b1f;
  --paper: #ffffff;

  --radius: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--ink-70); }

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-header { max-width: 640px; margin: 0 auto 52px; }
.section-header.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--rust);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--rust); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.06s; }
.reveal-delay-2.in-view { transition-delay: 0.12s; }
.reveal-delay-3.in-view { transition-delay: 0.18s; }
.reveal-delay-4.in-view { transition-delay: 0.24s; }
.reveal-delay-5.in-view { transition-delay: 0.3s; }
.reveal-delay-6.in-view { transition-delay: 0.36s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--rust); transform: translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-accent { background: var(--rust); color: #fff; }
.btn-accent:hover { background: var(--rust-dark); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.logo { display: flex; align-items: baseline; gap: 3px; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); text-transform: uppercase; }
.logo .dot { color: var(--rust); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a:not(.btn) {
  position: relative;
  font-weight: 500; color: var(--ink-70); font-size: 0.92rem;
  padding: 8px 16px;
  transition: color 0.2s ease;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--rust); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after, .site-nav a.active:not(.btn)::after { transform: scaleX(1); }
.site-nav a.active:not(.btn) { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 10; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .rust { color: var(--rust); }
.hero p.lead { font-size: 1.15rem; margin-bottom: 40px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--border); padding-top: 32px; flex-wrap: wrap; }
.hero-stats div { flex: 1; min-width: 140px; padding-right: 32px; }
.hero-stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 700; color: var(--ink); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-50); font-weight: 500; }

/* ---------- Marquee ---------- */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 22px 0; background: var(--bg-alt); }
.marquee { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink-50); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.marquee span::after { content: "—"; color: var(--rust); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Honest / burned-before section ---------- */
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.honest-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.honest-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.honest-list li::before { content: "—"; color: var(--rust); font-weight: 700; }

/* ---------- Numbered dark section ---------- */
.edge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); margin-top: 48px; }
.edge-item { background: var(--ink); padding: 40px 32px; }
.edge-item .edge-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--rust); margin-bottom: 24px; letter-spacing: 0.05em; }
.edge-item h4 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.edge-item p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }

/* ---------- Service grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.service-card {
  position: relative;
  background: var(--paper);
  padding: 40px 32px;
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--bg-alt); }
.service-card .icon-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.85rem;
  color: var(--rust); margin-bottom: 20px; letter-spacing: 0.05em;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { margin-bottom: 24px; font-size: 0.93rem; min-height: 44px; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.service-card .card-link:hover { gap: 12px; color: var(--rust); border-color: var(--rust); }
.service-card.highlight { background: var(--ink); }
.service-card.highlight .icon-num { color: var(--rust); }
.service-card.highlight h3, .service-card.highlight p { color: #fff; }
.service-card.highlight p { color: rgba(255,255,255,0.65); }
.service-card.highlight .card-link { color: #fff; border-color: #fff; }
.service-card.highlight .card-link:hover { color: var(--rust); border-color: var(--rust); }
.service-card .badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--rust); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 5px 12px; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------- AI compare block ---------- */
.ai-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-compare h2 { color: #fff; margin-bottom: 18px; }
.ai-compare p { color: rgba(255,255,255,0.65); }
.compare-cards { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); }
.compare-card { background: var(--ink); padding: 26px 28px; transition: background 0.3s ease; }
.compare-card.win { background: #241611; }
.compare-card .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: 8px; font-weight: 600; }
.compare-card .value { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.compare-card.win .value { color: var(--rust); }

.partner-note { text-align: center; font-size: 0.85rem; color: var(--ink-50); max-width: 560px; margin: 24px auto 0; display: none; }
.partner-note.visible { display: block; }

/* ---------- Pricing table ---------- */
.pricing-table-wrap { border: 1px solid var(--border); overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pricing-table thead th {
  text-align: left; padding: 18px 24px; background: var(--bg-alt);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--ink-70);
  border-bottom: 1px solid var(--border);
}
.pricing-table thead th.col-rate { width: 220px; }
.pricing-table thead th.col-action { width: 150px; }
.pricing-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s ease; }
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--bg-alt); }
.pricing-table tbody tr.highlight-row { background: #fdf5f2; }
.pricing-table tbody tr.highlight-row:hover { background: #fbeae3; }
.pricing-table td { padding: 24px; vertical-align: top; }
.row-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--rust); margin-bottom: 6px; letter-spacing: 0.05em; }
.row-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-desc { font-size: 0.88rem; color: var(--ink-50); margin-top: 6px; max-width: 320px; }
.badge-inline { background: var(--rust); color: #fff; font-size: 0.62rem; font-weight: 700; padding: 3px 9px; letter-spacing: 0.05em; text-transform: uppercase; }
.rate-cell { font-size: 0.88rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.rate-cell .rate-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-50); font-weight: 600; margin-bottom: 4px; }

@media (max-width: 860px) {
  .pricing-table { min-width: 0; }
  .pricing-table thead { display: none; }
  .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td { display: block; width: 100%; }
  .pricing-table tbody tr { padding: 20px 4px; }
  .pricing-table td { padding: 6px 0; }
  .rate-cell { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .rate-cell .rate-label { margin-bottom: 0; }
  .pricing-table td.action-cell { margin-top: 14px; }
}

/* ---------- Reason grid (why small team wins) ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 44px; }
.reason-item { background: var(--paper); padding: 36px 32px; }
.reason-item .reason-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--rust); margin-bottom: 18px; letter-spacing: 0.05em; }
.reason-item h4 { margin-bottom: 10px; font-size: 1.05rem; }
.reason-item p { font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band.on-dark h2 { color: #fff; }
.cta-band.on-dark p { color: rgba(255,255,255,0.6); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--border); padding: 44px; max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-70); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 0;
  font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--bg);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--rust); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.85rem; color: var(--ink-50); margin-top: 12px; text-align: center; }

.alert { padding: 14px 18px; margin-bottom: 24px; font-size: 0.92rem; border: 1px solid; }
.alert-error { background: #fdf1ee; color: #9e3b1f; border-color: #f0c9bd; }
.alert-success { background: #f0f7ee; color: #3a6b2a; border-color: #c9e0bd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 72px 0 0; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: #fff; margin-bottom: 18px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: "Inter", sans-serif; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--rust); }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 300;
  width: 56px; height: 56px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); transition: background 0.2s ease, transform 0.2s ease;
}
.whatsapp-float:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-2px); }

/* ---------- Custom cursor ---------- */
.cursor-ring {
  position: fixed; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink);
  pointer-events: none; z-index: 999; transform: translate(-50%, -50%); opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cursor-ring.active { opacity: 1; }
.cursor-ring.hover { width: 52px; height: 52px; background: var(--rust); border-color: var(--rust); opacity: 0.12; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .footer-inner { grid-template-columns: 1fr; }
  .honest-grid { grid-template-columns: 1fr; gap: 40px; }
  .edge-grid, .reason-grid { grid-template-columns: 1fr; }
  .ai-compare { grid-template-columns: 1fr; gap: 36px; }
  .form-two { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 84px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 20px 24px;
    border-bottom: 1px solid var(--border); gap: 4px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; }
  .site-nav a:not(.btn)::after { left: 0; right: auto; width: 20px; }
  .nav-cta { width: 100%; margin-left: 0; margin-top: 8px; text-align: center; }
  .hero { padding: 72px 0 56px; }
  .hero-stats div { min-width: 45%; margin-bottom: 20px; }
  .section { padding: 60px 0; }
  .cursor-ring { display: none; }
}
