/* ============ TOKENS ============ */
:root{
  --bg: #08080c;
  --bg-elevated: #101017;
  --bg-card: #131320;
  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.05);
  --text: #f5f5f8;
  --text-muted: #9b9ba8;
  --text-dim: #6b6b78;
  --accent: #8b6bff;
  --accent-soft: #6d5adf;
  --accent-glow: rgba(139,107,255,0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --font-display: 'Instrument Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:auto;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;}

::selection{background:var(--accent);color:#fff;}

/* subtle global glow backdrop */
body::before{
  content:"";
  position:fixed;
  top:-20%;
  right:-10%;
  width:900px;
  height:900px;
  background:radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity:0.15;
  pointer-events:none;
  z-index:0;
  filter:blur(60px);
}

.scroll-progress{
  position:fixed;
  top:0;left:0;
  height:2px;
  width:0%;
  background:linear-gradient(90deg,var(--accent),#c4b5ff);
  z-index:999;
  transition:width 0.1s linear;
}

/* ============ REVEAL ANIM ============ */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

/* ============ TYPE ============ */
.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent);
  padding:6px 14px;
  border:1px solid rgba(139,107,255,0.3);
  border-radius:100px;
  background:rgba(139,107,255,0.08);
  margin-bottom:20px;
}
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.05;
}
.accent{color:var(--accent);}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 24px;
  border-radius:100px;
  font-size:14.5px;
  font-weight:600;
  border:1px solid transparent;
  transition:transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn svg{flex-shrink:0;}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-soft));
  color:#fff;
  box-shadow:0 8px 24px rgba(139,107,255,0.25);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(139,107,255,0.4);
}
.btn-outline{
  border-color:var(--line);
  color:var(--text);
  background:rgba(255,255,255,0.02);
}
.btn-outline:hover{
  border-color:rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.05);
  transform:translateY(-2px);
}
.btn-sm{padding:10px 18px;font-size:13.5px;}
.btn-lg{padding:16px 30px;font-size:15.5px;}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--accent);
  font-weight:600;
  font-size:14px;
  margin-top:20px;
}
.link-arrow svg{transition:transform 0.25s ease;}
.link-arrow:hover svg{transform:translate(3px,-3px);}

/* ============ NAV ============ */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  padding:18px 0;
  transition:background 0.3s ease, backdrop-filter 0.3s ease, border-color .3s ease, padding .3s ease;
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(8,8,12,0.75);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom-color:var(--line);
  padding:12px 0;
}
.nav-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px;
  letter-spacing:-0.01em;
}
.logo .dot{color:var(--accent);}
.nav-links{
  display:flex;
  gap:32px;
  font-size:14.5px;
  color:var(--text-muted);
}
.nav-links a{transition:color 0.2s ease;}
.nav-links a:hover{color:var(--text);}
.nav-cta{margin-left:auto;}
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:6px;
}
.nav-toggle span{
  width:22px;height:2px;background:var(--text);border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}

/* ============ HERO ============ */
.hero{
  position:relative;
  z-index:1;
  padding:150px 32px 90px;
  max-width:var(--maxw);
  margin:0 auto;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:60px;
  align-items:center;
}
.hero-title{
  font-size:clamp(38px,5vw,62px);
}
.hero-sub{
  color:var(--text-muted);
  font-size:16.5px;
  max-width:460px;
  margin:22px 0 32px;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:40px;
}
.hero-proof{
  display:flex;
  align-items:center;
  gap:14px;
}
.avatar-stack{display:flex;}
.avatar{
  width:36px;height:36px;
  border-radius:50%;
  border:2px solid var(--bg);
  margin-left:-10px;
  object-fit:cover;
}
.avatar:first-child{margin-left:0;}
.proof-text strong{
  display:block;
  font-size:16px;
  color:var(--accent);
  font-family:var(--font-display);
}
.proof-text span{
  font-size:12.5px;
  color:var(--text-dim);
}

.hero-visual{position:relative;}
.video-frame{
  position:relative;
  aspect-ratio:4/5;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--line);
  background:linear-gradient(160deg,#1a1226,#0c0c12 60%);
  box-shadow:0 30px 80px -20px rgba(0,0,0,0.6);
}
.hero-video{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.video-fallback{
  position:absolute;inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  padding:24px;
  color:var(--text-dim);
  font-size:12.5px;
  background:radial-gradient(circle at 50% 40%, rgba(139,107,255,0.12), transparent 60%);
}
.camera-mark{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-size:20px;
  font-weight:700;
  color:var(--text);
}
.rec-dot{
  width:9px;height:9px;border-radius:50%;
  background:#ff5b5b;
  box-shadow:0 0 12px rgba(255,91,91,0.7);
  animation:pulse 1.8s ease-in-out infinite;
}
.video-fallback code{
  background:rgba(255,255,255,0.06);
  padding:2px 6px;
  border-radius:4px;
  color:var(--accent);
}
@keyframes pulse{
  0%,100%{opacity:1;} 50%{opacity:0.35;}
}
.video-glow{
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events:none;
}
.scroll-hint{
  position:absolute;
  right:-34px;
  top:50%;
  transform:translateY(-50%) rotate(90deg);
  transform-origin:center;
  font-size:11px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--text-dim);
  white-space:nowrap;
}

