:root{
  --bg:#080012;
  --bg2:#120022;
  --bg3:#1e0838;

  --panel:rgba(28, 10, 50, 0.72);
  --line:rgba(218, 159, 255, 0.16);

  --text:#f7f2ff;
  --muted:#bba8d6;

  --purple:#a855f7;
  --purple2:#d26dff;
  --pink:#ff4fd8;
  --blue:#6d5cff;
  --cyan:#7fd0ff;

  --shadow:0 18px 50px rgba(0,0,0,.42);
  --shadow-strong:0 24px 70px rgba(0,0,0,.48);
  --glow:0 0 25px rgba(168,85,247,.25);

  --radius:24px;
  --container:1180px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 50% 15%, rgba(168,85,247,.18), transparent 22%),
    radial-gradient(circle at 15% 75%, rgba(255,79,216,.08), transparent 20%),
    radial-gradient(circle at 85% 75%, rgba(109,92,255,.12), transparent 22%),
    linear-gradient(180deg, #080012 0%, #120022 45%, #090014 100%);
  overflow-x:hidden;
  position:relative;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  position:relative;
  z-index:2;
}

.section{
  padding:100px 0;
}

.bg-grid{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:radial-gradient(circle at center, black 35%, transparent 85%);
}

.bg-noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.18;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.03) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, rgba(255,255,255,.02) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.03) 0 1px, transparent 1px);
  background-size:120px 120px, 160px 160px, 200px 200px;
}

.bg-glow{
  position:fixed;
  border-radius:50%;
  filter:blur(90px);
  opacity:.28;
  pointer-events:none;
  z-index:0;
}

.glow-1{
  width:420px;
  height:420px;
  background:rgba(168,85,247,.18);
  top:20px;
  left:-120px;
}

.glow-2{
  width:480px;
  height:480px;
  background:rgba(255,79,216,.12);
  right:-140px;
  bottom:40px;
}

.navbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(8,0,18,.82);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.nav-inner{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand-logo{
  width:48px;
  height:48px;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(168,85,247,.28), rgba(255,79,216,.18));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--glow);
  flex-shrink:0;
}

.brand-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.brand-text strong{
  font-size:1rem;
}

.brand-text span{
  font-size:.82rem;
  color:var(--muted);
  line-height:1.1;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-links a{
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  color:#eadcff;
  transition:.25s ease;
}

.nav-links a:hover,
.nav-links a.active{
  background:rgba(255,255,255,.06);
  color:#fff;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:none;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:56px;
  padding:14px 26px;
  border-radius:18px;
  border:1px solid transparent;
  font-weight:900;
  font-size:1rem;
  transition:.25s ease;
}

.btn-primary{
  color:#fff;
  background:linear-gradient(90deg, #6d5cff 0%, #a855f7 45%, #ff4fd8 100%);
  box-shadow:0 10px 28px rgba(168,85,247,.28);
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 36px rgba(255,79,216,.32);
}

.btn-secondary{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.08);
  color:#f2eaff;
}

.btn-secondary:hover{
  background:rgba(255,255,255,.08);
}

.nav-cta{
  min-width:170px;
  padding-inline:24px;
}

.hero-btn{
  min-width:220px;
}

.full-width{
  width:100%;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#74b9ff;
  font-size:.8rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.eyebrow::before{
  content:"";
  width:34px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow:0 0 18px rgba(110,231,255,.5);
}

h1,h2,h3,p{
  margin:0;
}

h1{
  font-size:clamp(2.8rem, 7vw, 5.4rem);
  line-height:.96;
  letter-spacing:-.04em;
  font-weight:1000;
}

h2{
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:1.02;
  letter-spacing:-.03em;
  font-weight:1000;
}

h3{
  font-size:1.35rem;
  font-weight:900;
  letter-spacing:-.02em;
}

.section-desc,
.stats-main p,
.contact-card p,
.offer-card p,
.project-text{
  color:var(--muted);
  line-height:1.8;
  font-size:1.04rem;
}

.hero-banner{
  position:relative;
  min-height:760px;
  display:flex;
  align-items:center;
  background:
    linear-gradient(to bottom, rgba(6,0,15,.25), rgba(6,0,15,.68)),
    url("./assets/botfactory-banner.jpg") center/cover no-repeat;
  overflow:hidden;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.04), transparent 35%),
    linear-gradient(180deg, rgba(10,0,25,.10), rgba(10,0,25,.50));
  z-index:1;
}

.hero-banner-content{
  position:relative;
  z-index:2;
  text-align:center;
  padding:90px 0;
}

.hero-banner h1{
  text-shadow:0 4px 22px rgba(0,0,0,.28);
}

.hero-banner p{
  margin-top:16px;
  font-size:1.2rem;
  color:#d8c3ff;
  font-weight:700;
}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

.section-top{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:34px;
}

.single-top{
  justify-content:flex-start;
}

.offer-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.offer-card,
.project-card,
.team-card,
.contact-card,
.stat-box,
.stats-main{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  backdrop-filter:blur(16px);
  border-radius:26px;
  box-shadow:var(--shadow);
}

.offer-card{
  padding:28px;
  min-height:250px;
  transition:.3s ease;
}

