/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background:#08080d;color:#e6e6ee;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
h1,h2,h3,h4,h5,h6{margin:0 0 .6em;line-height:1.2;font-weight:700;letter-spacing:-.01em}
p{margin:0 0 1em}
ul{margin:0;padding:0;list-style:none}
input,textarea,select{font-family:inherit}

/* ===== Layout ===== */
.container{max-width:1240px;margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.section-tight{padding:56px 0}
.center{text-align:center}

/* ===== Flash ===== */
.flash{margin:16px auto;padding:12px 16px;border-radius:10px;font-size:14px;display:flex;align-items:center;gap:8px;max-width:1240px}
.flash-success{background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.3);color:#4ade80}
.flash-error{background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);color:#f87171}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;border-radius:12px;font-weight:600;font-size:14px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;cursor:pointer;
}
.btn-primary{background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;box-shadow:0 8px 24px rgba(124,58,237,.35);border:0}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(124,58,237,.5)}
.btn-outline{background:#12121a;color:#fff;border:1px solid #2a2a38}
.btn-outline:hover{border-color:#7c3aed}
.btn-ghost{color:#c7c7d6}
.btn-danger{background:#2a1414;color:#fca5a5;border:1px solid #4a1e1e}
.btn-danger:hover{background:#3a1818;border-color:#7f1d1d}
.btn-block{width:100%;justify-content:center}
.btn .arrow{display:inline-block;transition:transform .2s}
.btn:hover .arrow{transform:translate(2px,-2px)}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(8,8,13,.7);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.04);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}
.brand{font-weight:800;letter-spacing:.02em;font-size:22px;color:#fff}
.brand .dot{color:#8b5cf6}
.primary-nav{display:flex;align-items:center;gap:28px}
.primary-nav a{color:#c7c7d6;font-size:14px;font-weight:500;transition:color .15s}
.primary-nav a:hover,.primary-nav a.active{color:#8b5cf6}
.header-actions{display:flex;align-items:center;gap:14px}
.icon-btn{
  width:38px;height:38px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#12121a;border:1px solid #23232f;color:#e6e6ee;
  position:relative;transition:border-color .15s;
}
.icon-btn:hover{border-color:#7c3aed}
.cart-badge{
  position:absolute;top:-4px;right:-4px;
  background:#7c3aed;color:#fff;font-size:11px;font-weight:700;
  min-width:18px;height:18px;padding:0 5px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 2px #08080d;
}
.menu-toggle{display:none;background:#12121a;border:1px solid #23232f;border-radius:10px;padding:8px 10px}
.menu-toggle span{display:block;width:20px;height:2px;background:#fff;margin:4px 0;border-radius:2px}

/* ===== Hero ===== */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(600px 300px at 10% 0%, rgba(139,92,246,.10), transparent 60%),
    #08080d;
  padding:56px 0 90px;
}
.hero-inner{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 12px;border:1px solid #23232f;border-radius:999px;
  font-size:12px;color:#c7c7d6;letter-spacing:.14em;text-transform:uppercase;
  background:#0f0f16;
}
.eyebrow::before{content:"";width:6px;height:6px;background:#8b5cf6;border-radius:50%}
.hero h1{font-size:clamp(36px,5vw,64px);margin:22px 0 18px;color:#fff}
.hero h1 .accent{color:#8b5cf6}
.hero p.lead{color:#b9b9c9;max-width:520px;font-size:16px}
.hero-cta{display:flex;gap:14px;margin-top:26px;flex-wrap:wrap}
.hero-visual{position:relative;min-height:420px}
.hero-visual img{border-radius:16px;box-shadow:0 30px 60px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.06)}

/* Feature strip */
.feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:44px}
.feature{display:flex;gap:12px;align-items:flex-start;color:#c7c7d6;font-size:13px}
.feature .fi{width:36px;height:36px;border-radius:10px;background:#12121a;border:1px solid #23232f;display:inline-flex;align-items:center;justify-content:center;color:#8b5cf6;flex:0 0 36px}
.feature strong{display:block;color:#fff;font-size:14px;margin-bottom:2px}

/* Stats bar */
.stats{
  background:linear-gradient(180deg,#0d0d15,#0b0b12);
  border:1px solid #1c1c27;border-radius:20px;padding:26px 20px;margin-top:40px;
  display:grid;grid-template-columns:repeat(5,1fr);gap:20px;
}
.stat{display:flex;align-items:center;gap:14px;justify-content:center}
.stat .si{width:44px;height:44px;border-radius:12px;background:#141420;border:1px solid #23232f;display:inline-flex;align-items:center;justify-content:center;color:#8b5cf6}
.stat .sv{font-size:22px;font-weight:800;color:#fff;line-height:1}
.stat .sl{font-size:12px;color:#9a9aae;margin-top:4px}

/* Section head */
.section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.section-head h2{font-size:clamp(24px,3vw,34px);color:#fff}
.section-head p{color:#9a9aae;margin:0}
.section-head .view-all{color:#8b5cf6;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px}

/* Services */
.services{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.svc-card{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;padding:22px;transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease}
.svc-card:hover{transform:translateY(-4px);border-color:#7c3aed;box-shadow:0 20px 40px rgba(124,58,237,.15)}
.svc-icon{width:44px;height:44px;border-radius:12px;background:#171725;border:1px solid #262636;display:inline-flex;align-items:center;justify-content:center;color:#8b5cf6;margin-bottom:14px}
.svc-card h3{color:#fff;font-size:16px;margin:0 0 8px}
.svc-card p{color:#9a9aae;font-size:13px;margin:0 0 14px}
.svc-card .learn{color:#8b5cf6;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px}

/* Projects */
.projects{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.project{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;overflow:hidden;transition:transform .2s ease, border-color .2s ease;display:block}
.project:hover{transform:translateY(-4px);border-color:#7c3aed}
.project .thumb{aspect-ratio:4/3;background:#12121a;overflow:hidden}
.project .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.project:hover .thumb img{transform:scale(1.05)}
.project .meta{padding:16px 18px 20px}
.project h3{color:#fff;font-size:16px;margin:0 0 6px}
.project p{color:#9a9aae;font-size:13px;margin:0 0 12px}
.project .cat{color:#8b5cf6;font-size:12px;letter-spacing:.1em;font-weight:600;text-transform:uppercase}
.project .case{color:#8b5cf6;font-size:13px;font-weight:600}

/* Themes */
.themes{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.theme-card{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;overflow:hidden;transition:transform .2s ease, border-color .2s ease;display:flex;flex-direction:column}
.theme-card:hover{transform:translateY(-4px);border-color:#7c3aed}
.theme-card .thumb{aspect-ratio:4/3;background:#12121a;overflow:hidden;display:block}
.theme-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.theme-card:hover .thumb img{transform:scale(1.05)}
.theme-card .meta{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px}
.theme-card h3{color:#fff;font-size:16px;margin:0}
.theme-card .sub{color:#9a9aae;font-size:12px;margin:0}
.theme-card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:10px}
.theme-card .price{color:#fff;font-weight:800;font-size:18px}
.theme-card .add-form{margin:0}
.cart-btn{
  width:38px;height:38px;border-radius:10px;background:#fff;color:#0b0b12;
  display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer;
  transition:transform .15s, background .15s;
}
.cart-btn:hover{background:#8b5cf6;color:#fff;transform:translateY(-2px)}

/* Pricing */
.pricing-wrap{background:linear-gradient(180deg,#0c0c14,#0a0a12);border:1px solid #1c1c27;border-radius:22px;padding:36px}
.pricing-head{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;margin-bottom:26px;position:relative}
.pricing-head h2{color:#fff;font-size:clamp(24px,3vw,32px);margin:0}
.pricing-head p{color:#9a9aae;margin:0}
.toggle{display:inline-flex;align-items:center;gap:8px;background:#12121a;border:1px solid #23232f;border-radius:999px;padding:4px;font-size:13px;color:#c7c7d6;position:absolute;right:0;top:0}
.toggle button{padding:8px 14px;border-radius:999px;color:#c7c7d6}
.toggle button.active{background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;font-weight:600}
.toggle .save{color:#8b5cf6;margin-left:6px;font-weight:600}
.plans{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.plan{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;padding:22px;display:flex;flex-direction:column;position:relative}
.plan.popular{border-color:#7c3aed;box-shadow:0 20px 40px rgba(124,58,237,.15)}
.plan .badge{position:absolute;top:18px;right:18px;background:#7c3aed;color:#fff;font-size:10px;letter-spacing:.14em;font-weight:800;padding:4px 8px;border-radius:6px}
.plan h3{color:#fff;font-size:20px;margin:0 0 6px}
.plan .desc{color:#9a9aae;font-size:13px;margin:0 0 16px}
.plan .price{color:#fff;font-size:26px;font-weight:800;margin:0 0 18px}
.plan .price small{font-size:13px;color:#9a9aae;font-weight:500}
.plan ul{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;flex:1}
.plan ul li{display:flex;gap:8px;align-items:center;color:#c7c7d6;font-size:13px}
.plan ul li::before{
  content:"";width:16px;height:16px;flex:0 0 16px;border-radius:50%;
  background:#7c3aed url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-6'/></svg>") center/10px no-repeat;
}
.plan .btn{width:100%;justify-content:center}

/* CTA banner */
.cta-banner{
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(139,92,246,.25), transparent 60%),
    linear-gradient(90deg,#1a1030,#120a26);
  border:1px solid #2a1e57;border-radius:20px;padding:34px 40px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
}
.cta-banner h2{color:#fff;font-size:clamp(22px,3vw,30px);margin:0 0 6px}
.cta-banner p{color:#c7c7d6;margin:0}
.cta-actions{display:flex;gap:12px;align-items:center}
.cta-plane{color:#8b5cf6}

/* Footer */
.site-footer{background:#08080d;border-top:1px solid #16161f;padding:64px 0 30px;margin-top:60px}
.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr .8fr 1.2fr;gap:32px;align-items:flex-start}
.footer-brand p{color:#9a9aae;font-size:14px;margin:14px 0 22px;max-width:340px}
.socials{display:flex;gap:10px}
.socials a{width:36px;height:36px;border-radius:8px;background:#12121a;border:1px solid #23232f;display:inline-flex;align-items:center;justify-content:center;color:#e6e6ee;transition:background .15s, color .15s, border-color .15s}
.socials a:hover{background:#7c3aed;border-color:#7c3aed;color:#fff}
.site-footer h4{color:#fff;font-size:15px;margin-bottom:16px}
.footer-col ul li{margin-bottom:10px}
.footer-col a{color:#9a9aae;font-size:14px;transition:color .15s}
.footer-col a:hover{color:#8b5cf6}
.newsletter{display:flex;background:#12121a;border:1px solid #23232f;border-radius:10px;overflow:hidden;margin-top:10px}
.newsletter input{flex:1;padding:12px 14px;background:transparent;border:0;color:#fff;font-size:14px;outline:none}
.newsletter input::placeholder{color:#6d6d80}
.newsletter button{background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer}
.footer-bottom{border-top:1px solid #16161f;margin-top:40px;padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;color:#6d6d80;font-size:13px}
.footer-bottom .links{display:flex;gap:22px}
.footer-bottom .links a:hover{color:#8b5cf6}
.pay-icons{display:flex;gap:10px;align-items:center;opacity:.85}
.pay-chip{border:1px solid #23232f;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700;letter-spacing:.06em}

/* ===== Page heading ===== */
.page-hero{padding:80px 0 30px;background:radial-gradient(700px 250px at 50% 0%, rgba(124,58,237,.14), transparent 60%)}
.page-hero h1{font-size:clamp(30px,4vw,44px);color:#fff;margin:0}
.page-hero .lead{color:#9a9aae;margin-top:12px;max-width:640px}

/* ===== Cart ===== */
.cart-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;align-items:flex-start}
.cart-list{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;overflow:hidden}
.cart-row{display:grid;grid-template-columns:96px 1fr auto auto auto;gap:18px;align-items:center;padding:18px;border-bottom:1px solid #16161f}
.cart-row:last-child{border-bottom:0}
.cart-row .thumb{width:96px;height:72px;border-radius:10px;overflow:hidden;background:#12121a}
.cart-row .thumb img{width:100%;height:100%;object-fit:cover}
.cart-row .info h3{color:#fff;font-size:15px;margin:0 0 4px}
.cart-row .info p{color:#9a9aae;font-size:12px;margin:0}
.qty{display:inline-flex;align-items:center;gap:0;border:1px solid #23232f;border-radius:10px;overflow:hidden;background:#12121a}
.qty button{width:32px;height:36px;color:#fff}
.qty input{width:44px;height:36px;background:transparent;border:0;color:#fff;text-align:center;font-weight:600;outline:none;-moz-appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cart-row .line-price{color:#fff;font-weight:700;min-width:90px;text-align:right}
.cart-remove{color:#f87171;background:#1a1414;border:1px solid #3a1e1e;width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s}
.cart-remove:hover{background:#2a1414}
.cart-empty{padding:60px 20px;text-align:center;color:#9a9aae}
.cart-empty .icon{width:64px;height:64px;border-radius:50%;background:#12121a;border:1px solid #23232f;display:inline-flex;align-items:center;justify-content:center;color:#7c3aed;margin-bottom:14px}

.cart-summary{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;padding:22px;position:sticky;top:100px}
.cart-summary h3{color:#fff;margin:0 0 16px;font-size:18px}
.sum-row{display:flex;justify-content:space-between;padding:10px 0;color:#c7c7d6;font-size:14px;border-bottom:1px dashed #1c1c27}
.sum-row.total{color:#fff;font-size:18px;font-weight:800;border-bottom:0;padding-top:14px}
.cart-summary .btn{margin-top:16px}
.coupon{display:flex;margin-top:14px;gap:8px}
.coupon input{flex:1;background:#12121a;border:1px solid #23232f;color:#fff;padding:10px 12px;border-radius:10px;outline:none}
.coupon button{background:#12121a;border:1px solid #23232f;color:#fff;padding:0 14px;border-radius:10px;cursor:pointer}

/* ===== Forms (checkout, contact) ===== */
.form-card{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;padding:26px}
.form-card h2{color:#fff;font-size:20px;margin:0 0 18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid .full{grid-column:1 / -1}
.field label{display:block;font-size:13px;color:#c7c7d6;margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;background:#12121a;border:1px solid #23232f;color:#fff;
  padding:12px 14px;border-radius:10px;outline:none;font-size:14px;transition:border-color .15s;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#7c3aed}
.field textarea{min-height:120px;resize:vertical}
.pay-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:6px}
.pay-methods label{
  display:flex;align-items:center;gap:8px;background:#12121a;border:1px solid #23232f;
  padding:12px;border-radius:10px;cursor:pointer;font-size:13px;color:#c7c7d6;transition:border-color .15s;
}
.pay-methods input{accent-color:#7c3aed}
.pay-methods label:has(input:checked){border-color:#7c3aed;color:#fff}

/* Order confirmation */
.order-success{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;padding:60px 30px;text-align:center;max-width:640px;margin:0 auto}
.order-success .big-check{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;display:inline-flex;align-items:center;justify-content:center;margin-bottom:18px;box-shadow:0 20px 40px rgba(124,58,237,.3)}
.order-success h1{color:#fff}
.order-summary-box{background:#12121a;border:1px solid #23232f;border-radius:12px;padding:18px;text-align:left;margin:22px 0}
.order-summary-box .sum-row{padding:8px 0}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;align-items:flex-start}
.contact-info{background:#0f0f17;border:1px solid #1c1c27;border-radius:16px;padding:26px}
.contact-info h3{color:#fff;margin:0 0 18px}
.contact-info .row{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.contact-info .ci-icon{width:40px;height:40px;border-radius:10px;background:#171725;border:1px solid #262636;display:inline-flex;align-items:center;justify-content:center;color:#8b5cf6}
.contact-info small{color:#9a9aae;display:block}
.contact-info strong{color:#fff}

/* Single theme detail */
.theme-detail{display:grid;grid-template-columns:1.2fr 1fr;gap:32px}
.theme-detail .gallery img{width:100%;border-radius:16px;border:1px solid #1c1c27}
.theme-detail .info h1{font-size:32px;color:#fff}
.theme-detail .info .sub{color:#9a9aae;margin-bottom:20px}
.theme-detail .info .price{color:#fff;font-size:32px;font-weight:800;margin-bottom:20px}
.theme-detail .info ul{margin:16px 0}
.theme-detail .info ul li{padding:6px 0;color:#c7c7d6;font-size:14px;display:flex;gap:8px;align-items:center}
.theme-detail .info ul li::before{content:"✓";color:#8b5cf6;font-weight:800}

/* About page */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.about-grid img{border-radius:16px;border:1px solid #1c1c27}
.about-grid h2{color:#fff}
.about-grid p{color:#c7c7d6}

/* ===== Content wrap (generic) ===== */
.content-wrap{max-width:820px;margin:0 auto;padding:80px 24px}
.content-wrap h1{color:#fff}

/* ===== Responsive ===== */
@media (max-width:1080px){
  .services{grid-template-columns:repeat(3,1fr)}
  .projects,.themes,.plans{grid-template-columns:repeat(2,1fr)}
  .feature-strip{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(3,1fr);row-gap:24px}
  .footer-grid{grid-template-columns:1fr 1fr 1fr}
  .cart-layout{grid-template-columns:1fr}
  .cart-summary{position:static}
  .contact-grid,.about-grid,.theme-detail{grid-template-columns:1fr}
}
@media (max-width:820px){
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{min-height:auto;margin-top:8px}
  .primary-nav,.header-actions .btn-outline{display:none}
  .menu-toggle{display:inline-flex}
  .section{padding:56px 0}
  .toggle{position:static;margin-top:6px}
  .pricing-head{align-items:center}
  .cart-row{grid-template-columns:80px 1fr;grid-template-rows:auto auto;gap:12px}
  .cart-row .thumb{width:80px;height:60px}
  .cart-row .qty,.cart-row .line-price,.cart-row .cart-remove{grid-column:2}
  .form-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .services,.projects,.themes,.plans{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .cta-banner{padding:24px}
  .section-head{flex-direction:column;align-items:flex-start}
  .pay-methods{grid-template-columns:1fr}
}

/* Mobile drawer */
.mobile-drawer{position:fixed;inset:0;background:rgba(8,8,13,.96);z-index:60;display:none;padding:80px 24px 24px}
.mobile-drawer.open{display:block}
.mobile-drawer .close{position:absolute;top:20px;right:20px;font-size:26px;color:#fff}
.mobile-drawer ul{display:flex;flex-direction:column;gap:6px}
.mobile-drawer a{color:#e6e6ee;font-size:18px;padding:12px 0;display:block;border-bottom:1px solid #16161f}
