/* TnV Creations — design system */
:root {
  --bg: #050507;
  --bg-elevated: #0c0c10;
  --surface: #121218;
  --surface-2: #18181f;
  --border: rgba(232, 234, 239, 0.08);
  --border-strong: rgba(61, 155, 255, 0.35);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --text-dim: #6b7382;
  --blue: #2b7fff;
  --blue-bright: #3d9bff;
  --blue-deep: #1a5fd4;
  --blue-glow: rgba(61, 155, 255, 0.45);
  --silver: #c8cdd5;
  --silver-bright: #f2f4f7;
  --danger: #ff5c6c;
  --success: #3dffa8;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 60px -10px var(--blue-glow);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(43, 127, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(61, 155, 255, 0.08), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--blue-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--silver-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 720px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 7, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--silver-bright);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--blue-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--silver-bright);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  margin-left: 0.5rem !important;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright)) !important;
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  box-shadow: 0 0 24px -6px var(--blue-glow);
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(5, 5, 7, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta { margin-left: 0 !important; text-align: center; }
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue-bright);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--silver-bright);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 700;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0.75rem 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
  color: #fff;
  box-shadow: 0 10px 40px -12px var(--blue-glow);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--silver-bright);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(70%, 640px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  box-shadow: 0 0 30px var(--blue-glow);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-visual img {
  width: min(100%, 420px);
  filter: drop-shadow(0 20px 50px rgba(43, 127, 255, 0.25));
  animation: floatGlow 7s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  inset: 8% 10%;
  border: 1px solid rgba(61, 155, 255, 0.15);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite;
  pointer-events: none;
}

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

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 240px;
  }
  .hero-visual img {
    width: min(70%, 280px);
  }
  h1 { max-width: none; }
}

/* Proof strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.proof-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--silver-bright);
  letter-spacing: -0.02em;
}

.proof-item span {
  color: var(--text-dim);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
}

/* Cards / panels */
.panel {
  background: linear-gradient(180deg, rgba(24, 24, 31, 0.9), rgba(12, 12, 16, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.panel:hover {
  border-color: rgba(61, 155, 255, 0.25);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

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

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.service-card h3 {
  margin-top: 0.85rem;
}

.service-card p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 127, 255, 0.12);
  border: 1px solid rgba(61, 155, 255, 0.25);
  color: var(--blue-bright);
  font-size: 1.1rem;
}

.card-link {
  font-weight: 650;
  color: var(--blue-bright);
  text-decoration: none;
}

.card-link:hover {
  color: var(--silver-bright);
}

/* Work / case studies */
.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  overflow: hidden;
}

.case-media {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(43, 127, 255, 0.2), transparent 55%),
    linear-gradient(180deg, #15151c, #0a0a0e);
  border-right: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
}

.case-media::before {
  content: attr(data-label);
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.case-tag {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--silver-bright);
  text-align: center;
  max-width: 14ch;
}

.case-body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.case-body p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.case-result {
  color: var(--silver-bright) !important;
  font-weight: 600;
}

@media (max-width: 800px) {
  .case { grid-template-columns: 1fr; }
  .case-media { border-right: 0; border-bottom: 1px solid var(--border); min-height: 180px; }
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: 0; }

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-bright);
  width: 2.5rem;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--silver-bright);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--blue-bright);
  font-size: 1.35rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  color: var(--text-muted);
  margin: 0.85rem 0 0.25rem;
  max-width: 65ch;
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(61, 155, 255, 0.25), transparent 50%),
    linear-gradient(160deg, #12121a, #0a0a0e);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.cta-band h2 { max-width: 18ch; }
.cta-band p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 0 1.5rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

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

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

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(232, 234, 239, 0.18);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form-status.is-visible { display: block; }
.form-status.is-error {
  background: rgba(255, 92, 108, 0.12);
  border: 1px solid rgba(255, 92, 108, 0.35);
  color: #ffb0b8;
}
.form-status.is-success {
  background: rgba(61, 255, 168, 0.1);
  border: 1px solid rgba(61, 255, 168, 0.3);
  color: #9dffd0;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}

.page-hero h1 { max-width: 18ch; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: #040406;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 64px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 32ch;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--silver-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
}

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

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

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

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Legal */
.legal {
  color: var(--text-muted);
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  max-width: none;
}

.legal p,
.legal li {
  max-width: 70ch;
}

.legal ul {
  padding-left: 1.2rem;
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
}

@media (max-width: 700px) {
  .mobile-cta {
    display: block;
  }
  .mobile-cta .btn {
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
  body.has-mobile-cta {
    padding-bottom: 5.5rem;
  }
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px var(--blue-glow);
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
