/* ============================================================
   Tandy Services — main stylesheet
   Dark / electric-violet, built around the TS monogram
   ============================================================ */

:root {
  --bg:        #0a0712;
  --bg-2:      #0f0a1c;
  --surface:   #15102a;
  --surface-2: #1c1538;
  --border:    #2a2150;
  --border-2:  #392c6b;

  --violet:    #8b5cf6;
  --violet-2:  #a855f7;
  --violet-lt: #c4b5fd;
  --blue:      #38bdf8;
  --glow:      rgba(139, 92, 246, .55);

  --text:      #ece9f6;
  --text-dim:  #b6aed0;
  --text-faint:#7e76a0;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow:    0 20px 60px -20px rgba(0,0,0,.7);
  --shadow-violet: 0 18px 50px -18px var(--glow);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* radial glow backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(56,189,248,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139,92,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }

.grad {
  background: linear-gradient(100deg, var(--violet-lt), var(--violet-2) 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--violet), var(--violet-2));
  color: #fff; box-shadow: var(--shadow-violet);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -16px var(--glow); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--violet); background: rgba(139,92,246,.08); }
.btn svg { width: 17px; height: 17px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,7,18,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 12px var(--glow)); }
.brand .sub { color: var(--text-faint); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; display:block; margin-top:-3px;}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: .94rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 20px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 170px 0 110px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--violet-lt);
  background: rgba(139,92,246,.10);
  border: 1px solid var(--border-2);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 30px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-mark { width: 96px; height: 96px; margin: 0 auto 26px; filter: drop-shadow(0 10px 36px var(--glow)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: 22px; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--text-dim); max-width: 660px; margin: 0 auto 38px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; }
.hero-stats .lbl { color: var(--text-faint); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.eyebrow { color: var(--violet-2); font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

/* ---------- about / how ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: start; }
.about-grid p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.06rem; }
.about-grid p strong { color: var(--text); font-weight: 600; }
.how-card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.how-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.how-step:last-child { border-bottom: 0; padding-bottom: 0; }
.how-step:first-child { padding-top: 0; }
.how-step .n {
  flex: 0 0 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: rgba(139,92,246,.12); color: var(--violet-lt); border: 1px solid var(--border-2);
}
.how-step h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 3px; }
.how-step p { color: var(--text-faint); font-size: .94rem; margin: 0; }

/* ---------- work / projects ---------- */
.projects { display: grid; gap: 26px; }
.project {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s;
}
.project:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-violet); }
.project-inner { display: grid; grid-template-columns: 1.4fr 1fr; }
.project-body { padding: 38px; }
.project-side { padding: 38px; background: rgba(0,0,0,.18); border-left: 1px solid var(--border); }
.project-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.tag-client { color: var(--blue); background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.3); }
.tag-owned  { color: #fcd34d; background: rgba(252,211,77,.10); border: 1px solid rgba(252,211,77,.32); }
.project h3 { font-size: 1.7rem; margin-bottom: 6px; }
.project .domain { color: var(--violet-2); font-family: var(--font-display); font-size: .92rem; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 6px; }
.whw { margin-bottom: 18px; }
.whw .k { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-lt); margin-bottom: 4px; }
.whw .v { color: var(--text-dim); font-size: 1rem; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.feat-list li { display: flex; gap: 11px; color: var(--text-dim); font-size: .96rem; }
.feat-list li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--violet), var(--blue)); }
.project .visit { font-family: var(--font-display); font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; transition: gap .18s, color .18s; }
.project .visit:hover { color: var(--violet-lt); gap: 12px; }
.project .visit svg { width: 16px; height: 16px; }
.visit { font-family: var(--font-display); font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; transition: gap .18s, color .18s; }
.visit:hover { color: var(--violet-lt); gap: 12px; }
.visit svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------- AI section ---------- */
.ai-feature {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(139,92,246,.16), transparent 60%),
    linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-2);
  border-radius: 22px; padding: 56px; box-shadow: var(--shadow);
}
.ai-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.ai-grid h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.ai-grid > div > p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 16px; }
.ai-stack { display: grid; gap: 14px; }
.ai-item { display: flex; gap: 15px; align-items: flex-start; background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.ai-item .ico { flex: 0 0 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,92,246,.12); border: 1px solid var(--border-2); }
.ai-item .ico svg { width: 22px; height: 22px; color: var(--violet-lt); }
.ai-item h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 3px; }
.ai-item p { color: var(--text-faint); font-size: .92rem; margin: 0; }

