/* ShopSmith Compliance Website — Dark Premium Theme */

/* --- Bundled Inter font (OFL licensed) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-extrabold.woff2') format('woff2');
}

/* --- Design tokens --- */
:root {
  /* Surfaces */
  --color-bg:              #111113;
  --color-bg-elevated:     #1a1a1f;
  --color-bg-header:       rgba(17, 17, 19, 0.82);
  --color-bg-hover:        #222228;
  --color-bg-subtle:       #161618;

  /* Text */
  --color-text:            #ededef;
  --color-text-secondary:  #9a9aa2;
  --color-text-tertiary:   #65656d;

  /* Accent (shop-orange) */
  --color-accent:          #f97316;
  --color-accent-hover:    #fb923c;
  --color-accent-muted:    rgba(249, 115, 22, 0.12);
  --color-accent-border:   rgba(249, 115, 22, 0.25);

  /* Borders */
  --color-border:          #2a2a32;
  --color-border-subtle:   #1f1f27;

  /* Semantic */
  --color-warning-bg:      rgba(234, 179, 8, 0.08);
  --color-warning-border:  rgba(234, 179, 8, 0.30);
  --color-warning-text:    #facc15;
  --color-info-bg:         rgba(249, 115, 22, 0.06);
  --color-info-border:     rgba(249, 115, 22, 0.20);

  /* Layout */
  --max-width:             840px;
  --radius-sm:             6px;
  --radius-md:             10px;
  --radius-lg:             14px;
  --header-height:         60px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

/* --- Base --- */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.06), transparent);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.logo__icon { width: 24px; height: 24px; }

.nav { display: flex; gap: 1.5rem; }

.nav__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__link:hover { color: var(--color-text); }

.nav__link--active {
  color: var(--color-accent);
  box-shadow: inset 0 -2px 0 var(--color-accent);
  padding-bottom: 2px;
}

/* --- Main --- */
main { padding: 3rem 0; }

h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-text); }
h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--color-text); }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--color-text); }

p { margin-bottom: 1rem; color: var(--color-text-secondary); }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--color-text-secondary); }
li { margin-bottom: 0.4rem; }

strong { color: var(--color-text); }

a { color: var(--color-accent); transition: color 0.15s ease; }
a:hover { color: var(--color-accent-hover); }

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* --- Trust bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
}

.trust-bar__icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* --- Section --- */
.section { padding: 2rem 0; }

.section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-accent);
  margin-top: 0;
}

/* --- Card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--color-accent-border);
  background: var(--color-bg-hover);
}

.card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.card__body {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Diagram --- */
.diagram {
  max-width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 1.5rem 0;
}

.diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.diagram figcaption {
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Screenshot --- */
.screenshot {
  max-width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.screenshot figcaption {
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Notice boxes --- */
.notice {
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notice strong {
  display: block;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.notice p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.notice p:last-child { margin-bottom: 0; }

.notice ul {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.notice--warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  border-left-color: var(--color-warning-text);
}

.notice--warning strong {
  color: var(--color-warning-text);
}

/* --- Legal --- */
.legal-meta {
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-review {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.site-footer__legal,
.site-footer__copy {
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.site-footer__links a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.site-footer__links a:hover { color: var(--color-accent); }

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero__title { font-size: 1.85rem; }
  .hero__subtitle { font-size: 1rem; }
  .trust-bar { gap: 0.5rem; }
  .trust-bar__item { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .site-header { height: auto; }
  .site-header__inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
  }
  .nav { gap: 1rem; }
}
