/* TechDrive — shared styles for project case-study pages */
:root{
  --navy:#0f172a;
  --slate:#475569;
  --muted:#64748b;
  --blue:#2563eb;
  --cyan:#06b6d4;
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --border:#e2e8f0;
  --grad:linear-gradient(135deg,#2563eb 0%,#06b6d4 100%);
  --radius:18px;
  --shadow:0 10px 40px rgba(15,23,42,.08);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  color:var(--navy);background:var(--bg);line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%}
a{color:inherit;text-decoration:none}
.container{max-width:1140px;margin:0 auto;padding:0 24px}

/* Header */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.85);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:1.25rem;letter-spacing:.02em}
.brand .mark{width:38px;height:38px;flex:none;display:block}
.brand span b{color:var(--blue)}
nav.links{display:flex;gap:32px;font-weight:500;font-size:.95rem;color:var(--slate)}
nav.links a:hover{color:var(--blue)}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--grad);color:#fff;font-weight:600;
  padding:12px 26px;border-radius:999px;font-size:.95rem;
  box-shadow:0 6px 20px rgba(37,99,235,.30);
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(37,99,235,.38)}
.nav .btn{padding:10px 22px}

/* Case hero */
.case-hero{background:var(--bg-soft);border-bottom:1px solid var(--border);position:relative;overflow:hidden}
.case-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(600px 400px at 85% 0%,rgba(6,182,212,.10),transparent 60%);
  pointer-events:none;
}
.case-hero-inner{position:relative;padding:64px 0 72px;max-width:820px}
.back{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.9rem;font-weight:600;color:var(--muted);margin-bottom:44px;
}
.back:hover{color:var(--blue)}
.case-logo{height:76px;display:flex;align-items:center;gap:18px;margin-bottom:34px}
.case-logo img,.case-logo svg{height:100%;width:auto}
.case-logo .logo-word{font-size:2rem;font-weight:800;letter-spacing:-.02em}
.case-hero h1{font-size:clamp(1.9rem,4vw,2.9rem);line-height:1.15;font-weight:800;letter-spacing:-.02em}
.case-hero p.lead{margin-top:20px;font-size:1.12rem;color:var(--slate);max-width:640px}
.meta{margin-top:36px;display:flex;flex-wrap:wrap;gap:12px}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.85rem;font-weight:600;padding:9px 18px;border-radius:999px;
  background:#fff;border:1px solid var(--border);color:var(--slate);
}
.chip.link{color:var(--blue);border-color:rgba(37,99,235,.3)}
.chip.link:hover{background:rgba(37,99,235,.06)}
.chip.link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Sections */
section{padding:80px 0}
section.alt{background:var(--bg-soft)}
.case-grid{display:grid;grid-template-columns:280px 1fr;gap:56px;align-items:start}
.case-grid .kicker-col{position:sticky;top:104px}
.kicker{font-size:.8rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.case-grid h2{font-size:clamp(1.5rem,2.8vw,2rem);font-weight:800;letter-spacing:-.02em;line-height:1.25}
.prose{max-width:680px}
.prose p{color:var(--slate);margin-bottom:18px;font-size:1.02rem}
.prose p:last-child{margin-bottom:0}
.prose strong{color:var(--navy)}

/* Feature grid */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:36px}
.feature{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:26px 24px}
section.alt .feature{background:#fff}
.feature .f-icon{
  width:44px;height:44px;border-radius:12px;background:var(--grad);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
  box-shadow:0 5px 14px rgba(37,99,235,.25);
}
.feature .f-icon svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.feature h3{font-size:1rem;font-weight:700;margin-bottom:6px}
.feature p{font-size:.9rem;color:var(--slate)}

/* Result panel */
.result-panel{
  background:var(--navy);border-radius:24px;padding:52px 48px;color:#e2e8f0;
  position:relative;overflow:hidden;box-shadow:var(--shadow);
}
.result-panel::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(420px 300px at 92% -10%,rgba(6,182,212,.30),transparent 60%);
  pointer-events:none;
}
.result-panel .kicker{color:#67e8f9}
.result-panel h2{color:#fff}
.result-panel .prose{position:relative}
.result-panel .prose p{color:#94a3b8}
.result-panel .prose strong,.result-panel .result-list strong{color:#fff}
.result-list{margin-top:28px;display:grid;gap:14px;position:relative}
.result-list li{
  list-style:none;display:flex;gap:14px;align-items:flex-start;
  color:#cbd5e1;font-size:.98rem;
}
.result-list li svg{flex:none;width:22px;height:22px;margin-top:2px;stroke:#22d3ee;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Tech tags */
.tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.tag{
  font-size:.8rem;font-weight:600;padding:7px 15px;border-radius:999px;
  background:rgba(37,99,235,.07);border:1px solid rgba(37,99,235,.18);color:var(--blue);
}

/* CTA */
.cta{background:var(--bg-soft);border-top:1px solid var(--border);text-align:center}
.cta h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:800;letter-spacing:-.02em}
.cta p{margin:16px auto 34px;color:var(--slate);max-width:520px}
.cta .btn{font-size:1rem;padding:15px 34px}

/* Footer */
footer{background:#0b1120;color:#64748b;padding:36px 0;font-size:.88rem}
.foot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.foot .brand{font-size:1.05rem;color:#e2e8f0}
.foot .brand .mark{width:30px;height:30px}
.foot nav{display:flex;gap:24px}
.foot nav a:hover{color:#e2e8f0}

@media (max-width:860px){
  .case-grid{grid-template-columns:1fr;gap:20px}
  .case-grid .kicker-col{position:static}
  nav.links{display:none}
  section{padding:64px 0}
  .result-panel{padding:40px 28px}
}
