/* ============================================================
   AWUSYS Design System — "Tech-Minimalist, Light Glass"
   ------------------------------------------------------------
   Page      : cool grey-white (#F4F5FA) — per brand direction
   Surfaces  : frosted white glass (backdrop-filter)
   Accents   : logo gradient  violet → purple → magenta → orange
   Display   : Space Grotesk · Body: Inter · Utility: JetBrains Mono
   ============================================================ */

:root {
  /* color tokens (sampled from the AW logo) */
  --bg:        #F4F5FA;
  --bg-alt:    #ECEDF6;
  --surface:   rgba(255, 255, 255, 0.62);
  --surface-hi: rgba(255, 255, 255, 0.88);
  --ink:       #17132E;
  --muted:     #5F5B78;
  --line:      rgba(23, 19, 46, 0.08);

  --violet:    #6C24F0;
  --purple:    #A23BF5;
  --magenta:   #E0319B;
  --orange:    #FF7A18;
  --grad:      linear-gradient(120deg, var(--violet), var(--purple) 45%, var(--magenta) 72%, var(--orange));

  /* neon-soft glows for the light theme */
  --glow-violet: 0 18px 50px -18px rgba(108, 36, 240, 0.35);
  --glow-orange: 0 18px 50px -18px rgba(255, 122, 24, 0.35);
  --card-shadow: 0 24px 60px -30px rgba(76, 29, 149, 0.20);

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

  /* layout */
  --container: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 122, 24, 0.07), transparent 60%),
    radial-gradient(1100px 600px at -10% 10%, rgba(108, 36, 240, 0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.01em; }
.center { text-align: center; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; border-radius: 8px; }

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

/* gradient text utility */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass utility ---------- */
.glass, .card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.78rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-grad {
  color: #fff; background: var(--grad); background-size: 160% 160%;
  box-shadow: var(--glow-violet);
}
.btn-grad:hover { box-shadow: var(--glow-orange); background-position: 100% 0; transform: translateY(-2px); }
.btn-ghost {
  color: var(--ink); background: var(--surface-hi);
  border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(23, 19, 46, 0.25);
}
.btn-ghost:hover { border-color: var(--purple); transform: translateY(-2px); }

.link-arrow { font-weight: 600; font-size: 0.9rem; color: var(--violet); }
.link-arrow:hover { color: var(--orange); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 245, 250, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(23, 19, 46, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a:not(.nav-cta) {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  position: relative; padding: 0.3rem 0;
}
.main-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.25s ease;
}
.main-nav > a:not(.nav-cta):hover { color: var(--ink); }
.main-nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 6.5rem 0 5.5rem; }
.hero-ribbon {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
#ribbonPath {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: drawRibbon 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.3s forwards;
}
@keyframes drawRibbon { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; max-width: 760px; }
.hero-eyebrow { color: var(--muted); margin-bottom: 1rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 1.4rem;
}
.hero-type {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  font-size: 1rem; padding: 0.65rem 1.1rem; margin-bottom: 1.4rem;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}
.hero-type .prompt { color: var(--violet); font-weight: 600; }
.caret {
  display: inline-block; width: 9px; height: 1.15em;
  background: var(--grad); border-radius: 2px;
  transform: translateY(3px);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(108, 36, 240, 0.045) 18%, rgba(255, 122, 24, 0.04) 85%, transparent); }
.page-top { padding-top: 4rem; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.eyebrow { color: var(--violet); margin-bottom: 0.6rem; }
.section-sub { color: var(--muted); margin-top: 0.7rem; }

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

/* ---------- Cards (shared hover) ---------- */
.card { padding: 1.8rem; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--glow-violet); }

/* service card */
.service-card h3 { margin: 1.1rem 0 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.94rem; }
.service-icon {
  width: 50px; height: 50px; padding: 12px; border-radius: 14px;
  color: #fff; background: var(--grad);
  box-shadow: var(--glow-violet);
}
.service-icon svg { width: 100%; height: 100%; }
.service-price { margin-top: 0.8rem; color: var(--orange); }

/* project card */
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, rgba(108, 36, 240, 0.12), rgba(255, 122, 24, 0.12));
  display: grid; place-items: center;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-cover img { transform: scale(1.05); }
.cover-fallback { font-size: 2.4rem; font-weight: 600; color: var(--purple); opacity: 0.55; }
.project-category {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: #fff; background: rgba(23, 19, 46, 0.72);
  padding: 0.28rem 0.65rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.project-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.project-title a:hover { color: var(--violet); }
.project-client { color: var(--muted); }
.project-summary { color: var(--muted); font-size: 0.93rem; flex: 1; }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.tech-list li {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  color: var(--violet); background: rgba(108, 36, 240, 0.08);
  border: 1px solid rgba(108, 36, 240, 0.16);
}
.project-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.6rem; color: var(--muted);
}

/* post card */
.post-card h3 { margin: 0.6rem 0; }
.post-card h3 a:hover { color: var(--violet); }
.post-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.8rem; }
.post-date { color: var(--orange); }

