/* ============================================================
   SYNDEN Group – Main Stylesheet
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand palette */
  --clr-primary:      #6366f1;   /* indigo */
  --clr-primary-dark: #4f46e5;
  --clr-primary-light:#818cf8;
  --clr-accent:       #06b6d4;   /* cyan  */
  --clr-accent-dark:  #0891b2;

  /* Neutrals */
  --clr-bg:           #0a0b14;
  --clr-surface:      #111223;
  --clr-surface-2:    #1a1c2e;
  --clr-border:       rgba(99,102,241,0.18);
  --clr-text:         #e2e8f0;
  --clr-text-muted:   #94a3b8;
  --clr-white:        #ffffff;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --ease: cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utilities ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--clr-primary-light);
  outline-offset: 3px;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-dark));
  color: var(--clr-white);
  box-shadow: 0 0 0 0 transparent;
}
.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(99,102,241,.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn--ghost:hover {
  border-color: var(--clr-primary-light);
  color: var(--clr-primary-light);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline-light:hover {
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--sm  { padding: .45rem 1rem;   font-size: .875rem; }
.btn--lg  { padding: .85rem 2rem;   font-size: 1rem;    }
.btn--full { width: 100%; }

/* ── Scroll-fade animation ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Section shared ──────────────────────────────────────────── */
.section { padding-block: var(--section-py); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  margin-bottom: .75rem;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.section__sub {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10,11,20,.85);
  backdrop-filter: blur(12px);
  border-color: var(--clr-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  gap: 1px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  margin-right: 2px;
}

.logo-suffix {
  color: var(--clr-text-muted);
  font-weight: 400;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links > a:not(.btn) {
  font-size: .92rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color .2s;
}
.navbar__links > a:not(.btn):hover { color: var(--clr-white); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block-start: 68px;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(99,102,241,.18) 0%,
    rgba(6,182,212,.10) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  text-align: center;
  padding-block: 5rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.35);
  color: var(--clr-primary-light);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}

.hero__sub {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-primary-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%       { opacity: 1; transform: scaleY(1); }
  80%       { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── Stats ───────────────────────────────────────────────────── */
.stats {
  background: var(--clr-surface);
  border-block: 1px solid var(--clr-border);
  padding-block: 3.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
}

.stat-card__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}

.stat-accent {
  color: var(--clr-primary-light);
}

.stat-card__label {
  font-size: .875rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.stat-card__label--lg {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
}

.stat-card__sub {
  font-size: .85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  max-width: 200px;
}

/* ── Services ────────────────────────────────────────────────── */
.services {
  background: var(--clr-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99,102,241,.15);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--clr-primary-light);
  margin-bottom: 1.25rem;
  background: rgba(99,102,241,.12);
  border-radius: 12px;
  padding: 10px;
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: .6rem;
}

.service-card__text {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.service-card__list li {
  font-size: .83rem;
  color: var(--clr-text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-primary-light);
  font-size: .75rem;
}

/* ── About ───────────────────────────────────────────────────── */
.about { background: var(--clr-surface); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* Abstract graphic */
.about__graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
}

.ag-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ag-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  box-shadow: 0 0 12px rgba(99,102,241,.6);
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: .7; }
}

.ag-node--1 { top: 7%;  left: 44%; animation-delay: 0s; }
.ag-node--2 { top: 28%; right: 5%; animation-delay: .4s; }
.ag-node--3 { bottom: 12%; right: 17%; animation-delay: .8s; }
.ag-node--4 { bottom: 12%; left: 17%; animation-delay: 1.2s; }
.ag-node--5 { top: 28%;  left: 5%; animation-delay: 1.6s; }

.ag-node--center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(99,102,241,.4);
  animation: none;
}

.logo-mark-lg {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
}

/* Copy */
.about__text {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  font-size: .97rem;
  line-height: 1.75;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar__icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.pillar strong {
  display: block;
  color: var(--clr-white);
  font-weight: 700;
  margin-bottom: .2rem;
}

.pillar p {
  font-size: .88rem;
  color: var(--clr-text-muted);
  margin: 0;
}

/* ── Approach ────────────────────────────────────────────────── */
.approach {
  background: var(--clr-bg);
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}

.approach__step {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.approach__step:hover {
  border-color: var(--clr-accent);
  transform: translateY(-4px);
}
.approach__step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(6,182,212,.06) 0%,
    transparent 60%);
  pointer-events: none;
}

.step__number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(99,102,241,.25);
  margin-bottom: .75rem;
}

.step__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: .5rem;
}

.step__body p {
  font-size: .88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact {
  background: var(--clr-surface);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.contact__text {
  color: var(--clr-text-muted);
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--clr-text-muted);
  font-size: .9rem;
}

.contact__details svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--clr-primary-light);
}

.contact__details a {
  color: var(--clr-primary-light);
  transition: color .2s;
}
.contact__details a:hover { color: var(--clr-accent); }

/* Form */
.contact__form {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.1rem;
}

.form__group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form__group label span { color: var(--clr-primary-light); }

.form__group input,
.form__group textarea {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--clr-text);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  resize: vertical;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(148,163,184,.4);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

.form__group input.error,
.form__group textarea.error {
  border-color: #f87171;
}

.form__error {
  font-size: .78rem;
  color: #f87171;
  margin-top: -.3rem;
}

.form__disclaimer {
  text-align: center;
  font-size: .75rem;
  color: var(--clr-text-muted);
  margin-top: 1rem;
  opacity: .7;
}

/* Success message */
.form__success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form__success.is-visible { display: block; }
.form__success svg {
  width: 56px;
  height: 56px;
  color: #34d399;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.form__success h3 {
  color: var(--clr-white);
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.form__success p { color: var(--clr-text-muted); font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding-block-start: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--clr-border);
}

.footer__brand > p {
  color: var(--clr-text-muted);
  font-size: .88rem;
  margin-top: .75rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer__col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-text-muted);
  margin-bottom: .25rem;
}

.footer__col a {
  font-size: .88rem;
  color: var(--clr-text-muted);
  transition: color .2s;
}
.footer__col a:hover { color: var(--clr-white); }

.footer__bottom {
  padding-block: 1.5rem;
  text-align: center;
}

.footer__bottom p {
  font-size: .8rem;
  color: var(--clr-text-muted);
  opacity: .6;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__media { order: -1; }

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

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

@media (max-width: 700px) {
  .navbar__links .btn { display: none; }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,11,20,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--clr-border);
  }

  .navbar__links.is-open {
    display: flex;
  }

  .hamburger { display: flex; }

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

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

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; max-width: 320px; }
  .footer__links { grid-template-columns: 1fr; }
}
