/* ============================================================
   SyncBit Software — style.css
   Palette (from brand logo):
     charcoal  #2B2F35
     teal      #3FA291
     dark bg   #0D1413  (matches the dark logo assets)
   ============================================================ */

:root {
  --bg:        #0D1413;
  --bg-alt:    #101A18;
  --panel:     #131E1C;
  --panel-2:   #172422;
  --border:    #22312E;
  --charcoal:  #2B2F35;
  --teal:      #3FA291;
  --teal-hi:   #54C4B0;
  --teal-glow: rgba(63, 162, 145, 0.35);
  --text:      #E9EDEC;
  --muted:     #93A49F;
  --font-head: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius:    14px;
  --nav-h:     72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-hi);
  outline-offset: 5px;
}

::selection { background: var(--teal); color: #08100E; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}
.container-narrow { width: min(720px, 92vw); }

.accent { color: var(--teal-hi); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 20, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 49, 46, 0.7);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img { width: 42px; height: auto; }

.nav-brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-links a.nav-cta {
  color: var(--teal-hi);
  border: 1px solid var(--teal);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a.nav-cta:hover {
  background: var(--teal);
  color: #08100E;
  box-shadow: 0 0 24px var(--teal-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 162, 145, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 162, 145, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(560px, 82vw);
  margin-bottom: 8px;
}

.hero-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.6vw, 3rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.hero-sub {
  margin-top: 18px;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.hero-scroll:hover { opacity: 1; }

.hero-scroll-chevron {
  display: block;
  width: 14px; height: 14px;
  border-right: 2px solid var(--teal-hi);
  border-bottom: 2px solid var(--teal-hi);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  color: #08100E;
}
.btn-primary:hover {
  background: var(--teal-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-hi);
  transform: translateY(-2px);
}

.btn-wide { width: 100%; }

.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: saturate(0.6);
}

/* ============ Sections ============ */
.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.kicker {
  font-family: var(--font-head);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.section-lead {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--teal-glow);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(63, 162, 145, 0.12);
  border: 1px solid rgba(63, 162, 145, 0.3);
  color: var(--teal-hi);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.service-card p { color: var(--muted); font-size: 0.98rem; }

/* ============ Work ============ */
.work-intro { max-width: 720px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 26px;
}

/* a single featured project: keep the card centred instead of
   leaving an empty second column */
.work-grid-solo {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.work-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--teal-glow);
}

.work-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0A1110;
}

.work-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card:hover .work-card-media img { transform: scale(1.045); }

.work-card-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.work-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.035em;
}

.work-card-body p { color: var(--muted); font-size: 0.98rem; }

.work-card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-hi);
}

.work-preview { cursor: zoom-in; }

/* ============ Security research ============ */
.security-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.security-mark {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  color: var(--teal-hi);
  background: rgba(63, 162, 145, 0.1);
}

.security-mark svg { width: 38px; height: 38px; }
.security-copy { max-width: 720px; min-width: 0; }
.security-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.security-heading h3 { font-family: var(--font-head); font-size: 1.6rem; }
.security-copy p { color: var(--muted); }
.security-copy .security-note { margin-top: 14px; font-size: 0.9rem; color: var(--teal-hi); }

/* ============ Badges ============ */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-hi);
  background: rgba(63, 162, 145, 0.12);
  border: 1px solid rgba(63, 162, 145, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.badge-live {
  color: #0D1413;
  background: var(--teal);
  border-color: var(--teal);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  margin-top: 10px;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.08rem;
  color: var(--muted);
}

.about-text strong { color: var(--text); }

.founder-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.founder-avatar {
  flex-shrink: 0;
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(63, 162, 145, 0.1);
  border: 1px solid rgba(63, 162, 145, 0.35);
}

.founder-avatar img { width: 42px; height: auto; }

.founder-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.founder-role {
  color: var(--teal-hi);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.founder-tags {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ============ Contact form ============ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label span {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5C6B67; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63, 162, 145, 0.18);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-top {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}
.footer-top:hover { color: var(--teal-hi); }

/* ============ Project page (ECHO) ============ */
.project-hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 40px;
  overflow: hidden;
}

.project-hero .hero-grid {
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black 20%, transparent 70%);
}

.crumb {
  color: var(--muted);
  transition: color 0.2s ease;
}
.crumb:hover { color: var(--teal-hi); }

.project-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: 0.22em;
  line-height: 1.05;
  text-shadow: 0 0 60px var(--teal-glow);
}

.project-sub {
  margin-top: 18px;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--muted);
}

.project-sub strong { color: var(--text); }

.project-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-cover {
  padding: 30px 0 0;
}

.project-cover img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ============ Features ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.feature-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 16px;
}

.feature h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.feature p { color: var(--muted); font-size: 0.98rem; }
.feature strong { color: var(--text); }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #0A1110;
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 13, 12, 0.94);
  display: grid;
  place-items: center;
  padding: 4vmin;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 22px; right: 30px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 1; }

/* ============ Release ============ */
.release { text-align: center; }
.release .section-lead { margin-inline: auto; }
.release .hero-actions { justify-content: center; }

/* ============ Reveal animations ============ */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-chevron { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .services-grid,
  .feature-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }

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

@media (max-width: 720px) {
  .section { padding: 80px 0; }

  .work-grid { grid-template-columns: 1fr; }
  .security-card { flex-direction: column; gap: 20px; padding: 28px 24px; }

  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: rgba(13, 20, 19, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links a {
    padding: 18px 0;
    border-top: 1px solid var(--border);
  }

  .nav-links a.nav-cta {
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-inner { flex-wrap: wrap; }

  .gallery { grid-template-columns: 1fr; }
}
