/* ============================================================
   GARGOLYTE DIGITAL — Design System & Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ---- CSS Custom Properties (Dark Theme) ---- */
:root {
  --bg-color: #0b0c10;
  --bg-color2: #111218;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-bg-hover: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(0, 243, 255, 0.12);
  --neon-cyan: #00f3ff;
  --neon-cyan-dim: rgba(0, 243, 255, 0.15);
  --neon-cyan-glow: rgba(0, 243, 255, 0.3);
  --neon-yellow: #ffde00;
  --neon-yellow-dim: rgba(255, 222, 0, 0.15);
  --neon-yellow-glow: rgba(255, 222, 0, 0.3);
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  --text-dim: #5a6070;
  --success: #2ed573;
  --error: #ff4757;
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --pink: #ff6b9d;
  --gold: #ffd700;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-header: 'Rajdhani', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover,
a:focus-visible {
  color: var(--neon-yellow);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-neon {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan-glow);
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-default);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00c8d4 100%);
  color: #0b0c10;
  box-shadow: 0 0 24px var(--neon-cyan-dim);
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--neon-cyan-glow);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0b0c10;
}

.btn-accent {
  background: linear-gradient(135deg, var(--neon-yellow) 0%, #ffc107 100%);
  color: #0b0c10;
  box-shadow: 0 0 24px var(--neon-yellow-dim);
}

.btn-accent:hover {
  box-shadow: 0 0 40px var(--neon-yellow-glow);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0b0c10;
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
}

.btn-outline:hover {
  background: var(--neon-cyan-dim);
  box-shadow: 0 0 24px var(--neon-cyan-glow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--neon-cyan);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 0 24px var(--purple-glow);
}

.btn-purple:hover {
  box-shadow: 0 0 48px var(--purple-glow);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

/* ---- Glassmorphism Card ---- */
.glass-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-default);
}

.glass-card:hover {
  background: var(--panel-bg-hover);
  border-color: rgba(0, 243, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 243, 255, 0.08);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-header);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cyan {
  background: var(--neon-cyan-dim);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.25);
}

.badge-yellow {
  background: var(--neon-yellow-dim);
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 222, 0, 0.25);
}

.badge-purple {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ---- Separator ---- */
.separator {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-yellow));
  border-radius: 3px;
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  transition: var(--transition-default);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link:hover,
.logo-link:focus-visible {
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text-main);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--neon-cyan);
}

.nav-link.active::after {
  background: var(--neon-cyan);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-default);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    background: rgba(11, 12, 16, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--panel-border);
    padding: 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-list.open {
    right: 0;
  }

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-color2);
  border-top: 1px solid var(--panel-border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--neon-cyan);
  text-decoration: none;
}

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

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

.footer-bottom .powered-by {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom .powered-by a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   HERO SECTION (shared across pages)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 243, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 222, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-cyan-dim);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--neon-cyan);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   MODEL / TOOL CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-icon.cyan { background: var(--neon-cyan-dim); color: var(--neon-cyan); }
.card-icon.yellow { background: var(--neon-yellow-dim); color: var(--neon-yellow); }
.card-icon.purple { background: rgba(124, 58, 237, 0.2); color: var(--purple); }
.card-icon.pink { background: rgba(255, 107, 157, 0.2); color: var(--pink); }
.card-icon.gold { background: rgba(255, 215, 0, 0.2); color: var(--gold); }

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 32px var(--neon-cyan-dim);
  background: rgba(0, 243, 255, 0.04);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.plan-name {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.plan-desc {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.plan-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
  color: var(--text-muted);
}

.plan-price .amount {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-features li i {
  color: var(--success);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Founder badge animation */
.founder-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--neon-yellow), #ffc107);
  color: #0b0c10;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: founderPulse 2s ease-in-out infinite;
}

@keyframes founderPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 222, 0, 0.4); }
  50% { box-shadow: 0 0 24px rgba(255, 222, 0, 0.7); }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-cyan-dim);
  border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form-wrap {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
}

.contact-form-wrap h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-default);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px var(--neon-cyan-dim);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.3rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible {
  display: block;
}

