/* ================= BASE ================= */
:root{
  --dark:#070b18;
  --dark2:#0b1020;
  --text:#111827;
  --muted:#65708a;
  --blue:#2176ff;
  --purple:#8b35ff;
  --cyan:#15c8ff;
  --card:#ffffff;
  --line:#e9edf7;
  --radius:26px;
  --shadow:0 24px 70px rgba(28,53,110,.14);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:var(--text);
  background:#fff;
  overflow-x:hidden;
}

a{
  text-decoration:none;
}

img, video{
  max-width:100%;
}

/* ================= BUTTONS ================= */
.btn{
  border-radius:14px;
  font-weight:700;
  transition:.25s ease;
}

.btn-xl{
  padding:17px 28px;
  font-size:16px;
}

.btn-gradient{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--purple));
  box-shadow:0 16px 38px rgba(86,80,255,.32);
}

.btn-gradient:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 22px 55px rgba(86,80,255,.42);
}

.btn-glass{
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
}

.btn-glass:hover{
  color:#fff;
  background:rgba(255,255,255,.15);
  transform:translateY(-2px);
}

.btn-login{
  padding-left:26px;
  padding-right:26px;
}

/* ================= NAV ================= */
.glass-nav{
  padding:12px 0;
  transition:.25s ease;
  background:rgba(4,8,18,.18);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.glass-nav.scrolled{
  background:rgba(5,9,20,.78);
  box-shadow:0 10px 40px rgba(0,0,0,.2);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  letter-spacing:.2px;
  color:#fff !important;
  font-weight:900;
}

.brand-mark{
  display:inline-flex;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  color:#fff;
  font-weight:900;
  background:linear-gradient(135deg,var(--cyan),var(--purple));
  box-shadow:0 12px 30px rgba(94,87,255,.4);
}

.nav-link{
  color:rgba(255,255,255,.86) !important;
  font-weight:700;
  margin:0 12px;
  font-size:15px;
}

.nav-link:hover{
  color:#fff !important;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ================= HERO ================= */
.hero-section{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:var(--dark);
  color:#fff;
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  transform:scale(1.04);
  animation:slowZoom 18s ease-in-out infinite alternate;
}

@keyframes slowZoom{
  from{transform:scale(1.04)}
  to{transform:scale(1.12)}
}

.hero-gradient{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 78% 26%, rgba(82,132,255,.18), transparent 35%),
    linear-gradient(90deg, rgba(4,8,18,.72) 0%, rgba(4,8,18,.52) 34%, rgba(4,8,18,.18) 68%, rgba(4,8,18,.32) 100%),
    linear-gradient(180deg, rgba(4,8,18,.08), rgba(4,8,18,.44));
}

.hero-noise{
  position:absolute;
  inset:0;
  z-index:2;
  opacity:.16;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom, #000, transparent 80%);
}

.hero-content{
  position:relative;
  z-index:3;
  padding-top:96px;
  padding-bottom:230px;
}

.hero-badge{
  display:inline-flex;
  padding:9px 16px;
  border-radius:999px;
  color:#dce8ff;
  background:rgba(45,112,255,.18);
  border:1px solid rgba(125,170,255,.3);
  font-size:14px;
  font-weight:700;
  margin-bottom:26px;
}

.hero-title{
  font-weight:950;
  max-width:760px;
  font-size:clamp(42px,5.7vw,76px);
  line-height:1.02;
  letter-spacing:-.055em;
  margin-bottom:26px;
}

.hero-title span{
  display:block;
  background:linear-gradient(135deg,#0aa7ff,#a844ff 70%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-text{
  max-width:610px;
  color:rgba(255,255,255,.82);
  font-size:19px;
  line-height:1.7;
  margin-bottom:36px;
}

.hero-buttons{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.hero-stats-wrap{
  position:absolute;
  left:0;
  right:0;
  bottom:36px;
  z-index:4;
  padding-bottom:0;
}

.glass-panel{
  background:rgba(11,18,36,.78);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 24px 90px rgba(0,0,0,.38);
  backdrop-filter:blur(24px);
}

.hero-stats{
  border-radius:24px;
  padding:28px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}

.hero-stat{
  display:flex;
  gap:16px;
  padding:0 20px;
  min-height:104px;
  align-items:center;
  border-right:1px solid rgba(255,255,255,.1);
}

.hero-stat:last-child{
  border-right:0;
}

.hero-stat-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  font-size:24px;
  background:linear-gradient(135deg,rgba(33,118,255,.18),rgba(139,53,255,.24));
}

.hero-stat strong{
  display:block;
  font-size:18px;
  margin-bottom:8px;
}

.hero-stat strong .counter{
  font-size:32px;
  color:#70a5ff;
}

.hero-stat span{
  color:rgba(255,255,255,.72);
  font-size:14px;
  line-height:1.45;
}

/* ================= SECTIONS ================= */
.section{
  padding:92px 0;
  position:relative;
}

.section-light{
  background:linear-gradient(180deg,#fff,#f7f9ff);
}

.section-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 48px;
}

.section-head h2{
  font-size:clamp(32px,4vw,48px);
  line-height:1.08;
  letter-spacing:-.04em;
  font-weight:950;
  margin-bottom:16px;
}

.section-head h2::after{
  content:"";
  display:block;
  width:54px;
  height:4px;
  margin:18px auto 0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--blue),var(--purple));
}

