/* QuadWorks Tech — global stylesheet */

:root{
  --bg: #0b0e17;
  --bg-alt: #10131f;
  --surface: #151a2a;
  --surface-2: #1b2136;
  --border: rgba(255,255,255,0.08);
  --text: #eef0f8;
  --text-dim: #a7adc4;
  --text-dimmer: #767c96;
  --primary: #7c5cff;
  --primary-2: #5b8cff;
  --accent: #34e0c4;
  --accent-2: #ff6fa5;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--accent) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --max-width: 1180px;
  --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 40vw at 85% -10%, rgba(124,92,255,0.25), transparent 60%),
    radial-gradient(50vw 40vw at 0% 20%, rgba(52,224,196,0.12), transparent 60%),
    var(--bg);
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ line-height:1.15; margin:0 0 0.5em; font-weight:700; letter-spacing:-0.02em; }
p{ margin:0 0 1em; color: var(--text-dim); }

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

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--accent);
  background: rgba(52,224,196,0.08);
  border:1px solid rgba(52,224,196,0.25);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:18px;
}

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

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  border:1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--gradient);
  color:#0b0e17;
  box-shadow: 0 10px 30px rgba(124,92,255,0.35);
}
.btn-primary:hover{ box-shadow: 0 14px 40px rgba(124,92,255,0.5); }
.btn-outline{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover{ border-color: var(--primary); background: rgba(124,92,255,0.08); }
.btn-lg{ padding:16px 34px; font-size:1.02rem; }
.btn-sm{ padding:10px 18px; font-size:0.85rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(11,14,23,0.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:-0.02em;
}
.brand-mark{
  width:34px; height:34px;
  border-radius:9px;
  background: var(--gradient);
  display:flex; align-items:center; justify-content:center;
  color:#0b0e17;
  font-weight:900;
  font-size:1rem;
  flex-shrink:0;
}
.brand-name span{ color: var(--accent); }

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
  flex-shrink:0;
}
.nav-links a{
  font-size:0.88rem;
  font-weight:600;
  color: var(--text-dim);
  transition: color .15s ease;
  position:relative;
  white-space:nowrap;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-8px;
  height:2px;
  background: var(--gradient);
  border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-cta .btn{ white-space:nowrap; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:24px; height:2px; background: var(--text); border-radius:2px;
}

/* ---------- Hero ---------- */
.hero{
  padding: 96px 0 90px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  margin-bottom:22px;
}
.hero-sub{
  font-size:1.12rem;
  max-width:560px;
  margin-bottom:32px;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:40px;
}
.hero-stats{
  display:flex;
  gap:40px;
  flex-wrap:wrap;
}
.hero-stats .stat b{
  display:block;
  font-size:1.6rem;
  font-weight:800;
  color: var(--text);
}
.hero-stats .stat span{
  font-size:0.82rem;
  color: var(--text-dimmer);
  text-transform:uppercase;
  letter-spacing:0.06em;
}

.hero-visual{
  position:relative;
}
.hero-card{
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:28px;
  box-shadow: var(--shadow);
  position:relative;
}
.hero-card .dot-row{ display:flex; gap:7px; margin-bottom:18px; }
.hero-card .dot{ width:11px; height:11px; border-radius:50%; background: var(--border); }
.hero-card .dot:nth-child(1){ background:#ff6f6f; }
.hero-card .dot:nth-child(2){ background:#ffd36f; }
.hero-card .dot:nth-child(3){ background:#6fff9d; }
.code-line{ font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size:0.86rem; color: var(--text-dim); margin-bottom:8px; }
.code-line .k{ color: var(--accent); }
.code-line .s{ color: var(--primary-2); }
.code-line .c{ color: var(--text-dimmer); }

.floating-badge{
  position:absolute;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:12px 16px;
  box-shadow: var(--shadow);
  font-size:0.85rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
}
.floating-badge.b1{ top:-22px; right:-14px; }
.floating-badge.b2{ bottom:-24px; left:-20px; }
.floating-badge .ico{ width:30px;height:30px;border-radius:8px;background:var(--gradient);display:flex;align-items:center;justify-content:center;color:#0b0e17;font-size:0.9rem; }

/* ---------- Sections generic ---------- */
section{ padding: 90px 0; }
.section-head{
  max-width:680px;
  margin: 0 auto 56px;
  text-align:center;
}
.section-head p{ font-size:1.05rem; }
.alt{ background: var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* ---------- Cards / Grid ---------- */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(124,92,255,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.card .icon{
  width:48px; height:48px;
  border-radius:12px;
  background: rgba(124,92,255,0.12);
  color: var(--primary-2);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem;
  margin-bottom:18px;
}
.card h3{ font-size:1.12rem; margin-bottom:10px; }
.card p{ margin:0; font-size:0.95rem; }

/* ---------- Process steps ---------- */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:26px;
  counter-reset: step;
}
.step{
  position:relative;
  padding:28px 24px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
}
.step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size:0.8rem;
  font-weight:800;
  color: var(--accent);
  letter-spacing:0.1em;
  display:block;
  margin-bottom:14px;
}
.step h3{ font-size:1.05rem; margin-bottom:8px; }
.step p{ font-size:0.92rem; margin:0; }

/* ---------- Product spotlight ---------- */
.product-spotlight{
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(52,224,196,0.08));
  border:1px solid rgba(124,92,255,0.25);
  padding: 64px;
  position:relative;
  overflow:hidden;
}
.product-spotlight::after{
  content:"";
  position:absolute;
  width:340px; height:340px;
  border-radius:50%;
  background: var(--gradient);
  opacity:0.15;
  filter: blur(60px);
  top:-100px; right:-60px;
}
.spotlight-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:56px;
  align-items:center;
  position:relative;
}
.product-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: var(--surface);
  border:1px solid var(--border);
  padding:8px 16px 8px 8px;
  border-radius:999px;
  font-weight:700;
  font-size:0.85rem;
  margin-bottom:22px;
}
.product-badge .logo-dot{
  width:26px;height:26px;border-radius:7px;
  background: var(--gradient);
  display:flex; align-items:center;justify-content:center;
  color:#0b0e17; font-size:0.8rem; font-weight:900;
}
.spotlight-stats{
  display:flex;
  gap:30px;
  margin: 26px 0 30px;
  flex-wrap:wrap;
}
.spotlight-stats div b{ display:block; font-size:1.5rem; font-weight:800; }
.spotlight-stats div span{ font-size:0.8rem; color: var(--text-dimmer); text-transform:uppercase; letter-spacing:0.05em; }

.mock-browser{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.mock-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 16px;
  background: var(--surface-2);
  border-bottom:1px solid var(--border);
}
.mock-bar .mdot{ width:10px;height:10px;border-radius:50%; background: var(--border); }
.mock-bar .url{
  margin-left:12px;
  font-size:0.78rem;
  color: var(--text-dimmer);
  background: var(--bg);
  padding:4px 12px;
  border-radius:999px;
  flex:1;
}
.mock-body{ padding: 26px; }
.mock-question{
  background: var(--bg);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:20px;
}
.mock-question h4{ font-size:0.98rem; margin-bottom:16px; }
.mock-option{
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:0.86rem;
  color: var(--text-dim);
  margin-bottom:10px;
}
.mock-option.selected{ border-color: var(--primary); background: rgba(124,92,255,0.1); color: var(--text); }
.mock-continue{
  margin-top:16px;
  display:inline-block;
  background: var(--gradient);
  color:#0b0e17;
  font-weight:700;
  font-size:0.85rem;
  padding:10px 22px;
  border-radius:999px;
}
.feature-tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.feature-tags span{
  font-size:0.78rem;
  font-weight:700;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--border);
  padding:7px 14px;
  border-radius:999px;
  color: var(--text-dim);
}

/* ---------- Founders / Team ---------- */
.founder-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align:center;
}
.founder-avatar{
  width:96px; height:96px;
  border-radius:50%;
  margin:0 auto 20px;
  background: var(--gradient);
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem;
  font-weight:800;
  color:#0b0e17;
}
.founder-photo{
  width:120px; height:120px;
  border-radius:50%;
  margin:0 auto 20px;
  padding:4px;
  background: var(--gradient);
  display:flex; align-items:center; justify-content:center;
}
.founder-photo img{
  width:100%; height:100%;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--bg);
  display:block;
}
.founder-card h3{ margin-bottom:4px; font-size:1.15rem; }
.founder-role{
  color: var(--accent);
  font-weight:700;
  font-size:0.82rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:16px;
  display:block;
}
.founder-card p{ font-size:0.92rem; }
.founder-tags{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.founder-tags span{
  font-size:0.72rem;
  font-weight:700;
  background: rgba(124,92,255,0.1);
  border:1px solid rgba(124,92,255,0.25);
  color: var(--primary-2);
  padding:5px 12px;
  border-radius:999px;
}

.mission-banner{
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,111,165,0.12), rgba(124,92,255,0.12));
  border:1px solid rgba(255,111,165,0.25);
  padding: 40px 44px;
  text-align:center;
}
.mission-banner p{
  font-size:1.15rem;
  color: var(--text);
  margin:0;
  max-width:760px;
  margin:0 auto;
}