/* case study */
.shot { padding: 0.8rem; margin: 1.6rem 0; }
.shot img { border-radius: calc(var(--radius) - 6px); }
.shot figcaption { padding: 0.7rem 0.3rem 0.1rem; color: var(--muted); }
.prose { color: var(--ink); margin: 1.4rem 0; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 720px; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: var(--font-body); color: var(--ink);
  padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-hi);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(162, 59, 245, 0.18);
}
.contact-form .btn { align-self: flex-start; }
.form-note { padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 500; }
.form-note.ok  { background: rgba(34, 170, 90, 0.1);  color: #157a44; border: 1px solid rgba(34, 170, 90, 0.25); }
.form-note.err { background: rgba(224, 49, 90, 0.08); color: #b02347; border: 1px solid rgba(224, 49, 90, 0.22); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 3.6rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 2.6rem;
}
.footer-brand-row { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand-row strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; }
.footer-logo { height: 38px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; max-width: 320px; }

.subscribe-form { display: flex; max-width: 340px; }
.subscribe-form input {
  flex: 1; min-width: 0; font: inherit; font-size: .9rem; color: var(--ink);
  padding: .7rem .9rem; border: 1px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px; background: #fff;
}
.subscribe-form input:focus { outline: none; border-color: var(--purple); }
.subscribe-form .btn { border-radius: 0 999px 999px 0; padding: .7rem 1.3rem; font-size: .88rem; }
.sub-note { font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.sub-note.ok  { color: #157a44; }
.sub-note.err { color: #b02347; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.footer-col h4 {
  font-family: var(--font-display); font-size: .95rem; margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col > a { color: var(--muted); font-size: .92rem; width: fit-content; position: relative; }
.footer-col > a:hover { color: var(--violet); }
.footer-info p { color: var(--muted); font-size: .92rem; }
.footer-info p span { color: var(--orange); font-weight: 600; }
.footer-info a { color: var(--ink); }
.footer-info a:hover { color: var(--violet); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding-top: 1.2rem; padding-bottom: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}

/* ============================================================
   SCROLL REVEAL  (JS adds .in when element enters viewport)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* gentle stagger inside grids */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.08s; }
.grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.grid .reveal:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface-hi);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1.2rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a:not(.nav-cta) { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #ribbonPath { stroke-dashoffset: 0; animation: none; }
}

/* legal / long-form pages */
.prose h3 { margin: 1.4rem 0 .45rem; font-size: 1.05rem; }
.prose p + p { margin-top: .8rem; }

/* ============================================================
   SPRINT CONNECT SPOTLIGHT (homepage)
   ============================================================ */
.spotlight {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(244, 81, 30, .07), transparent 60%),
    linear-gradient(180deg, transparent, #FFF6F1 18%, #FFF6F1 85%, transparent);
}
.spot-orange {
  background: linear-gradient(120deg, #FF7A2F, #F4511E 60%, #E64A19);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* video frame */
.spot-video {
  position: relative; max-width: 920px; margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: #17132E;
  box-shadow: 0 40px 90px -35px rgba(244, 81, 30, .55), 0 24px 60px -30px rgba(23, 19, 46, .4);
  border: 1px solid rgba(255, 255, 255, .65);
}
.spot-video-chrome {
  display: flex; align-items: center; gap: .45rem;
  background: #221C42; padding: .6rem .9rem;
}
.spot-video-chrome i { width: 11px; height: 11px; border-radius: 50%; }
.spot-video-chrome i:nth-child(1) { background: #FF5F57; }
.spot-video-chrome i:nth-child(2) { background: #FEBC2E; }
.spot-video-chrome i:nth-child(3) { background: #28C840; }
.spot-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* feature showcase */
.spot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem; margin-top: 2.6rem;
}
.spot-card {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-top: 3px solid #F4511E;
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: 0 22px 50px -32px rgba(244, 81, 30, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.spot-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -28px rgba(244, 81, 30, .6); }
.spot-card h3 { font-size: 1rem; margin: .9rem 0 .4rem; }
.spot-card p { color: var(--muted); font-size: .88rem; }
.spot-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(120deg, #FF7A2F, #F4511E);
  box-shadow: 0 14px 30px -14px rgba(244, 81, 30, .7);
}
.spot-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.spot-btn {
  color: #fff; background: linear-gradient(120deg, #FF7A2F, #F4511E 60%, #E64A19);
  box-shadow: 0 18px 45px -16px rgba(244, 81, 30, .6);
}
.spot-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 55px -16px rgba(244, 81, 30, .75); }

@media (max-width: 980px) { .spot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .spot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SPOTLIGHT CAROUSEL
   ============================================================ */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  z-index: 10;
}
.carousel-nav .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(244, 81, 30, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}
.carousel-nav .dot:hover { background: rgba(244, 81, 30, 0.6); }
.carousel-nav .dot.active {
  background: #F4511E;
  transform: scale(1.3);
}
