/* ==========================================================================
   ARAFT — Creative Studio for the AI Era
   Premium dark design system
   ========================================================================== */

:root {
  /* Base — near-black premium canvas */
  --bg: #08080b;
  --bg-2: #0d0d12;
  --panel: #101017;
  --panel-2: #15151e;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);

  /* Text */
  --white: #f7f7fb;
  --ink: #ffffff;
  --muted: #9b9ba7;
  --muted-2: #6c6c78;

  /* Accent — electric aurora */
  --a1: #7c5cff;   /* violet */
  --a2: #4f7bff;   /* blue   */
  --a3: #16e0c4;   /* teal   */
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, .16);
  --grad: linear-gradient(100deg, #7c5cff 0%, #4f7bff 45%, #16e0c4 100%);
  --grad-text: linear-gradient(100deg, #a78bff 0%, #6f9bff 50%, #4be3cd 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1220px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(124,92,255,.35), 0 20px 60px rgba(124,92,255,.28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
::selection { background: var(--a1); color: #fff; }

/* Ambient background glows */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(700px 600px at 100% 8%, rgba(22,224,196,.10), transparent 55%),
    radial-gradient(600px 500px at 50% 120%, rgba(79,123,255,.12), transparent 60%);
}

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 12px var(--a3); }

.section-head { max-width: 720px; margin-bottom: 66px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); margin-bottom: 20px; color: var(--white); }
.section-head p { font-size: 1.12rem; color: var(--muted); }

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

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 40px rgba(124,92,255,.4); background-size: 160% 100%; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(124,92,255,.55); background-position: 100% 0; }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--white); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--white); transform: translateY(-3px); background: rgba(255,255,255,.06); }
.btn--light { background: var(--white); color: #08080b; }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,255,255,.2); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 11, .6); backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8, 8, 11, .82); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.34rem; color: var(--white); letter-spacing: -.04em; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { font-size: .93rem; font-weight: 500; color: var(--muted); padding: 9px 15px; border-radius: 10px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav__links a.active { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--white); }
.nav__toggle svg { width: 26px; height: 26px; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 96px 0 90px; position: relative; overflow: hidden; }
.hero__inner { max-width: 1000px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02); font-size: .82rem; color: var(--muted);
}
.hero__tag b { color: var(--white); font-weight: 600; }
.hero__tag .chip { background: var(--grad); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -.045em; color: var(--white); margin-bottom: 28px; }
.hero h1 em { font-style: normal; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 620px; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.hero__meta { margin-top: 60px; display: flex; gap: 54px; flex-wrap: wrap; }
.hero__meta .m b { font-family: var(--display); display: block; font-size: 2.4rem; color: var(--white); letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.hero__meta .m span { font-size: .86rem; color: var(--muted-2); }

/* Marquee ---------------------------------------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: rgba(255,255,255,.015); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: slide 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 60px; font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--muted-2); letter-spacing: -.02em; white-space: nowrap; }
.marquee__item::after { content: "✦"; color: var(--a1); font-size: 1rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* AI-era manifesto -------------------------------------------------------- */
.manifesto { text-align: center; }
.manifesto__big { font-family: var(--display); font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.2; letter-spacing: -.03em; color: var(--muted-2); max-width: 980px; margin: 0 auto; }
.manifesto__big b { color: var(--white); font-weight: 600; }
.manifesto__big .grad-text { -webkit-text-fill-color: transparent; }

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

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; height: 100%; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card__num { font-family: var(--display); font-size: .82rem; color: var(--muted-2); letter-spacing: .1em; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: #c3b4ff; margin-bottom: 22px; border: 1px solid var(--line);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; color: var(--white); }
.card p { color: var(--muted); font-size: .96rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card__tags span { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* Pillars (why us / AI era) ---------------------------------------------- */
.pillar { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); height: 100%; }
.pillar__k { font-family: var(--display); font-size: 2.6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.03em; margin-bottom: 14px; display: block; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--white); }
.pillar p { font-size: .95rem; color: var(--muted); }

/* Split ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: radial-gradient(120% 120% at 20% 10%, #1a1530, #0a0a12 70%); display: grid; place-items: center; position: relative; }
.split__media::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .08; }
.checklist li { display: flex; gap: 14px; margin-bottom: 20px; color: var(--muted); }
.checklist svg { width: 24px; height: 24px; color: var(--a3); flex: none; margin-top: 1px; }
.checklist b { color: var(--white); }

/* Stats band ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stats .stat { text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.stats .stat b { font-family: var(--display); display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.03em; line-height: 1; }
.stats .stat span { color: var(--muted); font-size: .9rem; margin-top: 10px; display: block; }

/* Process steps ---------------------------------------------------------- */
.step { display: flex; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.step:hover { padding-left: 12px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--display); font-size: 1rem; color: var(--muted-2); min-width: 60px; padding-top: 6px; }
.step__body { flex: 1; }
.step__body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--white); margin-bottom: 8px; }
.step__body p { color: var(--muted); max-width: 640px; }

/* Page hero (interior) --------------------------------------------------- */
.page-hero { padding: 90px 0 70px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--white); margin-bottom: 20px; letter-spacing: -.04em; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin-inline: auto; }
.breadcrumb { color: var(--muted-2); font-size: .84rem; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--white); }

