/* LumenLoom Design System */
/* Premium, calm, clean — no stock photos, no clutter */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef2ff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2e;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2a44;
    --accent: #818cf8;
    --accent-strong: #a5b4fc;
    --accent-soft: #1e1b4b;
  }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent-strong);
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section,
.section-alt {
  padding: 96px 0;
}

.section-alt {
  background-color: var(--surface);
}

@media (max-width: 768px) {
  .section,
  .section-alt {
    padding: 64px 0;
  }
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus {
  transform: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-strong);
}

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

.btn-ghost:hover {
  background-color: var(--surface);
  border-color: var(--border);
}

button {
  font: inherit;
}

/* Cards */
.card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.card:focus {
  transform: none;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
  max-width: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.site-nav .btn {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .site-nav .btn {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-hero {
  margin-bottom: 1.5rem;
}

.hero-lead {
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  justify-self: stretch;
}

.hero-image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .hero {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    justify-self: start;
    margin-top: 16px;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  text-align: center;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

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

/* Process */
.process-steps {
  counter-reset: process-step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding-left: 32px;
}

.process-step::before {
  counter-increment: process-step;
  content: counter(process-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Why LumenLoom */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-item h3 {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-card {
  text-align: center;
  background-color: var(--accent-soft);
}

.contact-card h2 {
  margin-bottom: 1rem;
}

.contact-card > p {
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-logo img {
  height: 28px;
}

.site-footer-line {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.site-footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
}

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

.site-footer-copyright {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Transitions */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Our apps */
.apps-grid {
  grid-template-columns: repeat(2, 1fr);
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.app-card .lead {
  margin: 0;
  flex: 1;
}

.app-link {
  margin-top: 1rem;
  color: var(--accent, #6c63ff);
  font-weight: 600;
  text-decoration: none;
}

.app-link:hover,
.app-link:focus {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero scene (animated SVG) */
.hero-image .scene {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.scene .node {
  transform-box: fill-box;
}

/* App icons */
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  margin-bottom: 0.75rem;
}

.app-card {
  will-change: transform;
  transform-style: preserve-3d;
}

/* Cards: lift on hover (pointer tilt is added by motion.js) */
.card {
  transform-style: preserve-3d;
}

/* Fine-tune section dividers so motion reads as a flowing page */
.section {
  position: relative;
  overflow: hidden;
}

/* Language switcher (added by lib/i18n_site.py) */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 16px 0 8px;
  font-size: 0.9rem;
}

.lang-switch a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus {
  opacity: 1;
  text-decoration: underline;
}

.lang-switch a[aria-current] {
  font-weight: 700;
  opacity: 1;
  text-decoration: underline;
}

/* Footer button: the footer link colour rule made its text hard to read */
.site-footer a.btn-primary {
  color: #0b1020;
}
