/* ─── Landing page styles ────────────────────────────────────
   stqn.tech
   Requires: tokens.css, base.css
──────────────────────────────────────────────────────────── */

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241,245,249,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1px;
}
.logo-dot   { color: var(--accent); }
.logo-typed { color: var(--text-muted); }
.logo-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .logo-cursor { animation: none; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#D8E3EE 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 80% 40%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 80% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h1 {
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-stats {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.stat-lang { gap: 0.5rem; }

.lang-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.lang-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid #BFDBFE;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

/* ─── Section scaffold ──────────────────────────────────── */
.section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ─── Services ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.service-card:nth-child(3n)        { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }
.service-card:hover                { background: var(--accent-tint); }
.service-card:hover .service-icon  { color: var(--accent); }

.service-icon {
  width: 20px;
  height: 20px;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.service-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.service-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.card-link:hover { border-bottom-color: var(--accent); }

/* ─── About (dark) ──────────────────────────────────────── */
.about {
  background: var(--dark-bg);
  color: #fff;
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #60A5FA;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about h2 {
  margin-bottom: 1.25rem;
  color: #fff;
}

.about-body {
  font-size: 0.9375rem;
  color: #94A3B8;
  line-height: 1.8;
}
.about-body + .about-body { margin-top: 1rem; }

.about-footnote {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #64748B;
  line-height: 1.6;
  border-top: 1px solid var(--dark-border);
  padding-top: 1rem;
}

.highlights { display: flex; flex-direction: column; gap: 1px; }

.highlight {
  background: var(--dark-surface);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.highlight:first-child { border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0; }
.highlight:last-child  { border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px); }

.highlight-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #E2E8F0;
}

.highlight-detail {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* ─── CTA ───────────────────────────────────────────────── */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
}

.cta-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--border);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(3n)        { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n)        { border-right: none; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .service-card:nth-last-child(-n+2) { border-bottom: none; }

  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats  { gap: 2rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { border-right: none !important; }
  .service-card:not(:last-child) { border-bottom: 1px solid var(--border) !important; }
  .service-card:last-child { border-bottom: none !important; }
}
