/* ============================================================
   Gossware — styles.css
   A dark, premium one-page studio site.
   ============================================================ */

:root {
  /* Palette */
  --bg:        #07070d;
  --bg-2:      #0b0b14;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #f3f3f8;
  --muted:     #a6a6b8;
  --faint:     #6f6f82;

  --violet:    #7c6bff;
  --blue:      #5b8bff;
  --teal:      #21d4c4;
  --grad:      linear-gradient(105deg, #7c6bff 0%, #5b8bff 48%, #21d4c4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,107,255,.22), rgba(33,212,196,.18));

  /* Type */
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  /* Geometry */
  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1160px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(124, 107, 255, 0.45);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(124, 107, 255, 0.35); color: #fff; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: #000;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────── Ambient background ───────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb--1 { width: 620px; height: 620px; top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(124,107,255,.55), transparent 65%); }
.orb--2 { width: 560px; height: 560px; top: 280px; right: -200px;
  background: radial-gradient(circle, rgba(33,212,196,.40), transparent 65%); opacity: 0.4; }
.orb--3 { width: 680px; height: 680px; bottom: -320px; left: 35%;
  background: radial-gradient(circle, rgba(91,139,255,.34), transparent 65%); opacity: 0.35; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* ───────────────── Buttons ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .i { width: 18px; height: 18px; stroke-width: 2; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }

.btn--primary {
  background: var(--grad);
  color: #08080f;
  box-shadow: 0 10px 30px -10px rgba(124, 107, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(124, 107, 255, 0.8); }
.btn--primary .i { stroke: #08080f; }

.btn--ghost {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }

/* ───────────────── Header / nav ───────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand__mark { width: 34px; height: 34px; display: block; filter: drop-shadow(0 4px 12px rgba(124,107,255,.4)); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 30px; margin-left: 14px; margin-right: auto; }
.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a { padding: 13px 4px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: 0; justify-content: center; margin-top: 12px; color: #08080f; }
.mobile-menu[hidden] { display: none; }
@media (min-width: 941px) { .mobile-menu { display: none !important; } }

/* ───────────────── Hero ───────────────── */
.hero { position: relative; padding-top: clamp(56px, 9vw, 104px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(33,212,196,.18); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 36ch;
  margin-top: 22px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--faint); font-size: 0.92rem;
}
.hero__meta strong { color: var(--text); font-weight: 600; }

/* Hero visual */
.hero__visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.panel {
  width: min(100%, 420px);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
  animation: float 7s var(--ease) infinite;
}
.panel__bar { display: flex; gap: 7px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.panel__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.panel__bar span:nth-child(1) { background: #ff6b6b; opacity: .8; }
.panel__bar span:nth-child(2) { background: #ffd93d; opacity: .8; }
.panel__bar span:nth-child(3) { background: #6bcb77; opacity: .8; }
.panel__body { padding: 22px; display: grid; gap: 16px; }
.panel__row { display: flex; gap: 12px; }
.bar { height: 14px; border-radius: 7px; background: rgba(255,255,255,.10); flex: 1; }
.bar.b1 { flex: 2; background: var(--grad); opacity: .85; }
.bar.b3 { flex: 1.4; }
.bar.b4 { flex: .8; background: rgba(33,212,196,.4); }
.bar.b5 { flex: 1.2; }
.panel__chart { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 18px; }
.panel__chart svg { width: 100%; height: 70px; }

.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: 0.86rem; font-weight: 600;
  background: rgba(14, 14, 22, 0.82);
  border: 1px solid var(--border-2);
  border-radius: 13px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip .i { width: 16px; height: 16px; stroke-width: 1.9; }
.chip--a { top: 8%;  left: -6%;  color: #c9c2ff; animation: float 6s var(--ease) infinite; }
.chip--b { top: 30%; right: -8%; color: #b9d2ff; animation: float 6.6s var(--ease) infinite 0.4s; }
.chip--c { bottom: 20%; left: -10%; color: #9beede; animation: float 7.2s var(--ease) infinite 0.8s; }
.chip--d { bottom: 4%; right: -4%; color: #cfd6ff; animation: float 6.2s var(--ease) infinite 1.1s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee */
.marquee {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  color: var(--muted);
}
.marquee__track span:nth-child(2n) { color: var(--violet); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────────────── Sections ───────────────── */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 40%, rgba(255,255,255,.018));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

/* ───────────────── Bento / cards ───────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,107,255,.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card--lg { grid-column: span 2; grid-row: span 2; }
.card--wide { grid-column: span 2; }

.card__icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  color: #d6d0ff;
  margin-bottom: 20px;
}
.card--lg .card__icon { width: 56px; height: 56px; }
.card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }
.card--lg h3 { font-size: 1.7rem; }
.card p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }
.card--lg p { font-size: 1.06rem; max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tags li {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 6px 13px; border: 1px solid var(--border);
  border-radius: 999px; background: rgba(255,255,255,.02);
}
/* Decorative UI illustration in the large card */
.card__art {
  position: absolute; right: -14px; bottom: -12px;
  width: 200px; color: var(--violet); opacity: 0.20;
  pointer-events: none; z-index: 0;
}
.card__art svg { width: 100%; height: auto; display: block; }
.card--lg > :not(.card__art) { position: relative; z-index: 1; }

/* ───────────────── Features (approach) ───────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature__num {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad); color: #08080f;
}
.feature h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.feature p { color: var(--muted); margin-top: 10px; font-size: 0.96rem; }

/* ───────────────── Process steps ───────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step__no {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.9rem; line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none; user-select: none;
}
.step__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border-2);
  color: #d6d0ff;
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); margin-top: 9px; font-size: 0.96rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -9px; width: 18px; height: 2px;
  background: var(--border-2);
}

/* ───────────────── About ───────────────── */
.about { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.about__copy p { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }
.about__copy .section__title { margin-top: 6px; }
.about__loc {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px !important; color: var(--text) !important;
  font-weight: 500; font-size: 0.98rem !important;
}
.about__loc .i { color: var(--teal); width: 20px; height: 20px; flex-shrink: 0; }
.about__list {
  display: grid; gap: 12px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
}
.about__list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
}
.about__list li:last-child { border-bottom: 0; }
.about__list .i { width: 20px; height: 20px; color: var(--teal); stroke-width: 2.4; }

/* ───────────────── CTA ───────────────── */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(124,107,255,.10), rgba(33,212,196,.06));
  overflow: hidden;
}
.cta__glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,107,255,.35), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.cta .kicker { display: inline-block; }
.cta__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em;
  position: relative;
}
.cta__sub { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 18px auto 0; position: relative; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; position: relative; }

/* ───────────────── Footer ───────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; align-items: flex-start; }
.footer__brand { max-width: 320px; }
.footer__brand p { color: var(--muted); margin-top: 16px; font-size: 0.96rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer__nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--text); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 0.88rem;
}

/* ───────────────── Reveal animation ───────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* stagger children within a grid */
.bento .reveal.in,
.features .reveal.in,
.steps .reveal.in { transition-delay: var(--d, 0s); }

/* ───────────────── Responsive ───────────────── */
@media (max-width: 940px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 320px; margin-bottom: 8px; }
  .hero__lead { max-width: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--lg, .card--wide { grid-column: span 2; grid-row: auto; }
  .card--lg h3 { font-size: 1.42rem; }

  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }

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

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .bento, .features, .steps { grid-template-columns: 1fr; }
  .card--lg, .card--wide { grid-column: span 1; }
  .hero__cta .btn, .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
  .chip--a { left: 0; } .chip--c { left: -2%; }
  .chip--b { right: -2%; } .chip--d { right: 0; }
  .hero__visual { min-height: 280px; }
  .footer__base { flex-direction: column; }
}

/* ───────────────── Motion preferences ───────────────── */
@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; }
  .reveal { opacity: 1; transform: none; }
}