/* ============ TRUSTED ============ */
.trusted{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:34px 0;
  position:relative;
  z-index:1;
}
.trusted-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  gap:40px;
}
.trusted-label{
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text-dim);
  flex-shrink:0;
  line-height:1.4;
}
.logo-track{
  overflow:hidden;
  flex:1;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.logo-row{
  display:flex;
  align-items:center;
  gap:56px;
  width:max-content;
  animation:scrollLogos 26s linear infinite;
}
.brand-item{
  display:flex;
  align-items:center;
  gap:10px;
  opacity:0.55;
  transition:opacity .25s ease;
  cursor:pointer;
}
.brand-item:hover{
  opacity:1;
}
.brand-logo{
  height:24px;
  width:auto;
  object-fit:contain;
  filter:brightness(0) invert(1);
  transition:filter .25s ease;
}
.brand-item:hover .brand-logo{
  filter:brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,0.25));
}
.brand-name{
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  color:var(--text-dim);
  transition:color .25s ease;
  white-space:nowrap;
}
.brand-item:hover .brand-name{
  color:#ffffff;
}
@keyframes scrollLogos{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

/* ============ SECTION HEAD ============ */
.section-head h2{
  font-size:clamp(30px,3.6vw,44px);
  margin-top:2px;
}
.section-head p{
  color:var(--text-muted);
  font-size:15.5px;
  max-width:380px;
  margin-top:16px;
}

/* ============ WORK ============ */
.work{
  position:relative;z-index:1;
  padding:120px 32px 60px;
  max-width:var(--maxw);
  margin:0 auto;
}
.work-scroll{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:56px;
  overflow-x:auto;
  scrollbar-width:none;
}
.work-scroll::-webkit-scrollbar{display:none;}
.work-card{
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--bg-card);
  transition:transform .35s ease, border-color .35s ease;
}
.work-card:hover{
  transform:translateY(-6px);
  border-color:rgba(139,107,255,0.4);
}
.work-thumb{
  aspect-ratio:3/4;
  background:linear-gradient(160deg,#2a2440,#14141c 70%);
  position:relative;
}
.work-thumb::after{
  content:"Replace image";
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;
  color:rgba(255,255,255,0.25);
  letter-spacing:0.05em;
}
.work-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
}
.ph-realestate{background:linear-gradient(160deg,#3a4152,#181a20 75%);}
.ph-product{background:linear-gradient(160deg,#4a3f38,#1a1613 75%);}
.ph-ugc{background:linear-gradient(160deg,#3d3227,#16130f 75%);}
.ph-app{background:linear-gradient(160deg,#26314a,#12151d 75%);}
.work-meta{padding:16px 18px 20px;}
.work-tag{
  font-size:11.5px;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:0.06em;
}
.work-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
}
.work-title-row h3{
  font-size:16.5px;
  font-weight:600;
  font-family:var(--font-body);
  letter-spacing:-0.01em;
}
.work-go{
  flex-shrink:0;
  width:32px;height:32px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.work-card:hover .work-go{
  background:var(--accent);
  color:#fff;
  transform:rotate(45deg);
}
.work-note{
  margin-top:22px;
  font-size:12px;
  color:var(--text-dim);
}
.work-note code{color:var(--accent);}

/* ============ WHAT WE CREATE ============ */
.creates{
  position:relative;z-index:1;
  padding:100px 32px;
  border-top:1px solid var(--line);
  margin-top:80px;
}
.creates-inner{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:0.9fr 1.4fr;
  gap:40px;
  align-items:center;
}
.creates-grid{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:32px;
}
.create-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
  flex:1;
  min-width:100px;
}
.create-icon{
  width:56px;height:56px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);
  transition:border-color .25s ease, transform .25s ease, background .25s ease;
}
.create-item:hover .create-icon{
  border-color:var(--accent);
  background:rgba(139,107,255,0.08);
  transform:translateY(-4px);
}
.create-item span{font-size:14px;color:var(--text-muted);}

/* ============ WHY AGENSEE ============ */
.why{
  position:relative;z-index:1;
  padding:100px 32px;
  border-top:1px solid var(--line);
}
.why-inner{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:0.9fr 1.4fr;
  gap:40px;
  align-items:start;
}
.why-inner h2{font-size:clamp(28px,3.2vw,38px);}
.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}
.why-item{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.why-icon{
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);
  margin-bottom:6px;
}
.why-old{
  font-size:15px;
  color:var(--text-muted);
}
.why-rule{
  width:26px;height:1px;
  background:var(--line);
}
.why-new{
  font-size:15.5px;
  font-weight:600;
  color:var(--text);
}

/* ============ PROCESS ============ */
.process{
  position:relative;z-index:1;
  padding:110px 32px 100px;
  max-width:var(--maxw);
  margin:0 auto;
}
.process-eyebrow{margin-bottom:44px;}
.process-track{
  display:flex;
  align-items:flex-start;
  gap:0;
}
.process-step{
  flex:1;
  min-width:0;
  padding-right:24px;
}
.process-icon{
  width:52px;height:52px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  color:var(--accent);
  margin-bottom:22px;
  background:var(--bg-elevated);
}
.process-step h3{
  font-size:18px;
  margin-bottom:10px;
}
.process-step p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.55;
}
.process-line{
  flex-shrink:0;
  width:60px;
  height:1px;
  margin-top:26px;
  background-image:linear-gradient(90deg, var(--line) 40%, transparent 0%);
  background-size:8px 1px;
  background-repeat:repeat-x;
}

/* ============ CTA BANNER ============ */
.cta-banner{
  position:relative;z-index:1;
  max-width:var(--maxw);
  margin:0 auto 60px;
  padding:64px 56px;
  border-radius:28px;
  border:1px solid var(--line);
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(139,107,255,0.18), transparent 70%),
    var(--bg-elevated);
  overflow:hidden;
}
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}
.cta-copy h2{font-size:clamp(28px,3.4vw,40px);}
.cta-copy p{
  color:var(--text-muted);
  margin-top:16px;
  max-width:420px;
  font-size:15px;
}
.cta-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:16px;
}
.cta-alt{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12.5px;
  color:var(--text-dim);
}
.cta-socials{display:flex;gap:8px;}
.cta-socials a{
  width:30px;height:30px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);
  transition:border-color .2s ease, color .2s ease;
}
.cta-socials a:hover{border-color:var(--accent);color:var(--accent);}