.offer-card:hover,
.team-card:hover,
.contact-card:hover,
.stat-box:hover{
  transform:translateY(-4px);
}

.offer-icon{
  width:62px;
  height:62px;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  background:linear-gradient(135deg, rgba(109,92,255,.24), rgba(255,79,216,.18));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--glow);
}

.offer-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.offer-card a{
  display:inline-block;
  margin-top:18px;
  font-weight:800;
  color:#eadcff;
}

.stats-wrapper{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:22px;
}

.stats-main{
  padding:30px;
}

.stats-main .btn{
  margin-top:22px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.stat-box{
  padding:26px;
  min-height:170px;
}

.stat-number{
  font-size:3rem;
  font-weight:1000;
  letter-spacing:-.05em;
  color:#73b6ff;
  margin-bottom:10px;
}

.stat-text{
  color:var(--muted);
  line-height:1.7;
}

/* PREMIUM PORTFOLIO */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
}

.project-card{
  overflow:hidden;
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(218,159,255,.16);
  box-shadow:var(--shadow);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position:relative;
}

.project-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 15%, rgba(168,85,247,.12), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255,79,216,.10), transparent 24%);
  z-index:0;
}

.project-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-strong);
  border-color:rgba(218,159,255,.30);
}

.project-thumb{
  position:relative;
  height:260px;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:#1a0d2d;
}

.project-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transition:transform .6s ease;
}

.project-card:hover .project-thumb img{
  transform:scale(1.08);
}

.project-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:18px 22px;
  background:linear-gradient(to top, rgba(8,0,18,.92), rgba(8,0,18,0));
  z-index:2;
}

.project-badge{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  font-size:.86rem;
  font-weight:900;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
}

.project-content{
  position:relative;
  z-index:1;
  padding:24px;
}

.project-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.project-title{
  font-size:1.5rem;
  font-weight:1000;
  line-height:1.05;
}

.project-link{
  flex-shrink:0;
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  font-size:1.1rem;
  transition:.25s ease;
}

.project-link:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
}

.project-text{
  margin-bottom:18px;
}

.project-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.project-tags span{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#efe8ff;
  font-size:.88rem;
  font-weight:800;
}

.team-grid{
  display:grid;
  grid-template-columns:1fr;
}

.one-member{
  max-width:420px;
}

.team-card{
  padding:28px;
  text-align:center;
}

.team-photo{
  width:170px;
  height:170px;
  border-radius:50%;
  overflow:hidden;
  margin:0 auto 20px;
  border:2px solid rgba(255,255,255,.10);
  box-shadow:0 0 30px rgba(168,85,247,.25);
  background:#14051f;
}

.team-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.team-role{
  margin-top:8px;
  color:#7fc5ff;
  font-weight:900;
  font-size:1.15rem;
}

.team-name{
  margin-top:10px;
  color:#fff;
  font-weight:900;
  font-size:1.8rem;
  line-height:1.1;
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr;
  max-width:640px;
}

.contact-card{
  padding:30px;
}

.contact-list{
  display:grid;
  gap:14px;
  margin:24px 0;
}

.contact-item{
  display:flex;
  gap:14px;
  align-items:center;
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}

.contact-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(109,92,255,.22), rgba(255,79,216,.18));
  border:1px solid rgba(255,255,255,.08);
  flex-shrink:0;
  box-shadow:var(--glow);
}

.contact-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.contact-item strong{
  display:block;
  margin-bottom:4px;
}

.contact-item span{
  color:var(--muted);
}

.footer{
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.015);
}

.footer-inner{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-weight:700;
}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s ease, transform .8s ease;
}

.reveal.show{
  opacity:1;
  transform:translateY(0);
}

@media (max-width: 980px){
  .stats-wrapper,
  .offer-grid,
  .projects-grid{
    grid-template-columns:1fr;
  }

  .hero-banner{
    min-height:620px;
    background-position:center;
  }
}

@media (max-width: 860px){
  .menu-toggle{
    display:block;
  }

  .nav-links{
    display:none;
    position:absolute;
    top:84px;
    left:16px;
    right:16px;
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    border-radius:20px;
    background:rgba(17, 3, 30, .96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:var(--shadow);
  }

  .nav-links.open{
    display:flex;
  }

  .nav-actions .nav-cta{
    display:none;
  }

  .section-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .stats-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 640px){
  .container{
    width:min(var(--container), calc(100% - 20px));
  }

  .section{
    padding:82px 0;
  }

  .brand-text span{
    display:none;
  }

  .hero-banner{
    min-height:540px;
    background-position:center;
  }

  .hero-banner-content{
    padding:70px 0;
  }

  .hero-banner p{
    font-size:1rem;
  }

  .hero-buttons{
    flex-direction:column;
    align-items:stretch;
  }

  .btn,
  .hero-btn{
    width:100%;
    min-width:0;
  }

  .stats-grid,
  .projects-grid{
    grid-template-columns:1fr;
  }

  .project-thumb{
    height:220px;
  }

  .project-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-inner{
    flex-direction:column;
    justify-content:center;
    text-align:center;
    padding:18px 0;
  }
}