/* ==========================================================================
   Synetrix — landing page styles
   Mobile-first, no build step, one font family.
   ========================================================================== */

:root {
  --bg: #070712;
  --bg-2: #0b0b1f;
  --panel: rgba(18, 19, 43, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4ff;
  --muted: rgba(235, 236, 255, 0.62);
  --muted-dim: rgba(235, 236, 255, 0.42);
  --accent: #00f0ff;
  --pink: #ff2e97;
  --mint: #2cf6b3;
  --yellow: #ffe066;

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 1100px;
  --radius: 26px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 240, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 30%, rgba(255, 46, 151, 0.07), transparent 70%),
    linear-gradient(180deg, #0a0a1c 0%, var(--bg) 55%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #001318;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--primary {
  color: #00141a;
  background: linear-gradient(135deg, #7ef8ff 0%, var(--accent) 55%, #6ee0ff 100%);
  box-shadow: 0 10px 34px -10px rgba(0, 240, 255, 0.65);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px -12px rgba(0, 240, 255, 0.8);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 18, 0.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
}

.brand-name {
  font-size: 17px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 22px);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  transition: color 0.25s ease;
}

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

.site-nav .nav-cta {
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.site-nav .nav-cta:hover {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.1);
  color: #ffffff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(48px, 12vh, 120px) 0 clamp(56px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.orb--1 {
  top: -12%;
  left: -10%;
  width: min(58vw, 460px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, rgba(0, 240, 255, 0.55), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.orb--2 {
  right: -14%;
  top: 12%;
  width: min(52vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 55% 45%, rgba(255, 46, 151, 0.42), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.orb--3 {
  left: 26%;
  bottom: -22%;
  width: min(60vw, 520px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.34), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 78%);
  opacity: 0.7;
}

.hero-inner {
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.75rem, 10.5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: clamp(20px, 4vw, 30px);
}

.text-grad {
  background: linear-gradient(105deg, #ffffff 4%, #a5f3ff 38%, #ff9ad5 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 5vw, 40px);
}

.hero-actions .btn {
  flex: 1 1 200px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 5vw, 52px);
  margin: clamp(40px, 8vw, 64px) 0 0;
  padding-top: clamp(24px, 5vw, 34px);
  border-top: 1px solid var(--border);
}

.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.hero-stats dt {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0;
  font-size: clamp(1.1rem, 4.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 12vw, 120px) 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(32px, 6vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.95rem, 6.5vw, 3rem);
  margin-bottom: 16px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(0.98rem, 3.6vw, 1.08rem);
  font-weight: 300;
}

/* ---------- Project cards ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 22px);
}

.project {
  --card-accent: var(--accent);
  --card-accent-soft: rgba(0, 240, 255, 0.14);
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 5vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, var(--card-accent-soft), transparent 55%),
    var(--panel);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    var(--card-accent-soft),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 38%, transparent);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.project:hover::before {
  opacity: 1;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-icon {
  width: clamp(58px, 15vw, 72px);
  height: clamp(58px, 15vw, 72px);
  flex: 0 0 auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 30px -16px rgba(0, 0, 0, 0.9),
    0 0 26px -10px var(--card-accent-soft);
  transition: transform 0.45s var(--ease);
}

.project:hover .project-icon {
  transform: scale(1.05) rotate(-2deg);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-title {
  font-size: clamp(1.3rem, 5vw, 1.55rem);
  letter-spacing: -0.03em;
  color: #ffffff;
}

.project-desc {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.65;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-dim);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.project-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.project:hover .project-cta svg {
  transform: translate(3px, -3px);
}

.project-policy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted-dim);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.project-policy:hover {
  color: var(--card-accent);
  text-decoration-color: currentColor;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(56px, 11vw, 100px) 0 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(0, 240, 255, 0.1), transparent 70%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.footer-inner {
  text-align: center;
}

.footer-inner h2 {
  font-size: clamp(1.9rem, 6.5vw, 2.8rem);
  margin-bottom: 14px;
}

.footer-inner > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 300;
}

.footer-inner .btn {
  margin-top: clamp(24px, 5vw, 34px);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 6vw, 46px);
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s ease, background-color 0.3s ease,
    transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 10px 26px -12px rgba(0, 240, 255, 0.6);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: fill 0.3s ease;
}

.socials a:hover svg {
  fill: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: clamp(34px, 7vw, 54px);
  padding: 24px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}

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

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.no-js .reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, 10%, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-10%, 8%, 0) scale(0.95); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(6%, -12%, 0) scale(1.1); }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 720px) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }

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

@media (max-width: 420px) {
  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-nav {
    gap: 2px;
    font-size: 13px;
  }

  .site-nav .nav-cta {
    padding: 0 13px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }

  .site-nav {
    font-size: 12.5px;
  }
}

@media (hover: none) {
  .project:hover {
    transform: none;
  }

  .project:hover .project-icon {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
