/* ==========================================================
   SolbaTechs — main stylesheet
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b14;
  --bg-alt: #11111d;
  --surface: #171726;
  --surface-2: #1f1f33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ecebf5;
  --muted: #a3a2b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --container: 1160px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); box-shadow: none; }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 20, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11, 11, 20, 0.9); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 500; }
.brand strong { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 600px;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, rgba(34, 211, 238, 0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 64px 0 0;
  padding: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.45); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.18));
  color: var(--accent-2);
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Products ---------- */
.products-grid { grid-template-columns: repeat(6, 1fr); }
.products-grid > .product { grid-column: span 2; }
.products-grid > .product:nth-child(4) { grid-column: 2 / span 2; }

.product {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
}
.product-logo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px -10px var(--p1);
}
.product-body { flex: 1; min-width: 0; }
.product-type {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: 6px;
}
.product h3 { font-size: 1.45rem; margin-bottom: 0.4em; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.tags li {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.about-text p:not(.eyebrow) { color: var(--muted); }

.values { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; }
.values li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.values strong { font-size: 1.05rem; }
.values span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact / CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(60% 80% at 80% 100%, rgba(34, 211, 238, 0.22), transparent 70%),
    var(--surface);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.contact-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: rgba(11, 11, 20, 0.55);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-list a:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.5); }
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.contact-email { font-weight: 600; overflow-wrap: anywhere; }
.contact-hint { color: var(--muted); font-size: 0.875rem; }

@media (max-width: 900px) {
  .contact-list { grid-template-columns: 1fr; max-width: 420px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 300px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { margin: 0 0 4px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid > .product { grid-column: auto; }
  .products-grid > .product:nth-child(4) { grid-column: auto; }
  .products-grid > .product:last-child { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid > .product,
  .products-grid > .product:nth-child(4) { grid-column: auto; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--bg-alt);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 12px 0; font-size: 1.05rem; }
  .nav-links .btn { justify-content: center; margin-top: 8px; padding: 12px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 72px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.4rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .product-logo { width: 72px; height: 72px; border-radius: 16px; }
  .cta { padding: 56px 20px; }
  .footer-links { gap: 48px; }
}
