/* ===========================================================
   NEXUVA — design system
   A web & marketing studio. The name is "nexus" — a point where
   things join. The signature motif is a stitched connector line
   ("the seam") that threads sites together the way the studio
   threads design + build + growth together for a client.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* ---- color ---- */
  --canvas:        #FAF9FC;
  --surface:        #FFFFFF;
  --surface-sunk:   #F3EFFB;
  --ink:            #1C1526;
  --ink-soft:       #5C5468;
  --ink-faint:      #8B8398;
  --purple:         #6D28D9;
  --purple-deep:    #4C1D95;
  --purple-bright:  #7C3AED;
  --lavender:       #A78BFA;
  --lavender-wash:  #F1EBFF;
  --amber:          #F2A93B;
  --line:           #E4DFF0;
  --line-strong:    #D3C7EF;

  /* ---- type ---- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- layout ---- */
  --maxw: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 24px rgba(76, 29, 149, 0.10);
  --shadow-lg: 0 20px 48px rgba(76, 29, 149, 0.16);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@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; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 700; letter-spacing: -0.02em; }
h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1em;
}
.eyebrow::before{
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px var(--lavender-wash);
}

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

:focus-visible{
  outline: 2.5px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- buttons ---- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--purple); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--purple-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover{ border-color: var(--purple); color: var(--purple); }