.form-success i {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 243, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

@media (max-width: 480px) {
  .cta-banner h2 {
    font-size: 1.6rem;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Floating particles (decorative) */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* ============================================================
   TOOLS PAGE SPECIFIC
   ============================================================ */
.tool-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card .card-icon {
  margin-bottom: 1rem;
}

.tool-card .card-header {
  display: block;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.tool-tag {
  font-size: 0.75rem;
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--neon-cyan-dim);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

/* ============================================================
   LEGAL / PRIVACY PAGE
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--neon-cyan);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content strong {
  color: var(--text-main);
}

.legal-content .last-updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}

.about-team-card {
  text-align: center;
  padding: 2rem;
}

.about-team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  border: 2px solid var(--neon-cyan);
}

/* Timeline for about */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.timeline-item .year {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.3rem;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--neon-cyan-dim);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 50%;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition-default);
  z-index: 999;
  font-size: 1.1rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--neon-cyan-dim);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   CARD BACKGROUND IMAGES (25% opacity)
   ============================================================ */
.card-bg-wrap {
  position: relative;
  overflow: hidden;
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card-bg-wrap:hover .card-bg-img {
  opacity: 0.35;
}

.card-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 12, 16, 0.85) 0%,
    rgba(11, 12, 16, 0.7) 50%,
    rgba(11, 12, 16, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.card-bg-wrap > *:not(.card-bg-img):not(.card-bg-overlay) {
  position: relative;
  z-index: 2;
}

/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-bg {
  --hero-video-opacity: 0.25;
}

.hero-video-bg video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: contain;
  background: var(--bg-color);
  opacity: var(--hero-video-opacity);
  transition: opacity 0.6s ease;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 243, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 222, 0, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   TUTORIAL IMAGES
   ============================================================ */
.tutorial-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tutorial-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  transition: var(--transition-default);
}

.tutorial-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 8px 32px var(--neon-cyan-dim);
  transform: translateY(-4px);
}

.tutorial-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--panel-border);
}

.tutorial-card-body {
  padding: 1.25rem 1.5rem;
}

.tutorial-card-body h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.tutorial-card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================================
   ABOUT IMAGE HERO
   ============================================================ */
.about-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  margin-top: 2rem;
}

/* ============================================================
   SECTION DIVIDER WITH IMAGE
   ============================================================ */
.section-bg-img {
  position: relative;
  overflow: hidden;
}

.section-bg-img > .bg-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section-bg-img > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HORIZONTAL CAROUSEL
   ============================================================ */
.cards-carousel {
  position: relative;
  padding: 0 3rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  outline: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.carousel-card {
  flex: 0 0 340px;
  scroll-snap-align: center;
  transition: var(--transition-default);
}

@media (max-width: 600px) {
  .carousel-card {
    flex: 0 0 85vw;
  }

  .cards-carousel {
    padding: 0 1.5rem;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  transition: var(--transition-default);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: var(--neon-cyan-dim);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  border-color: var(--neon-cyan);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

@media (max-width: 600px) {
  .carousel-arrow {
    display: none;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--panel-border);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-default);
  padding: 0;
}

.carousel-dot:hover {
  border-color: var(--neon-cyan);
}

.carousel-dot.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  transform: scale(1.3);
}

/* ============================================================
   IMAGE MODAL
   ============================================================ */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.image-modal-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 60px var(--neon-cyan-dim);
}

.image-modal-close {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-color2);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition-default);
  z-index: 2;
}

.image-modal-close:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}

/* ============================================================
   MODEL CARD — Golden Ratio (image at bottom)
   ============================================================ */
.model-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
}

.model-card-body {
  flex: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.model-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.model-card-body .model-ideal {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--panel-border);
}

.model-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  border-top: 1px solid var(--panel-border);
}

.model-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.model-card:hover .model-card-img-wrap img {
  transform: scale(1.05);
}

.model-card-img-wrap::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.model-card:hover .model-card-img-wrap::after {
  opacity: 1;
}

.model-card .card-header {
  margin-bottom: 0.75rem;
}

/* ============================================================
   MODAL TRIGGER CURSOR
   ============================================================ */
.modal-trigger {
  cursor: pointer;
}

/* ============================================================
   GENERATE MODEL CARDS (inline variant for generate page)
   ============================================================ */
.model-card-inline {
  display: flex;
  flex-direction: column;
}

.model-card-inline .model-card-img-wrap {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tutorial-card.modal-trigger img {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tutorial-card.modal-trigger:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}