.section-head p{
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
}

/* ================= FEATURE CARDS ================= */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.feature-card{
  position:relative;
  min-height:245px;
  display:grid;
  grid-template-columns:150px 1fr;
  gap:24px;
  padding:22px;
  border-radius:var(--radius);
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:.28s ease;
  overflow:hidden;
}

.feature-card::before{
  content:"";
  position:absolute;
  inset:auto -40px -60px auto;
  width:170px;
  height:170px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(104,90,255,.15), transparent 70%);
}

.feature-card:hover{
  transform:translateY(-8px);
  box-shadow:0 34px 90px rgba(28,53,110,.2);
  border-color:#dce4ff;
}

.feature-img{
  min-height:190px;
  border-radius:20px;
  background-size:cover;
  background-position:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);
}

.feature-img.robot{background-image:url("../img/card-robot.svg")}
.feature-img.imagegen{background-image:url("../img/card-imagegen.svg")}
.feature-img.video{background-image:url("../img/card-video.svg")}
.feature-img.photoshoot{background-image:url("../img/card-photoshoot.svg")}
.feature-img.cartoon{background-image:url("../img/card-cartoon.svg")}
.feature-img.textgen{background-image:url("../img/card-textgen.svg")}

.feature-card h3{
  font-size:21px;
  line-height:1.2;
  font-weight:900;
  margin:8px 0 12px;
}

.feature-card p{
  color:var(--muted);
  line-height:1.65;
  font-size:15px;
  margin-bottom:18px;
}

.feature-card a{
  color:var(--blue);
  font-weight:800;
  font-size:14px;
}

/* ================= BENEFITS ================= */
.benefits-section{
  background:
    radial-gradient(circle at 50% 0%, rgba(70,115,255,.12), transparent 36%),
    #fff;
}

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:18px;
}

.benefit-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px 20px;
  min-height:210px;
  text-align:center;
  box-shadow:0 14px 50px rgba(28,53,110,.08);
  transition:.25s ease;
}

.benefit-card:hover{
  transform:translateY(-6px);
  box-shadow:0 28px 70px rgba(28,53,110,.15);
}

.benefit-icon{
  width:62px;
  height:62px;
  border-radius:20px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  background:linear-gradient(135deg,rgba(33,118,255,.12),rgba(139,53,255,.14));
}

.benefit-card h3{
  font-size:17px;
  font-weight:900;
  margin-bottom:12px;
}

