*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep-space: #0f1626e5; /* darker, less purple blue */
  --surface-1: #020203; /* true black (not transparent) */
  --surface-2: #1e222b; /* darker card */
  --surface-3: #262a34; /* slightly lighter layer */

  --accent: #2c3e63e5;
  --accent-light: rgb(51, 68, 107) E5;
  --accent-glow: rgb(255, 255, 255);
  --accent-soft: #425e95e5;
  --accent-border: rgba(255, 107, 107, 0.25);

  --text-primary: #f1f2f6; /* slightly brighter */
  --text-secondary: #a0a3b1; /* cooler gray */
  --text-muted: #6b6f7b;

  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  background-color: #161b27;
  background-image: radial-gradient(circle at 50% -5%, rgba(99,102,241,0.18) 0%, transparent 70%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
   background-attachment: fixed;
     min-height: 100vh;
  display: flex;
  flex-direction: column;
}



a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;         
 padding: 0 clamp(12px, 4vw, 48px);

}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}


.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2c3e63e5;
  box-shadow:
    0 0 20px var(--accent-glow),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 20px var(--accent-glow),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
}



.btn-primary .btn-arrow {
  transition: transform 0.3s;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}


/* ===== HERO ===== */

.hero {
  position: relative;
 padding: clamp(30px, 6vw, 80px) clamp(12px, 4vw, 48px) 20px;
  overflow: hidden;
  flex: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
/* background: radial-gradient(
  circle at center,
  rgba(40, 70, 120, 0.35) 0%,  
  rgba(120, 130, 150, 0.15) 40%,
  transparent 61%
); */
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 80px 80px;
  pointer-events: none;
}



@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #faf9fb 0%,
    var(--accent) 60%,
    #6f8cc7e5 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-animation {
  display: inline-block;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #23385a 0%,
    #52677d 15%,
    #cdd7df 30%,
    #ffffff 50%,
    #cdd7df 70%,
    #52677d 85%,
    #23385a 100%
  );
  background-size: 200% 100%;
  animation: sweep 3s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes sweep {
  0%   { background-position: 100% 0%; }
  100% { background-position: -100% 0%; }
}

.trusted-logo:hover {
  opacity: 0.5;
}

.trusted-logo .t-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero mockup */
.hero-mockup {
  position: relative;
}

.mockup-window {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.mockup-window:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) {
  background: var(--rose);
  opacity: 0.7;
}
.mockup-dot:nth-child(2) {
  background: var(--amber);
  opacity: 0.7;
}
.mockup-dot:nth-child(3) {
  background: var(--green);
  opacity: 0.7;
}

.mockup-body {
  padding: 20px;
}

.mockup-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-metric {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
}

.mockup-metric .mm-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mockup-metric .mm-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mockup-metric .mm-change {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  margin-top: 4px;
}

.mockup-chart {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  height: 120px;
  position: relative;
  overflow: hidden;
}

.mockup-chart-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-line {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 60px;
}

.chart-line svg {
  width: 100%;
  height: 100%;
}

/* ===== SECTIONS ===== */


.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.section-desc {
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--text-primary);
  max-width: 480px;
  line-height: 1.8;
}


.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-header .section-desc {
  margin: 0 auto;
}


/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 0;
   margin-top: auto;
}

/* Row 2: Copyright */
.footer-row-bottom {
  display: flex;
  flex-direction: column;   
  align-items: center;     
    justify-content: space-between;
  gap: 10px;                
  padding: 24px 0 28px;
  font-size: 15px;
}

.footer-email {
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
    margin-top: 10px;
}

/* Hover glow */
.footer-email:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.591);
}

/* Popup */

.copy-popup {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.copy-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-right .separator {
  width: 1px;
  height: 16px;
  background: var(--text-primary);
}

/* ===== SCROLL ANIMATIONS ===== */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-mockup {
    max-width: 500px;
    margin: 0 auto;
  }
  .mockup-window,
  .mockup-window:hover {
    transform: none;
  }


  .footer-row-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
}

.hero {
  position: relative;
  padding: 50px 24px 25px;
  overflow: hidden;
}

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }


  .dash-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }



@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge-dot {
    animation: none;
  }
  .pricing-value.changing {
    opacity: 1;
    transform: none;
  }
  .mockup-window {
    transform: none;
  }
  .replay-cursor {
    animation: none;
    top: 70px;
    left: 100px;
  }
  @keyframes panelIn {
    from {
      opacity: 1;
      transform: none;
    }
  }
}

.hero-logo {
  width: clamp(110px, 12vw, 220px);
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5%;
}


@keyframes spin3d {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.social-icons a {
  width: 63px;
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}
.social-icons a svg {
  width: 40px;
  height: 40px;
  display: block;   /* removes inline offset */
  margin: auto;     /* extra safety centering */
}
/* ── Back to top button ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s,
    background 0.15s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.3);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent-soft);
}
#back-to-top:active {
  transform: scale(0.95);
}
#back-to-top .arrow-up {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  transform: rotate(45deg) translateY(3px);
}
.social-icons a[aria-label="Unity"] svg {
  transform: translateX(0.9px) scale(1.08); 
}

.social-icons a:hover svg {
  transform: scale(1.06);
}

/* Keep Unity aligned on hover */
.social-icons a[aria-label="Unity"]:hover svg {
  transform: translateX(0.9px) scale(1.07);
}


  /* Grid layout */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
  gap: clamp(14px, 2vw, 24px);
  justify-content: center;
  margin: 0 auto 40px;
  padding: 0 clamp(12px, 4vw, 48px);
  max-width: 1200px;
  width: 100%;
}

  .template-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
  }

  .template-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 107, 107, 0.3),
        transparent 40%,
        transparent 60%,
        rgba(255, 107, 107, 0.15));
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

  .template-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .template-card:hover::before {
    opacity: 1;
  }

  .template-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
  }

  .template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
  }

  .template-card:hover .template-thumb img {
    transform: scale(1.04);
  }

  .template-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 16, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .template-card:hover .template-thumb-overlay {
    opacity: 1;
  }

  .template-thumb-overlay .btn {
    font-size: 12.5px;
    padding: 8px 18px;
  }

  .template-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .template-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: clamp(14px, 2vw, 22px);
  }

  /* Button container */
  .template-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
  }

  .template-number {
    font-size: 11px;
    font-family: "JetBrains Mono", monospace;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }

  .template-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }

  .template-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
  }


  /* Tablet */
  @media (max-width: 1024px) {
    .templates-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Mobile */
  @media (max-width: 768px) {
    .templates-grid {
      grid-template-columns: 1fr;
      justify-items: center;
    }
  }

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero-logo {
    width: 220px;
  }

  .section-title {
    font-size: 52px;
  }

  .section-desc {
    font-size: 20px;
  }

  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 380px));
    gap: 32px;
  }

  .social-icons a {
    width: 70px;
    height: 70px;
  }
}


    .cs-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.06);
      border: 0.5px solid rgba(255, 255, 255, 0.14);
      border-radius: 20px;
      padding: 5px 12px;
      color: rgba(255, 255, 255, 0.45);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 500;
      width: fit-content;
    }

    .cs-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #6285cce5;
      animation: pulse 2.4s ease-in-out infinite;
    }

    .cs-dot.delay-1 { animation-delay: 0.3s; }
    .cs-dot.delay-2 { animation-delay: 0.6s; }
    .cs-dot.delay-3 { animation-delay: 0.9s; }

    @keyframes pulse {
      0%, 100% { opacity: 0.3; }
      50%       { opacity: 0.8; }
    }
    