/* ---------- Timeline (about) ---------- */
.timeline{ position:relative; padding-left: 30px; border-left:2px solid var(--border); }
.timeline-item{ position:relative; padding-bottom:34px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:"";
  position:absolute;
  left:-38px; top:2px;
  width:14px; height:14px;
  border-radius:50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline-item h4{ margin-bottom:6px; font-size:1.02rem; }
.timeline-item p{ margin:0; font-size:0.92rem; }

/* ---------- Values ---------- */
.value-item{ display:flex; gap:18px; align-items:flex-start; }
.value-item .icon{ flex-shrink:0; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: 24px;
  background: var(--gradient);
  padding: 60px;
  text-align:center;
  color:#0b0e17;
  position:relative;
  overflow:hidden;
}
.cta-band h2{ color:#0b0e17; margin-bottom:14px; }
.cta-band p{ color: rgba(11,14,23,0.75); margin-bottom:30px; font-size:1.05rem; }
.cta-band .btn-primary{ background:#0b0e17; color:#fff; box-shadow:none; }
.cta-band .btn-primary:hover{ background:#161a26; }
.cta-band .btn-outline{ border-color: rgba(11,14,23,0.3); color:#0b0e17; }
.cta-band .btn-outline:hover{ background: rgba(11,14,23,0.08); }

/* ---------- Forms ---------- */
.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.form-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group{ margin-bottom:20px; }
.form-group label{
  display:block;
  font-size:0.85rem;
  font-weight:700;
  margin-bottom:8px;
  color: var(--text-dim);
}
.form-group input, .form-group textarea, .form-group select{
  width:100%;
  padding: 13px 16px;
  background: var(--bg);
  border:1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--ff);
  font-size:0.95rem;
  transition: border-color .15s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{
  outline:none;
  border-color: var(--primary);
}
.form-group textarea{ resize:vertical; min-height:130px; }
.form-note{ font-size:0.82rem; color: var(--text-dimmer); margin-top:14px; }
.form-status{ font-size:0.88rem; margin-top:14px; display:none; }
.form-status.show{ display:block; }

.contact-info-item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding: 20px 0;
  border-bottom:1px solid var(--border);
}
.contact-info-item:last-child{ border-bottom:none; }
.contact-info-item .icon{
  width:44px;height:44px;flex-shrink:0;
  border-radius:12px;
  background: rgba(124,92,255,0.12);
  color: var(--primary-2);
  display:flex; align-items:center; justify-content:center;
  font-size:1.15rem;
}
.contact-info-item h4{ margin-bottom:4px; font-size:0.98rem; }
.contact-info-item p{ margin:0; font-size:0.9rem; }

/* ---------- Services detail ---------- */
.service-detail{
  display:grid;
  grid-template-columns: 40px 1fr;
  gap:20px;
  padding: 30px 0;
  border-bottom:1px solid var(--border);
}
.service-detail:first-of-type{ border-top:1px solid var(--border); }
.service-detail .num{ font-weight:800; color: var(--accent); font-size:1rem; }
.service-detail h3{ font-size:1.15rem; margin-bottom:8px; }
.service-detail .tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.service-detail .tags span{
  font-size:0.76rem; font-weight:700;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--border);
  padding:5px 12px; border-radius:999px;
  color: var(--text-dim);
}

/* ---------- Logo strip ---------- */
.logo-strip{
  display:flex;
  justify-content:center;
  gap:50px;
  flex-wrap:wrap;
  opacity:0.6;
  font-weight:800;
  letter-spacing:0.04em;
  color: var(--text-dimmer);
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-alt);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:46px;
}
.footer-brand p{ font-size:0.9rem; max-width:280px; }
.footer-col h4{ font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; color: var(--text-dimmer); margin-bottom:18px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul a{ font-size:0.92rem; color: var(--text-dim); transition: color .15s ease; }
.footer-col ul a:hover{ color: var(--text); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:26px;
  border-top:1px solid var(--border);
  font-size:0.85rem;
  color: var(--text-dimmer);
  flex-wrap:wrap;
  gap:14px;
}
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:0.85rem;
  transition: border-color .15s ease, color .15s ease;
}
.social-row a:hover{ border-color: var(--primary); color: var(--primary-2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 74px 0 60px;
  text-align:center;
}
.page-hero h1{ font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-hero p{ max-width:640px; margin:0 auto; font-size:1.05rem; }
.breadcrumb{
  font-size:0.82rem;
  color: var(--text-dimmer);
  margin-bottom:18px;
}
.breadcrumb a{ color: var(--text-dim); }
.breadcrumb a:hover{ color: var(--primary-2); }

/* ---------- Utilities ---------- */
.text-center{ text-align:center; }
.mt-40{ margin-top:40px; }
.mb-0{ margin-bottom:0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid, .spotlight-grid, .contact-wrap{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: repeat(2,1fr); }
  .product-spotlight{ padding: 40px 26px; }
}

@media (max-width: 1080px){
  .nav-cta .btn-outline{ display:none; }
}

@media (max-width: 760px){
  .nav-links, .nav-cta .btn-outline{ display:none; }
  .nav-toggle{ display:flex; }
  .nav.open .nav-links{
    display:flex;
    position:absolute;
    top:64px; left:0; right:0;
    flex-direction:column;
    background: var(--bg-alt);
    border-bottom:1px solid var(--border);
    padding: 20px 24px;
    gap:18px;
  }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .cta-band{ padding:40px 24px; }
  section{ padding:64px 0; }
}