.benefit-card p{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

/* ================= TOOLS ================= */
.tools-section{
  background:linear-gradient(180deg,#f8faff,#fff);
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:18px;
}

.tool-card{
  min-height:108px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
  align-items:center;
  font-weight:900;
  color:#1b2540;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 15px 50px rgba(28,53,110,.08);
  transition:.25s ease;
  position:relative;
  overflow:hidden;
}

.tool-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.08;
  background:var(--brand-gradient);
  transition:.25s ease;
}

.tool-card strong{
  position:relative;
  z-index:2;
  font-size:16px;
}

.tool-icon{
  position:relative;
  z-index:2;
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  line-height:1;
  color:#fff;
  background:var(--brand-gradient);
  box-shadow:0 12px 28px var(--brand-shadow);
  transition:.25s ease;
}

.tool-card:hover{
  transform:translateY(-7px) scale(1.02);
  box-shadow:0 24px 70px rgba(28,53,110,.15);
}

.tool-card:hover::before{
  opacity:.16;
}

.tool-card:hover .tool-icon{
  transform:scale(1.08) rotate(-4deg);
}

.tool-chatgpt{--brand-gradient:linear-gradient(135deg,#10a37f,#16c79a);--brand-shadow:rgba(16,163,127,.25)}
.tool-gemini{--brand-gradient:linear-gradient(135deg,#4285f4,#a142f4);--brand-shadow:rgba(66,133,244,.25)}
.tool-claude{--brand-gradient:linear-gradient(135deg,#cc785c,#f0a56b);--brand-shadow:rgba(204,120,92,.25)}
.tool-qwen{--brand-gradient:linear-gradient(135deg,#6c45ff,#9b6bff);--brand-shadow:rgba(108,69,255,.25)}
.tool-grok{--brand-gradient:linear-gradient(135deg,#111827,#4b5563);--brand-shadow:rgba(17,24,39,.25)}
.tool-midjourney{--brand-gradient:linear-gradient(135deg,#111827,#7c8aa5);--brand-shadow:rgba(17,24,39,.22)}
.tool-flux{--brand-gradient:linear-gradient(135deg,#111827,#00c2ff);--brand-shadow:rgba(0,194,255,.22)}
.tool-runway{--brand-gradient:linear-gradient(135deg,#00d084,#00a3ff);--brand-shadow:rgba(0,208,132,.24)}
.tool-eleven{--brand-gradient:linear-gradient(135deg,#111827,#6366f1);--brand-shadow:rgba(99,102,241,.24)}
.tool-suno{--brand-gradient:linear-gradient(135deg,#111827,#ff5c8a);--brand-shadow:rgba(255,92,138,.22)}
.tool-veo{--brand-gradient:linear-gradient(135deg,#4285f4,#34a853);--brand-shadow:rgba(66,133,244,.24)}
.tool-kling{--brand-gradient:linear-gradient(135deg,#00b894,#2dd4bf);--brand-shadow:rgba(45,212,191,.24)}
.tool-n8n{--brand-gradient:linear-gradient(135deg,#ea4b71,#ff7a59);--brand-shadow:rgba(234,75,113,.24)}
.tool-comfy{--brand-gradient:linear-gradient(135deg,#4f46e5,#60a5fa);--brand-shadow:rgba(79,70,229,.24)}

/* ================= CTA ================= */
.cta-section{
  padding-top:40px;
  background:#fff;
}

.cta-panel{
  border-radius:28px;
  color:#fff;
  padding:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  background:
    radial-gradient(circle at 18% 40%, rgba(255,255,255,.2), transparent 25%),
    linear-gradient(135deg,#2168ff,#8b35ff);
  box-shadow:0 30px 90px rgba(80,80,255,.28);
  position:relative;
  overflow:hidden;
}

.cta-panel::after{
  content:"";
  position:absolute;
  inset:auto 0 -80px auto;
  width:620px;
  height:260px;
  opacity:.27;
  background:
    linear-gradient(135deg, transparent 20%, rgba(255,255,255,.26) 21%, transparent 22%),
    linear-gradient(45deg, transparent 20%, rgba(255,255,255,.18) 21%, transparent 22%);
  background-size:36px 36px;
  transform:rotate(-7deg);
}

.cta-panel h2{
  font-size:42px;
  font-weight:950;
  letter-spacing:-.04em;
  margin-bottom:12px;
}

.cta-panel p{
  font-size:18px;
  margin:0;
  max-width:670px;
  color:rgba(255,255,255,.86);
}

.cta-panel .btn{
  position:relative;
  z-index:2;
  white-space:nowrap;
  color:#5b3cff;
}

/* ================= FOOTER ================= */
.footer{
  padding:72px 0 34px;
  background:#fff;
  color:#64708a;
}

.footer-brand{
  color:#151d34 !important;
  margin-bottom:18px;
}

.footer p{
  max-width:340px;
  line-height:1.7;
}

.footer h4{
  color:#151d34;
  font-size:16px;
  font-weight:900;
  margin-bottom:16px;
}

.footer a:not(.brand){
  display:block;
  color:#64708a;
  margin-bottom:10px;
}

.footer a:hover{
  color:var(--blue);
}

.footer-bottom{
  text-align:center;
  border-top:1px solid var(--line);
  margin-top:46px;
  padding-top:24px;
}

/* ================= AUTH MODAL ================= */
.ai-modal.auth-modal{
  border:0;
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 34px 110px rgba(17,24,39,.28);
  background:
    radial-gradient(circle at 18% 0%, rgba(33,118,255,.13), transparent 32%),
    radial-gradient(circle at 100% 20%, rgba(139,53,255,.14), transparent 34%),
    #fff;
  padding:34px;
  position:relative;
}

.auth-close{
  position:absolute;
  top:18px;
  right:20px;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:#f1f4fb;
  color:#1b2540;
  font-size:28px;
  line-height:1;
  z-index:5;
  transition:.2s ease;
}

.auth-close:hover{
  background:#e7ecf8;
  transform:rotate(6deg);
}

.auth-screen{
  display:none;
  max-height:calc(100vh - 110px);
  overflow-y:auto;
  padding-right:4px;
}

.auth-screen.active{
  display:block;
  animation:authFade .28s ease;
}

@keyframes authFade{
  from{opacity:0; transform:translateY(10px)}
  to{opacity:1; transform:translateY(0)}
}

.auth-head{
  text-align:center;
  margin-bottom:26px;
  padding-top:6px;
}

.auth-icon{
  width:62px;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
  border-radius:22px;
  font-size:28px;
  background:linear-gradient(135deg,rgba(33,118,255,.13),rgba(139,53,255,.16));
}

.auth-head h5{
  font-size:30px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.04em;
  margin:0 0 10px;
  color:#111827;
}

.auth-head p{
  margin:0 auto;
  max-width:360px;
  color:var(--muted);
  line-height:1.55;
}

.auth-form label{
  font-size:14px;
  font-weight:800;
  color:#1b2540;
  margin:0 0 8px;
}

.auth-form .form-control{
  min-height:56px;
  border-radius:16px;
  border:1px solid #dfe5f3;
  margin-bottom:16px;
  padding:14px 16px;
  font-weight:600;
  box-shadow:none;
}

.auth-form .form-control:focus{
  border-color:#7b8cff;
  box-shadow:0 0 0 4px rgba(86,80,255,.12);
}

.auth-submit{
  min-height:56px;
  margin-top:4px;
}

.auth-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px 10px;
  margin-top:22px;
  color:#7a849b;
  font-size:14px;
}

.auth-link{
  border:0;
  padding:0;
  background:transparent;
  color:var(--blue);
  font-weight:900;
  transition:.2s ease;
}

.auth-link:hover{
  color:var(--purple);
}

@media (max-width:575px){
  .ai-modal.auth-modal{
    padding:24px 20px;
    border-radius:24px;
  }

  .auth-head h5{
    font-size:26px;
  }
}

/* ================= ANIMATION ================= */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .75s ease, transform .75s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width:1199px){
  .cards-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .benefit-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .tools-grid{
    grid-template-columns:repeat(4,1fr);
  }

  .hero-stats{
    grid-template-columns:repeat(2,1fr);
  }

  .hero-stat:nth-child(2){
    border-right:0;
  }

  .hero-stat:nth-child(1),
  .hero-stat:nth-child(2){
    border-bottom:1px solid rgba(255,255,255,.1);
    padding-bottom:22px;
  }

  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4){
    padding-top:22px;
  }
}

@media (max-width:991px){
  .glass-nav .navbar-collapse{
    margin-top:14px;
    padding:18px;
    border-radius:20px;
    background:rgba(8,13,29,.92);
  }

  .nav-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-content{
    padding-top:110px;
    padding-bottom:360px;
  }

  .hero-stats-wrap{
    bottom:24px;
  }

  .cta-panel{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:767px){
  .hero-section{
    min-height:auto;
  }

  .hero-content{
    padding-top:116px;
    padding-bottom:48px;
  }

  .hero-stats-wrap{
    position:relative;
    bottom:auto;
    margin-top:0;
    padding-bottom:28px;
  }

  .hero-title{
    font-size:42px;
  }

  .hero-text{
    font-size:16px;
  }

  .hero-buttons .btn{
    width:100%;
  }

  .hero-stats{
    grid-template-columns:1fr;
    padding:20px;
  }

  .hero-stat{
    border-right:0 !important;
    border-bottom:1px solid rgba(255,255,255,.1);
    padding:20px 0 !important;
  }

  .hero-stat:last-child{
    border-bottom:0;
  }

  .cards-grid{
    grid-template-columns:1fr;
  }

  .feature-card{
    grid-template-columns:1fr;
  }

  .feature-img{
    min-height:220px;
  }

  .benefit-grid{
    grid-template-columns:1fr;
  }

  .tools-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .section{
    padding:68px 0;
  }

  .cta-panel{
    padding:32px 24px;
  }

  .cta-panel h2{
    font-size:32px;
  }
}

@media (max-width:420px){
  .hero-title{
    font-size:34px;
  }

  .brand{
    font-size:18px;
  }
}

.form-control.is-invalid {
    border-color: #ff4b5c !important;
    box-shadow: 0 0 0 4px rgba(255, 75, 92, .12) !important;
}

.field-error {
    display: none;
    color: #e03148;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.field-error.show {
    display: block;
}

.form-error-global {
    background: #ffe8ec;
    color: #c92a3a;
    border: 1px solid #ffc9d2;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 800;
    margin-bottom: 18px;
}