/* ---------- contact ---------- */
.contact-card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 56px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: start;
}
.contact-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.contact-card .blurb { color: var(--text-dim); font-size: 1.06rem; margin-bottom: 26px; }
.contact-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-points li { display: flex; gap: 13px; align-items: center; color: var(--text-dim); }
.contact-points .ico { flex: 0 0 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,92,246,.10); border: 1px solid var(--border-2); }
.contact-points .ico svg { width: 19px; height: 19px; color: var(--violet-lt); }

form .field { margin-bottom: 16px; }
form label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-dim); margin-bottom: 7px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--text);
  background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .16s, box-shadow .16s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
form textarea { resize: vertical; min-height: 120px; }
form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: 12px; text-align: center; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-ok  { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.4);  color: #86efac; }
.alert-err { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.4);  color: #fca5a5; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: .94rem; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--violet-lt); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: .86rem; }

/* ---------- subpage hero + breadcrumb ---------- */
.page-hero { padding: 150px 0 30px; text-align: center; }
.crumb { display: inline-flex; gap: 8px; align-items: center; color: var(--text-faint); font-size: .86rem; margin-bottom: 22px; }
.crumb a { color: var(--text-dim); } .crumb a:hover { color: var(--violet-lt); }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 700; margin-bottom: 18px; }
.page-hero .lead { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: var(--text-dim); max-width: 680px; margin: 0 auto; }

/* ---------- pull stats row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 16px 0 8px; }
.stat-row .cell { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 18px; text-align: center; }
.stat-row .cell .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; }
.stat-row .cell .l { color: var(--text-faint); font-size: .82rem; letter-spacing: .04em; margin-top: 2px; }

/* ---------- prose ---------- */
.prose p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 18px; }
.prose p strong { color: var(--text); }
.prose .lead-p { font-size: 1.18rem; color: var(--text); }

/* ---------- capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
}
.cap-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-violet); }
.cap-card .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,92,246,.12); border: 1px solid var(--border-2); margin-bottom: 16px; }
.cap-card .ico svg { width: 22px; height: 22px; color: var(--violet-lt); }
.cap-card h3 { font-size: 1.12rem; margin-bottom: 7px; }
.cap-card p { color: var(--text-faint); font-size: .95rem; }

/* ---------- two-col feature blocks ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.feature-block {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.feature-block h3 { font-size: 1.4rem; margin-bottom: 14px; }
.feature-block p { color: var(--text-dim); margin-bottom: 14px; }
.feature-block .mini { display: flex; gap: 11px; align-items: flex-start; color: var(--text-dim); font-size: .96rem; margin-top: 10px; }
.feature-block .mini::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--violet), var(--blue)); }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.road-card {
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 28px; position: relative;
}
.road-card .phase { font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.road-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.road-card p { color: var(--text-dim); font-size: .97rem; }

/* ---------- live banner ---------- */
.live-banner {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: radial-gradient(600px 200px at 0% 0%, rgba(252,211,77,.10), transparent 60%), linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 30px 34px;
}
.live-banner .pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #fcd34d; background: rgba(252,211,77,.10); border: 1px solid rgba(252,211,77,.32); padding: 7px 14px; border-radius: 999px; }
.live-banner .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 12px #22c55e; animation: pulse 2s infinite; }
.live-banner p { color: var(--text-dim); margin: 0; flex: 1 1 300px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--violet-2); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 24px 22px; color: var(--text-dim); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .about-grid, .ai-grid, .contact-card, .project-inner,
  .feature-row, .roadmap { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .project-side { border-left: 0; border-top: 1px solid var(--border); }
  .ai-feature, .contact-card { padding: 38px 28px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(10,7,18,.96); backdrop-filter: blur(14px);
    padding: 24px; border-bottom: 1px solid var(--border);
  }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 30px; }
  section { padding: 70px 0; }
  .project-body, .project-side { padding: 28px; }
  .cap-grid { grid-template-columns: 1fr; }
  .feature-block, .live-banner { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
