/* ===== Tokens ===== */
:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e10;
  --surface: #141417;
  --surface-2: #1a1a1f;
  --border: #232329;
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  --accent: #2dd4bf;
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent) 60%, #0ea5a4);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.6);
}
.brand__name { color: var(--text); }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 0.92rem; color: var(--text-dim); font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ===== Hero ===== */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 60%);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px;
  background: linear-gradient(180deg, #fff, #c7c7cf);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { max-width: 620px; margin: 0 auto 40px; font-size: 1.15rem; color: var(--text-dim); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(180deg, #fff, #e4e4e7); color: #0a0a0b;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 255, 255, 0.14); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.section__lead { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; }

/* ===== Product cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; font-weight: 800; font-size: 0.95rem;
  color: #fff; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.card__logo--img {
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden;
}
.card__logo--img img { width: 34px; height: 34px; object-fit: contain; display: block; }
.card__logo--fill { background: none; border: none; box-shadow: none; overflow: hidden; }
.card__logo--fill img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__arrow { color: var(--text-faint); font-size: 1.2rem; transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.card:hover .card__arrow { transform: translate(3px, -3px); color: var(--accent); }
.card__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.card__tag { color: var(--accent); font-size: 0.85rem; font-weight: 500; margin: 4px 0 14px; }
.card__desc { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.card__link { margin-top: 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-faint); transition: color 0.2s var(--ease); }
.card:hover .card__link { color: var(--text); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about__copy p { color: var(--text-dim); margin-top: 18px; font-size: 1.05rem; }
.about__copy .section__title { margin-bottom: 8px; }
.about__stats { display: flex; flex-direction: column; gap: 20px; }
.stat {
  padding: 22px 26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: baseline; gap: 16px;
}
.stat__num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.stat__label { color: var(--text-dim); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { text-align: center; max-width: 600px; }
.contact .section__title { margin-bottom: 14px; }
.contact__lead { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 32px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-alt); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--text-faint); font-size: 0.85rem; width: 100%; text-align: center; padding-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .nav__links {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 0 24px;
    max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease);
  }
  .nav__links.is-open { max-height: 280px; }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--border); }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
