/* ============================================================
   Co-Op Code — styles.css
   ============================================================ */

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

:root {
  --color-bg:        #0d1117;
  --color-surface:   #161b22;
  --color-border:    #21262d;
  --color-text:      #e6edf3;
  --color-muted:     #8b949e;
  --color-accent:    #3b82f6;
  --color-accent-hi: #60a5fa;
  --color-heading:   #ffffff;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max-width: 900px;
  --section-gap: clamp(4rem, 10vw, 8rem);
}

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

/* ---- Section label ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-hi);
  margin-bottom: 0.75rem;
}

/* ---- Hero ---- */
.hero {
  padding: clamp(5rem, 14vw, 10rem) 1.5rem clamp(4rem, 10vw, 8rem);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--color-accent-hi);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-muted);
  max-width: 60ch;
}

/* ---- About ---- */
.about {
  padding: var(--section-gap) 1.5rem;
  border-top: 1px solid var(--color-border);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about p {
  color: var(--color-muted);
  max-width: 65ch;
  margin-bottom: 1rem;
}

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

/* ---- Services ---- */
.services {
  padding: var(--section-gap) 1.5rem;
  border-top: 1px solid var(--color-border);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-header {
  margin-bottom: 3rem;
}

.services-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.service-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- Products ---- */
.products {
  padding: var(--section-gap) 1.5rem;
  border-top: 1px solid var(--color-border);
}

.products-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.products h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.product-card-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
}

.product-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent-hi);
  white-space: nowrap;
}

.product-link:hover { text-decoration: underline; }

.product-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 65ch;
}

/* ---- Contact ---- */
.contact {
  padding: var(--section-gap) 1.5rem;
  border-top: 1px solid var(--color-border);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.contact-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.contact-cta:hover {
  background: var(--color-accent-hi);
  text-decoration: none;
}

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

.site-footer .container {
  display: flex;
  justify-content: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .product-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}