.btn-light{ background: #fff; color: var(--purple-deep); }
.btn-light:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: .6; cursor: not-allowed; transform: none !important; }

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand{
  display: flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
  color: var(--ink);
}
.brand-mark{
  width: 30px; height: 30px; flex: none;
}
.nav-links{
  display: flex; align-items: center; gap: 2.2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a{
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: .3em 0;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--purple-deep); }
.nav-links a[aria-current="page"]::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--purple); border-radius: 2px;
}
.nav-cta{ display: flex; align-items: center; gap: 1.4rem; }
.nav-toggle{
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{
    position: fixed; inset: 68px 0 0 0; z-index: 90;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface);
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.is-open{ opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links li{ width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a{ display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav-cta .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ===========================================================
   THE SEAM — signature connector motif
   A dashed thread with joining "nodes" that runs behind/through
   sections, standing for Nexuva = the point where things connect.
   =========================================================== */
.seam{
  position: relative;
}
.seam::before{
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background-image: linear-gradient(var(--line-strong) 60%, transparent 0%);
  background-size: 1px 10px;
  background-repeat: repeat-y;
  transform: translateX(-0.5px);
  z-index: 0;
}
.seam-node{
  position: relative; z-index: 1;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--purple);
  margin: 0 auto;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero{
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy p.lead{
  font-size: 1.15rem; max-width: 46ch;
}
.hero-actions{ display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-proof{
  display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap;
}
.hero-proof div{ font-family: var(--font-mono); }
.hero-proof strong{
  display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--purple-deep);
}
.hero-proof span{ font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }

.hero-art{ position: relative; }
.hero-art svg{ width: 100%; height: auto; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 340px; margin: 0 auto; }
}

/* ===========================================================
   SECTIONS / SHARED BLOCKS
   =========================================================== */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin: 0 0 3rem; }
.section-head.center{ margin-inline: auto; text-align: center; }

.bg-sunk{ background: var(--surface-sunk); }
.bg-deep{ background: var(--purple-deep); color: #fff; }
.bg-deep .eyebrow{ color: var(--lavender); }
.bg-deep .eyebrow::before{ background: var(--lavender); box-shadow: 0 0 0 4px rgba(167,139,250,.25); }
.bg-deep h2, .bg-deep h3{ color: #fff; }
.bg-deep p{ color: rgba(255,255,255,.78); }

/* service / feature cards */
.grid{ display: grid; gap: 1.6rem; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .num{
  font-family: var(--font-mono); font-size: .8rem; color: var(--lavender);
  display: block; margin-bottom: 1rem;
}
.card-icon{
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lavender-wash);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.card-icon svg{ width: 22px; height: 22px; stroke: var(--purple-deep); }

.tag-list{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag{
  font-family: var(--font-mono); font-size: .74rem;
  background: var(--lavender-wash); color: var(--purple-deep);
  padding: .3em .7em; border-radius: 6px;
}

/* process / numbered steps (real sequence, so numbering is honest here) */
.process-list{ list-style: none; margin: 0; padding: 0; }
.process-item{
  display: grid; grid-template-columns: 64px 1fr; gap: 1.6rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.process-item:last-child{ border-bottom: 1px solid var(--line); }
.process-item .step-no{
  font-family: var(--font-mono); font-size: 1rem; color: var(--purple);
  padding-top: .1em;
}

/* testimonial */
.quote-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem; position: relative;
}
.quote-card p{ font-size: 1.15rem; color: var(--ink); font-family: var(--font-display); font-weight: 500; line-height: 1.5; }
.quote-by{ display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.quote-avatar{
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--lavender));
  flex: none;
}
.quote-name{ font-weight: 600; font-size: .92rem; }
.quote-role{ font-size: .82rem; color: var(--ink-faint); }

/* portfolio */
.work-card{
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: box-shadow .18s ease, transform .18s ease;
}
.work-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.work-thumb{
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.work-body{ padding: 1.4rem 1.6rem 1.8rem; }
.work-body h3{ margin-bottom: .3rem; }
.work-meta{ font-family: var(--font-mono); font-size: .76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }

/* stats strip */
.stats-strip{
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
  padding: 3rem 0;
}
.stats-strip div strong{ display:block; font-family: var(--font-display); font-size: 2.1rem; }
.stats-strip div span{ font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em; opacity: .85; }
@media (max-width: 700px){ .stats-strip{ grid-template-columns: 1fr 1fr; } }

/* CTA band */
.cta-band{
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-deep), var(--purple) 55%, var(--purple-bright));
  color: #fff;
  padding: 3.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2{ color: #fff; margin-bottom: .4rem; }
.cta-band p{ color: rgba(255,255,255,.82); margin: 0; }

/* ===========================================================
   FORMS
   =========================================================== */
.form-field{ margin-bottom: 1.3rem; }
.form-field label{ display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45em; }
.form-field .hint{ font-size: .78rem; color: var(--ink-faint); margin-top: .35em; }
.form-field input, .form-field select, .form-field textarea{
  width: 100%; font-family: var(--font-body); font-size: .96rem;
  padding: .8em 1em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--lavender-wash);
}
.form-field textarea{ min-height: 130px; resize: vertical; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px){ .form-row{ grid-template-columns: 1fr; } }
.field-error{ color: #B3261E; font-size: .8rem; margin-top: .35em; display: none; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea{ border-color: #B3261E; }
.form-field.has-error .field-error{ display: block; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; opacity: 0; }

.alert{
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.6rem;
  font-size: .92rem; display: flex; gap: .7rem; align-items: flex-start;
}
.alert-success{ background: #EAF7EE; color: #1E6B3A; border: 1px solid #BFE6CB; }
.alert-error{ background: #FBEAEA; color: #A02323; border: 1px solid #F0C4C4; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer{
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid{
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem;
  padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .brand{ color: #fff; }
.footer-col h4{ color: #fff; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col li{ margin-bottom: .7rem; }
.footer-col a{ font-size: .9rem; color: rgba(255,255,255,.68); transition: color .15s ease; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.6rem; font-size: .82rem;
}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ===========================================================
   PAGE HEADER (inner pages)
   =========================================================== */
.page-header{ padding: 64px 0 40px; }
.page-header .eyebrow{ margin-bottom: .8rem; }
.breadcrumb{ font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumb a{ color: var(--purple); }

/* scroll reveal */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* utility */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.small{ font-size: .85rem; }
.muted{ color: var(--ink-faint); }
