/* ==========================================================
   Silakab — Components
   ========================================================== */

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background-color: #1ab4f5;
  box-shadow: var(--shadow-glow-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 165, 235, 0.1);
}

.btn-accent {
  background: var(--gradient-brand);
  color: var(--color-white);
  border: none;
}

.btn-accent:hover {
  filter: brightness(1.15);
  box-shadow: var(--shadow-glow-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Small button variant */
.btn-sm {
  padding: 10px 24px;
  font-size: var(--text-body-sm);
}

/* ── Cards ── */

.card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition:
    border-color var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.card-dark {
  background-color: var(--color-dark-surface);
  border: var(--border-card-dark);
}

.card-dark:hover {
  border-color: rgba(0, 165, 235, 0.3);
  box-shadow: 0 0 30px rgba(0, 165, 235, 0.08);
  transform: translateY(-4px);
}

.card-light {
  background-color: var(--color-white);
  border: var(--border-card-light);
  box-shadow: var(--shadow-card-light);
}

.card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Card icon area */
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  border-radius: 12px;
  background: rgba(0, 165, 235, 0.1);
  color: var(--color-primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.card h4 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-muted-light);
}

.card-light p {
  color: var(--color-muted-dark);
}

/* ── Section Divider ── */

.divider {
  height: 1px;
  border: none;
  background: var(--gradient-line);
  margin-block: var(--space-4xl);
}

.divider-sm {
  width: 80px;
  height: 2px;
  border: none;
  background: var(--gradient-brand);
  margin-bottom: var(--space-lg);
}

/* ── Section Header ── */

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header .text-caption {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  display: block;
}

.section-header p {
  margin-top: var(--space-md);
  max-width: var(--max-text-width);
}

.section-header.text-center p {
  margin-inline: auto;
}

/* ── Hero section base ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-black);
  padding-top: 80px;
  padding-bottom: var(--space-4xl);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero p {
  color: var(--color-muted-light);
  max-width: 600px;
}

.hero .btn {
  margin-top: var(--space-xl);
}

/* Page-level hero (shorter) */
.hero-page {
  min-height: auto;
  padding-top: 140px;  /* 80px header offset + 60px visual space */
  padding-bottom: 60px;
}

/* ── Particle canvas overlay ── */

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* ── Gradient background accent ── */

.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
}

.glow-orb--primary {
  background: var(--color-primary);
}

.glow-orb--secondary {
  background: var(--color-secondary);
}

.glow-orb--tertiary {
  background: var(--color-tertiary);
}

/* ── CTA Strip ── */

.cta-strip {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.cta-strip .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-strip h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  margin-inline: auto;
}

.cta-strip .btn {
  background: var(--color-white);
  color: var(--color-dark-surface);
  font-weight: 700;
}

.cta-strip .btn:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ── Patent Reference Badge ── */

.patent-ref {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(103, 57, 147, 0.1);
  border: 1px solid rgba(103, 57, 147, 0.2);
  color: var(--color-tertiary);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.patent-ref svg {
  width: 14px;
  height: 14px;
}

/* ── Section Visual (image accent between header and content) ── */

.section-visual {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

@media (max-width: 640px) {
  .section-visual {
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-sm);
  }

  .section-img {
    border-radius: var(--radius-sm);
  }
}

/* ── Mobile performance optimizations ── */

@media (max-width: 640px) {
  .glow-orb {
    width: 300px;
    height: 300px;
    filter: blur(80px);
    opacity: 0.2;
  }
}
