/* Shiftedfrequency — site styles */

:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --bg-card: #16181f;
  --border: #252830;
  --border-subtle: #1c1f27;
  --text: #f4f4f5;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #b8e62e;
  --accent-hover: #d4ff4d;
  --accent-muted: rgba(184, 230, 46, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Sans", var(--font-sans);
  --max-width: 1120px;
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border-subtle);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

/* Typography */
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

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

.section-intro {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-intro .lead {
  margin-bottom: 0;
}

.narrow {
  max-width: 42rem;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: rgba(184, 230, 46, 0.25);
}

.btn-primary:hover {
  background: rgba(184, 230, 46, 0.2);
  color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #3f4654;
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

  .card-grid--products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid--products {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card--feature h3 {
  font-size: 1.0625rem;
}

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .logo-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-card .logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card h3 a {
  color: var(--text);
  transition: color 0.15s ease;
}

.product-card h3 a:hover {
  color: var(--accent);
}

.product-card .desc {
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.product-link:hover {
  color: var(--accent-hover);
}

/* Leadership */
.profile-card {
  padding: 2rem;
}

.profile-card .role {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

/* Contact */
.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.25rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text);
}

.contact-list a {
  color: var(--accent);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Newsletter */
.newsletter-box {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(71, 80, 98, 0.2), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.newsletter-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-dim);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* Override third-party form inject styles */
.newsletter-box .formkit-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.newsletter-box .formkit-field {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0 !important;
}

.newsletter-box .formkit-input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  color: var(--text) !important;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}

.newsletter-box .formkit-submit {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: var(--bg) !important;
  background: var(--accent) !important;
  border: none !important;
  border-radius: 8px !important;
}

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

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a:hover {
  color: var(--text-muted);
}

/* Hero spacing */
.hero {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

/* Interior pages */
.page-header {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Privacy page */
.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.9375rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  text-decoration: underline;
}
