/* SmechOS -- hand-authored replica of the Wix marketing site layout */

:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --text: #f5f5f5;
  --text-dim: #b3b3b3;
  --accent: #ff5a4e;
  --accent-blue: #3b82f6;
  --border: #262626;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  color: var(--text-dim);
  margin: 0 0 1em;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

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

.btn-primary:hover {
  background: #ff7167;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.25), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(255, 90, 78, 0.15), transparent 50%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.15) translate(-2%, 2%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- generic section ---------- */

main > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.about, .performance, .cta {
  text-align: center;
}

.about p, .performance p {
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  margin-bottom: 1.2rem;
  position: relative;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  border: 2px solid #0a0a0a;
}

.feature-icon-layers::before {
  inset: 14px 10px;
  border-radius: 2px;
}

.feature-icon-layers::after {
  inset: 20px 16px;
  border-radius: 2px;
}

.feature-icon-facet::before {
  inset: 12px;
  transform: rotate(45deg);
}

.feature-icon-people::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 10px;
  left: 16px;
}

.feature-icon-people::after {
  inset: 26px 8px 8px 8px;
  border-radius: 8px 8px 0 0;
}

/* ---------- vision ---------- */

.vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* ---------- cta ---------- */

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 480px;
  margin-inline: auto;
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* ---------- responsive nav ---------- */

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- projects section (Smech Labs specific) ---------- */

.projects {
  text-align: center;
}

.feature-card .btn {
  margin-top: 0.5rem;
}

.feature-card p {
  margin-bottom: 1.25rem;
}
