/* Stryder Tech — shared site styles. Source of truth for tokens, header, buttons, cards, footer.
   Edit here once; every page (home, service pages, contact) links to this file. */
:root {
  /* brand constants (both themes) */
  --brand-700: #4A43C4;
  --brand-600: #574FD6;
  --brand-500: #6C63E6;
  --brand-400: #8A85EC;
  --steel-500: #7890A8;
  --accent-500: #E8A94B;   /* warm counter-accent */
  --accent-400: #F0BE73;
  --ok:  #2FA968;
  --err: #D64545;
  --grad-moon: linear-gradient(180deg, #7E93B4 0%, #6C63E6 55%, #574FD6 100%);

  /* --- LIGHT theme (default) --- */
  --grad-word: linear-gradient(135deg, #574FD6 0%, #6C63E6 45%, #7890A8 100%);
  --bg:        #F6F6FB;
  --surface:   #FFFFFF;
  --surface-2: #FBFBFE;
  --border:    #E7E7F0;
  --border-strong: #DADAE6;
  --heading:   #17171F;
  --text:      #42424F;
  --text-muted:#6E6E82;
  --link-hover:#574FD6;
  --field-bg:  #FFFFFF;
  --hero-glow: radial-gradient(70% 120% at 50% -10%, rgba(108,99,230,0.12) 0%, rgba(108,99,230,0.03) 45%, transparent 70%);
  --shadow-2:    0 4px 14px rgba(20,20,45,.06), 0 10px 34px rgba(108,99,230,.08);
  --shadow-glow: 0 0 0 1px rgba(108,99,230,.18), 0 10px 34px rgba(108,99,230,.16);
  color-scheme: light;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

:root[data-theme="dark"] {
  --grad-word: linear-gradient(135deg, #8A85EC 0%, #6C63E6 40%, #7890A8 100%);
  --bg:        #14141F;
  --surface:   #1C1C2B;
  --surface-2: #0E0E17;
  --border:    #262637;
  --border-strong: #3A3A50;
  --heading:   #F0F0F2;
  --text:      #C2C4D6;
  --text-muted:#9090A8;
  --link-hover:#8A85EC;
  --field-bg:  rgba(255,255,255,0.04);
  --hero-glow: radial-gradient(70% 120% at 50% -10%, rgba(108,99,230,0.18) 0%, rgba(108,99,230,0.04) 40%, transparent 70%);
  --ok:  #48D081;
  --err: #F0574F;
  --shadow-2:    0 4px 12px rgba(0,0,0,.5), 0 8px 32px rgba(108,99,230,.10);
  --shadow-glow: 0 0 0 1px rgba(108,99,230,.25), 0 8px 40px rgba(108,99,230,.22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4, .section-title { font-family: var(--font-display); }

/* Header + themable logo lockup */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); transition: background .25s ease, border-color .25s ease; position: sticky; top: 0; z-index: 20; }
.logo-lockup { display: flex; align-items: center; gap: 11px; }
.logo-mark { height: 42px; width: auto; display: block; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-style: italic;
            font-size: 1.25rem; letter-spacing: -0.01em; color: var(--heading); line-height: 1; }
.wordmark .t { background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Theme toggle switch (far right) */
.theme-switch {
  flex: 0 0 auto; width: 58px; height: 30px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  position: relative; cursor: pointer; padding: 0; transition: background .25s ease, border-color .25s ease;
}
.theme-switch .ico { position: absolute; top: 0; height: 30px; display: flex; align-items: center; font-size: 12px; line-height: 1; opacity: .8; }
.theme-switch .sun  { left: 8px; }
.theme-switch .moon { right: 8px; }
.theme-switch .knob {
  position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 2px 6px rgba(0,0,0,.28); transition: transform .22s cubic-bezier(.4,.1,.3,1.3);
}
:root[data-theme="dark"] .theme-switch .knob { transform: translateX(28px); }
.theme-switch:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.btn-primary {
  background: var(--brand-500); color: #fff; padding: 12px 28px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.btn-accent {
  background: var(--accent-500); color: #241a06; padding: 12px 28px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 600; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-accent:hover { background: var(--accent-400); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,169,75,.28); }
.btn-accent:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; }

.btn-secondary {
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  padding: 12px 28px; border-radius: 8px; font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.01em; transition: border-color .15s ease, color .15s ease, background .15s ease; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--brand-400); color: var(--heading); background: rgba(108,99,230,0.06); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: rgba(108,99,230,0.4); transform: translateY(-4px); box-shadow: var(--shadow-2); }

.service-icon {
  width: 56px; height: 56px; background: rgba(108,99,230,0.10); border: 1px solid rgba(108,99,230,0.18);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px;
}

.section-title { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; color: var(--heading); }
.section-subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 48px; max-width: 600px; }

.hero-gradient { position: relative; background: var(--hero-glow); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 16px; }
.grad-word { background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.nav-link:hover { color: var(--heading); }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color .15s; }
.footer-link:hover { color: var(--link-hover); }

.input-field {
  background: var(--field-bg); border: 1px solid var(--border-strong); color: var(--heading);
  padding: 12px 16px; border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; transition: border-color .15s, background .15s;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus { outline: none; border-color: var(--brand-500); background: rgba(108,99,230,0.05); }
select.input-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E82' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* Legal pages (privacy / terms) — themable, inherits tokens */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; color: var(--heading); }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; color: var(--heading); }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--heading); }
.legal p, .legal li { color: var(--text); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--link-hover); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; color: var(--text); }
.legal th { background: rgba(108,99,230,0.06); color: var(--heading); font-weight: 600; }
.legal .note { background: rgba(108,99,230,0.06); border: 1px solid rgba(108,99,230,0.18); border-radius: 10px; padding: 16px 20px; margin: 24px 0; font-size: 0.92rem; color: var(--text-muted); }
.legal .lede { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; color: var(--link-hover); text-decoration: none; font-size: 0.95rem; margin-bottom: 32px; }
.back-home:hover { text-decoration: underline; }

/* Breadcrumb + service detail page furniture */
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link-hover); }
.list-check { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list-check li { padding-left: 28px; position: relative; color: var(--text); line-height: 1.6; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-500); font-weight: 700; }
