/* ==========================================================================
   NS ENTERPRISE — styles.css
   Senior-level, production-ready CSS
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Backgrounds & Surfaces */
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-surface: #fbf8ff;
  --bg-surface-dim: #d9d9e7;
  
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;

  /* Borders */
  --border-light: #E2E8F0;
  --border-mid: #c4c5da;

  /* Primary & Accent palette */
  --primary: #0047FF;
  --primary-dark: #0035c5;
  --accent-indigo: #6366F1;
  --accent-purple: #A855F7;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #434657;
  --text-muted: #747688;
  --text-inverse: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* Layout */
  --nav-height: 80px;
  --section-v-pad: 128px;
  --container-max: 1280px;

  /* Shapes */
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.18s;
  --dur-normal: 0.3s;
  --dur-slow: 0.8s;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  /* Prevent scroll during mobile menu open */
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   3. UTILITY
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.w-100 { width: 100%; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ==========================================================================
   4. SCROLL ANIMATIONS
   ========================================================================== */
.fade-up-element {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}

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

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up-element {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .headline-lg {
    font-size: 32px;
    line-height: 40px;
  }
}

.headline-md {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.body-lg {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.body-md {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.label-md {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.02em;
}

.label-sm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-base);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition:
    transform    var(--dur-fast) var(--ease-standard),
    background   var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  /* No shadow per DESIGN.md */
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(0, 71, 255, 0.05); /* very light primary */
}

/* Ghost button for utility actions */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
}
.btn-ghost:hover {
  background: rgba(0, 71, 255, 0.05);
}

.btn-github {
  background: #1a1e23;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-github:hover {
  background: #2d333b;
}

.fiverr-btn {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 191, 115, 0.4);
}
.fiverr-btn:hover {
  background: #17a862;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 191, 115, 0.55);
}

/* ==========================================================================
   7. LAYOUT & COMPONENTS
   ========================================================================== */

/* Navbar */
.navbar {
  background: rgba(251, 248, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.125rem;
}
.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--dur-normal);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
@media (min-width: 768px) {
  .nav-link.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
  }
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
}
@media (max-width: 767px) {
  .hidden-mobile { display: none !important; }
  .mobile-menu-btn { display: block; }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 0 8rem;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse at top right, rgba(221, 225, 255, 0.4), var(--bg-surface), var(--bg-surface));
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(225, 224, 255, 0.5);
  border: 1px solid #c0c1ff;
  color: #07006c;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2rem;
}
.hero-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 48rem;
}
.hero-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 42rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Stats & Cards */
.hero-stats {
  position: relative;
  margin-top: 4rem;
}
@media (min-width: 1024px) {
  .hero-stats {
    margin-top: 0;
  }
}
.hero-stats-glow {
  position: absolute;
  inset: 0;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 9999px;
  filter: blur(48px);
  transform: translate(3rem, -3rem);
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-value {
  color: var(--primary);
}
.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Sections */
.section-gap {
  padding-top: var(--section-v-pad);
  padding-bottom: var(--section-v-pad);
}
.section-header h2 {
  color: var(--text-primary);
}

/* Helpers */
.text-gradient {
  background: linear-gradient(90deg, #0035c5, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }

/* Partnerships */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  height: 120px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.flex-row {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .flex-row {
    flex-direction: row;
  }
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
@media (min-width: 768px) {
  .card-image img {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .w-2-5 { width: 40%; }
  .w-3-5 { width: 60%; }
}
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.bg-secondary { background: var(--bg-secondary); }

/* Blog Components */
.featured-post {
  position: relative;
  overflow: hidden;
  height: 500px;
  cursor: pointer;
}
.featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.featured-post:hover .featured-bg {
  transform: scale(1.05);
}
.featured-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  z-index: 10;
}
.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3rem;
  z-index: 20;
  width: 100%;
}
@media (min-width: 768px) {
  .featured-content { width: 66.666%; }
}
.post-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 71, 255, 0.2);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.inline-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(251, 248, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.text-inverse { color: var(--text-inverse); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  padding: 8px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: var(--radius-base);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.pill:hover { border-color: var(--primary); }
.pill.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}
.article-img {
  height: 192px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.justify-between { justify-content: space-between; }
.align-end { align-items: flex-end; }
.p-6 { padding: 1.5rem; }

/* Grid 2 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
/* Grid 2 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gap-16 { gap: 4rem; }

/* Grid 4 */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-inverse);
  padding: 3rem 0;
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.3s;
}
.footer a:hover {
  color: var(--text-inverse);
  opacity: 1;
}
.footer .headline-md { color: var(--text-inverse); font-weight: 600; }
.footer .label-md { color: var(--text-inverse); margin-bottom: 1rem; }
.footer .footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contact Specific */
.icon-circle {
  width: 96px;
  height: 96px;
  background: var(--bg-card);
  border: 4px solid var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.process-step:hover .icon-circle {
  transform: scale(1.1);
}
.icon-box {
  width: 48px;
  height: 48px;
  background: var(--bg-surface-dim);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: rgba(0, 71, 255, 0.05);
  border-bottom-left-radius: 9999px;
  pointer-events: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(196, 197, 218, 0.5);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.block { display: block; }

/* ==========================================================================
   8. SECTION LAYOUT
   ========================================================================== */
.section {
  padding: var(--section-v-pad) 24px;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* ==========================================================================
   8. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1001;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-standard);
  padding: 4px 0;
}

.nav-link:hover { color: var(--text-primary); }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px;
  line-height: 0;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.mobile-menu-btn:hover { border-color: var(--border-mid); }

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-normal) var(--ease-standard);
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link { font-size: 1.75rem; }
}

/* ==========================================================================
   9. HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 64px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 48px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 780px;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

@media (max-width: 600px) {
  .stats-bar { padding: 24px 16px; gap: 8px; }
  .stat { padding: 0 16px; }
  .stat-divider { display: none; }
  .stat-value { font-size: 1.5rem; }
}

/* ==========================================================================
   10. APPS GRID
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Wide feature card spans all 3 columns */
.app-card.wide { grid-column: span 3; }

@media (max-width: 900px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-card.wide { grid-column: span 1; }
}

/* Base card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    background   var(--dur-normal) var(--ease-standard),
    border-color var(--dur-normal) var(--ease-standard),
    transform    var(--dur-normal) var(--ease-standard),
    box-shadow   var(--dur-normal) var(--ease-standard);
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Clickable card overlay link */
.clickable-card { cursor: pointer; }

.card-main-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.front-btn {
  position: relative;
  z-index: 2;
}

/* Video container */
.app-card .video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #0d0d0d;
  border: 1px solid var(--border-light);
  position: relative;
  flex-shrink: 0;
}