/* Work / portfolio ------------------------------------------------------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; justify-content: center; }
.filter button { border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); padding: 10px 22px; border-radius: 999px; font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .25s; font-family: var(--font); }
.filter button:hover { color: var(--white); border-color: var(--line-2); }
.filter button.active { background: var(--white); border-color: var(--white); color: #08080b; }

.work { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .4s var(--ease), border-color .4s; }
.work:hover { transform: translateY(-6px); border-color: var(--line-2); }
.work__thumb { aspect-ratio: 16/11; display: grid; place-items: center; position: relative; overflow: hidden; }
.work__thumb b { font-family: var(--display); font-size: 2rem; color: #fff; letter-spacing: -.03em; z-index: 1; mix-blend-mode: overlay; }
.work__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5)); }
.work__body { padding: 24px 26px 28px; }
.work__tag { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c3b4ff; }
.work__body h3 { font-size: 1.3rem; margin: 10px 0 8px; color: var(--white); }
.work__body p { font-size: .93rem; color: var(--muted); }
.work__result { display: flex; gap: 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.work__result .r b { font-family: var(--display); display: block; color: var(--white); font-size: 1.4rem; letter-spacing: -.02em; }
.work__result .r span { font-size: .76rem; color: var(--muted-2); }

/* Blog ------------------------------------------------------------------- */
.post { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .4s var(--ease), border-color .4s; }
.post:hover { transform: translateY(-6px); border-color: var(--line-2); }
.post__thumb { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; }
.post__thumb svg { width: 52px; height: 52px; color: rgba(255,255,255,.85); z-index: 1; }
.post__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: .8rem; color: var(--muted-2); margin-bottom: 13px; display: flex; gap: 9px; align-items: center; }
.post__cat { color: #c3b4ff; font-weight: 600; }
.post__body h3 { font-size: 1.2rem; margin-bottom: 11px; color: var(--white); }
.post__body p { font-size: .93rem; color: var(--muted); flex: 1; }
.post__author { display: flex; align-items: center; gap: 11px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.post__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; font-family: var(--display); }
.post__author small { font-size: .82rem; color: var(--muted); }
.post--featured { grid-column: 1 / -1; }
@media (min-width: 861px) { .post--featured { display: grid; grid-template-columns: 1.05fr 1fr; } .post--featured .post__thumb { aspect-ratio: auto; height: 100%; min-height: 320px; } }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.info-item__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: #c3b4ff; display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 1rem; margin-bottom: 3px; color: var(--white); }
.info-item p, .info-item a { color: var(--muted); font-size: .95rem; }
.info-item a:hover { color: var(--white); }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 500; color: var(--white); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--white); background: rgba(255,255,255,.03);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--a1); background: rgba(124,92,255,.06); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--muted-2); margin-top: 14px; text-align: center; }
.form__success { display: none; background: rgba(22,224,196,.1); border: 1px solid rgba(22,224,196,.35); color: #63f0da; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 20px; }
.form__success.show { display: block; }

/* CTA band --------------------------------------------------------------- */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: 84px 60px; text-align: center; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 140% at 50% 0%, rgba(124,92,255,.28), rgba(8,8,11,0) 60%), var(--panel); }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); color: var(--white); margin-bottom: 18px; letter-spacing: -.04em; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 1.12rem; }
.cta-band .hero__actions { justify-content: center; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 84px 0 36px; background: var(--bg-2); }
.footer__cta { text-align: center; margin-bottom: 76px; }
.footer__cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); color: var(--white); letter-spacing: -.04em; margin-bottom: 26px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.footer__brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.36rem; color: var(--white); margin-bottom: 18px; letter-spacing: -.04em; }
.footer__col p { font-size: .93rem; max-width: 320px; color: var(--muted); }
.footer__col h4 { color: var(--white); font-family: var(--font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer__col li { margin-bottom: 12px; }
.footer__col a { font-size: .93rem; color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__social { display: flex; gap: 11px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; place-items: center; transition: all .25s; }
.footer__social a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; color: var(--white); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted-2); }
.footer__bottom a:hover { color: var(--white); }

/* Reveal ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  .site-header.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 80px; left: 0; right: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: 14px; gap: 2px;
  }
  .site-header.open .nav__links a { padding: 14px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { gap: 32px; }
  .hero__meta .m b { font-size: 1.9rem; }
  .cta-band { padding: 54px 26px; }
}