/* ============ FOOTER ============ */
.footer{
  position:relative;z-index:1;
  border-top:1px solid var(--line);
  padding:70px 32px 28px;
}
.footer-inner{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr 1fr;
  gap:32px;
}
.footer-brand p{
  color:var(--text-dim);
  font-size:13.5px;
  margin:16px 0 20px;
  max-width:260px;
  line-height:1.6;
}
.footer-socials{display:flex;gap:10px;}
.footer-socials a{
  width:32px;height:32px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);
  transition:border-color .2s ease, color .2s ease;
}
.footer-socials a:hover{border-color:var(--accent);color:var(--accent);}
.footer-col h4{
  font-size:13px;
  color:var(--text);
  margin-bottom:16px;
  font-weight:600;
}
.footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-col a, .footer-location{
  font-size:13.5px;
  color:var(--text-dim);
  transition:color .2s ease;
}
.footer-col a:hover{color:var(--text);}
.footer-bottom{
  max-width:var(--maxw);
  margin:56px auto 0;
  padding-top:24px;
  border-top:1px solid var(--line-soft);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:12.5px;
  color:var(--text-dim);
}
.heart{color:var(--accent);}

/* ============ RESPONSIVE ============ */
@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{order:-1;max-width:420px;margin:0 auto;}
  .scroll-hint{display:none;}
  .work-scroll{grid-template-columns:repeat(2,1fr);}
  .creates-inner, .why-inner{grid-template-columns:1fr;}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .process-track{flex-direction:column;gap:36px;}
  .process-line{display:none;}
  .footer-inner{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:720px){
  .nav-links{
    position:fixed;
    top:64px;left:16px;right:16px;
    background:rgba(10,10,16,0.98);
    border:1px solid var(--line);
    border-radius:16px;
    flex-direction:column;
    padding:20px;
    gap:18px;
    display:none;
    backdrop-filter:blur(20px);
  }
  .nav-links.open{display:flex;}
  .nav-toggle{display:flex;}
  .nav-cta{display:none;}
  .hero{padding:120px 20px 70px;}
  .work,.creates,.why,.process{padding-left:20px;padding-right:20px;}
  .work-scroll{grid-template-columns:1fr 1fr;gap:14px;}
  .creates-grid{gap:22px;}
  .why-grid{grid-template-columns:1fr;}
  .cta-banner{padding:40px 24px;margin-left:16px;margin-right:16px;}
  .cta-inner{flex-direction:column;align-items:flex-start;}
  .cta-actions{align-items:flex-start;width:100%;}
  .footer-inner{grid-template-columns:1fr 1fr;gap:36px 20px;}
}
@media (max-width:480px){
  .work-scroll{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr;}
}