.app-card .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video hover overlay */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-standard);
  pointer-events: none;
}

.play-overlay span {
  background: var(--accent-indigo);
  color: #fff;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  transform: translateY(8px);
  transition: transform var(--dur-normal) var(--ease-standard);
}

.app-card:hover .play-overlay            { opacity: 1; }
.app-card:hover .play-overlay span       { transform: translateY(0); }

/* Card text */
.app-card h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9375rem;
  flex-grow: 1;
}

.app-card .btn { width: 100%; }

/* Featured badge */
.app-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

/* Coming soon badge */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: auto;
}

/* Wide card layout */
.app-card.wide {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.app-card.wide .video-container {
  width: 340px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.app-card.wide .content { flex-grow: 1; }

@media (max-width: 900px) {
  .app-card.wide {
    flex-direction: column;
  }
  .app-card.wide .video-container {
    width: 100%;
    max-width: 100%;
  }
}

/* NS AI Scanner special card */
.scanner-card .scanner-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0d0d12 0%, #111827 100%);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--accent-indigo);
}

/* Animated scanner line */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
  animation: scan 2s ease-in-out infinite;
  border-radius: 1px;
}

@keyframes scan {
  0%   { top: 0%;   opacity: 1; }
  50%  { top: 100%; opacity: 1; }
  51%  { top: 100%; opacity: 0; }
  52%  { top: 0%;   opacity: 0; }
  100% { top: 0%;   opacity: 1; }
}

/* ==========================================================================
   11. SDK SECTION
   ========================================================================== */
.sdk-section {
  background: #070707;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.sdk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition:
    border-color var(--dur-normal) var(--ease-standard),
    box-shadow   var(--dur-normal) var(--ease-standard),
    transform    var(--dur-normal) var(--ease-standard);
  display: flex;
  flex-direction: column;
}

.sdk-card:hover {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 30px rgba(99,102,241,0.08);
  transform: translateY(-3px);
}

.sdk-icon {
  font-size: 1.75rem;
  margin-bottom: 20px;
  width: 52px;
  height: 52px;
  background: rgba(99,102,241,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdk-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.sdk-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==========================================================================
   12. FOUNDER SECTION
   ========================================================================== */
.founder-card {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.founder-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-mid);
  box-shadow: 0 0 0 8px rgba(99,102,241,0.06);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-info h3 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.founder-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.founder-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 500px;
}

.founder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .founder-info p { max-width: 100%; }
  .founder-actions { justify-content: center; }
}

/* ==========================================================================
   13. REVIEWS
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--dur-normal) var(--ease-standard),
    transform    var(--dur-normal) var(--ease-standard);
}

.review-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-indigo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-meta h4 {
  font-size: 0.9375rem;
  margin: 0;
  font-family: var(--font-display);
}

.review-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stars {
  color: #fbbf24;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 3px;
}

.review-body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 16px;
}

.review-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.reviews-cta {
  text-align: center;
  padding-top: 8px;
}

/* ==========================================================================
   14. CONTACT FORM
   ========================================================================== */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 28px 20px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition:
    border-color var(--dur-fast) var(--ease-standard),
    box-shadow   var(--dur-fast) var(--ease-standard);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-success {
  text-align: center;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-success h3 { font-size: 1.5rem; }

.form-success p { color: var(--text-secondary); }

.form-error {
  color: #f87171;
  font-size: 0.875rem;
  padding: 12px 16px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 64px 24px 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col h5 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-standard);
}

.footer-nav-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.copyright { color: var(--text-muted); font-size: 0.875rem; }

