/* ============================================================
   Winzards Technologies — landing page styles
   Dark modern-tech theme. Tweak the tokens in :root to re-brand.
   ============================================================ */

:root {
  /* Brand / theme tokens */
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-deep: #6d28d9;

  --bg: #0a0a0f;
  --bg-soft: #101019;
  --surface: #14141f;
  --surface-2: #1a1a28;

  --text: #ececf3;
  --muted: #a3a3b6;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 18px 50px -12px rgba(139, 92, 246, 0.45);

  /* Layout */
  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Type */
  --font-head: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` contains horizontal overflow without making <body> a scroll
     container; `hidden` here would break `#top`/anchor + smooth scrolling. */
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

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

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 12px;
  --btn-pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.55);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 170px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -30% 0 auto 0;
  height: 720px;
  background:
    radial-gradient(680px 380px at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(520px 320px at 12% 18%, rgba(109, 40, 217, 0.20), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 35%, #c4b5fd 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

/* ---------- Generic section ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
.section > .container { position: relative; z-index: 1; }
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
}
.section__subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Offerings ---------- */
.offerings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  padding: 30px 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 22px 48px -22px rgba(139, 92, 246, 0.6);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.card__desc {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Process / How we work (connected flow) ---------- */
.process__flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.process__node {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 26px 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.process__node:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 22px 48px -22px rgba(139, 92, 246, 0.6);
}
.process__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.process__icon svg { width: 26px; height: 26px; }
.process__node-title { font-size: 1.06rem; margin-bottom: 8px; }
.process__node-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.process__arrow {
  flex: 0 0 30px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  opacity: 0.7;
}
.process__arrow svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .process__flow { flex-direction: column; align-items: stretch; }
  .process__node { width: 100%; }
  .process__arrow { transform: rotate(90deg); margin: 8px 0; }
}

/* ---------- Decorative constellation backgrounds ---------- */
.constellation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.constellation svg { width: 100%; height: 100%; display: block; }
.constellation__lines line { stroke: var(--accent); stroke-width: 1; opacity: 0.16; }
.constellation__nodes circle {
  fill: var(--accent-light);
  opacity: 0.5;
  animation: twinkle 4.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.85; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-14px, 9px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.constellation--drift svg { animation: drift 34s ease-in-out infinite; }
.constellation--hero { inset: -12% -8% auto auto; width: 72%; height: 88%; opacity: 0.55; }
.constellation--process { inset: 0 auto 0 0; width: 58%; opacity: 0.4; transform: scaleX(-1); }
.constellation--contact { inset: auto 0 0 0; height: 80%; opacity: 0.42; }

/* ---------- How we could help (use cases) ---------- */
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.usecase {
  position: relative;
  padding: 30px 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.usecase:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 22px 48px -22px rgba(139, 92, 246, 0.6);
}
.usecase__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 4px 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 16px;
}
.usecase__industry { font-size: 1.18rem; margin-bottom: 18px; }
.usecase__body { margin: 0; display: grid; gap: 14px; }
.usecase__row dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 3px;
}
.usecase__row dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ (native details/summary accordion) ---------- */
.faq__list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  overflow: hidden;
}
.faq__item[open] { border-color: rgba(139, 92, 246, 0.45); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  transition: color 0.2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #fff; }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent-light);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__a { padding: 0 22px 22px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact__card {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  overflow: hidden;
}
.contact__form {
  margin-top: 28px;
  text-align: left;
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field__label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.field__textarea {
  resize: vertical;
  min-height: 120px;
}
/* Honeypot: present in the DOM but off-screen and out of the focus order. */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile:empty { display: none; }
.contact__form-actions { margin-top: 4px; }
.contact__form-actions .btn { width: 100%; }
.contact__privacy {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--muted);
}
.contact__status {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid var(--border-strong);
}
.contact__status.is-success {
  color: #d7f7e6;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.12);
}
.contact__status.is-error {
  color: #ffd9d9;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.12);
}
.contact__fallback {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.contact__fallback a { color: var(--accent-light); }
.contact__fallback a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 20px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__tagline {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
}
.site-footer__legal { color: var(--muted); font-size: 0.9rem; }

/* ---------- noscript ---------- */
.noscript {
  padding: 16px 24px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.noscript a { color: var(--accent-light); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 24px 24px;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links a { padding: 10px 4px; }
  .nav-cta { margin-top: 8px; text-align: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .constellation__nodes circle { animation: none; opacity: 0.6; }
  .constellation--drift svg { animation: none; }
}