.footer-domain {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   16. APP DETAIL PAGE
   ========================================================================== */
.detail-hero {
  padding-top: calc(var(--nav-height) + 48px);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 32px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.detail-back:hover { color: var(--text-primary); }

.detail-video-wrapper {
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.detail-video-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.detail-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.detail-content > p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.detail-content h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-list li svg { color: var(--accent-green); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* Tech stack tags */
.tech-stack { margin-bottom: 40px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(99,102,241,0.2);
}

/* ==========================================================================
   17. STATS GRID (Hero)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  width: 100%;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition:
    background   var(--dur-normal) var(--ease-standard),
    border-color var(--dur-normal) var(--ease-standard),
    transform    var(--dur-normal) var(--ease-standard);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
}

/* ==========================================================================
   18. SDK CARD FEATURES LIST
   ========================================================================== */
.sdk-card {
  display: flex;
  flex-direction: column;
}

.sdk-card-content {
  flex-grow: 1;
}

.sdk-features {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sdk-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   19. DETAIL PAGE — HERO BANNER
   ========================================================================== */
.detail-hero-banner {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  position: relative;
  overflow: hidden;
}

/* Gradient overlays per app */
.detail-banner-code {
  background: linear-gradient(135deg, #0a0a1a 0%, #0f0f2e 60%, #050505 100%);
}

.detail-banner-clarify {
  background: linear-gradient(135deg, #0a1a14 0%, #0a2a1a 60%, #050505 100%);
}

.detail-banner-moodify {
  background: linear-gradient(135deg, #1a0a14 0%, #2a0a1e 60%, #050505 100%);
}

.detail-banner-cutloom {
  background: linear-gradient(135deg, #1a120a 0%, #2a1a0a 60%, #050505 100%);
}

/* Ambient glow orb */
.detail-hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.detail-banner-clarify::before  { background: radial-gradient(ellipse at center, rgba(29,191,115,0.08) 0%, transparent 70%); }
.detail-banner-moodify::before  { background: radial-gradient(ellipse at center, rgba(236,72,153,0.1) 0%, transparent 70%); }
.detail-banner-cutloom::before  { background: radial-gradient(ellipse at center, rgba(251,191,36,0.08) 0%, transparent 70%); }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color var(--dur-fast) var(--ease-standard);
}

.detail-back:hover { color: var(--text-secondary); }

.detail-banner-content {
  max-width: 700px;
}

.detail-app-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.detail-badge-soon {
  background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.25);
  color: #fcd34d;
}

.detail-app-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
  line-height: 1.05;
}

.detail-app-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
}

.coming-soon-cta {
  margin-top: 8px;
}

.coming-soon-badge-lg {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   20. DETAIL PAGE — TWO-COLUMN LAYOUT
   ========================================================================== */
.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .detail-two-col {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    order: -1; /* Sidebar goes above on mobile */
  }
}

.detail-two-col h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.detail-two-col > div > p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 20px;
}

.detail-two-col h3 {
  font-size: 1.125rem;
  margin: 32px 0 16px;
}

/* Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.detail-info-card h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.download-card {
  background: rgba(99,102,241,0.05);
  border-color: rgba(99,102,241,0.15);
}

/* Detail reveal animation target */
.detail-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}

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

@media (prefers-reduced-motion: reduce) {
  .detail-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Micro Animations & Color Shifting
   ========================================================================== */

/* Gradient Shift for dynamic text/backgrounds */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-shift {
  background-size: 200% 200% !important;
  animation: gradientShift 6s ease infinite;
}

/* Hover Lift for Cards */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-lift:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15) !important;
}

/* Glow Pulse for primary buttons */
@keyframes btnGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 71, 255, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(0, 71, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 71, 255, 0); }
}

.btn-pulse {
  transition: transform 0.3s ease !important;
}
.btn-pulse:hover {
  animation: btnGlow 1.5s infinite !important;
  transform: translateY(-2px) !important;
}


/* ==========================================================================
   Premium Animations & Dynamic Interactions (Vercel/Linear Style)
   ========================================================================== */

/* 1. Premium Scroll Reveal */
.reveal-premium {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity, transform;
}
.reveal-premium.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggering for grid items */
.reveal-premium:nth-child(1) { transition-delay: 0ms; }
.reveal-premium:nth-child(2) { transition-delay: 100ms; }
.reveal-premium:nth-child(3) { transition-delay: 200ms; }
.reveal-premium:nth-child(4) { transition-delay: 300ms; }
.reveal-premium:nth-child(5) { transition-delay: 400ms; }
.reveal-premium:nth-child(6) { transition-delay: 500ms; }

/* 2. Cursor-Tracking Glow Cards */
.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 71, 255, 0.05), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.bento-card:hover::before {
  opacity: 1;
}
.bento-card > * {
  position: relative;
  z-index: 1;
}
.bento-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* 3. Fluid Buttons */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.btn-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}
.btn-premium:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 10px 20px rgba(0, 53, 197, 0.15) !important;
}
.btn-premium:hover::after {
  transform: rotate(30deg) translateX(100%);
}
