/* ============================================
   SSS Payment Options — Stylesheet
   Matches: softwaresolutionsservices.co.za
   ============================================ */

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

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

:root {
  --brand-primary: #0a84ff;
  --brand-dark: #050505;
  --brand-surface: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(10, 132, 255, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --glow: rgba(10, 132, 255, 0.3);
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--brand-dark);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Ambient Background Blobs --- */
.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 900px;
  height: 900px;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.12) 0%, transparent 70%);
  animation: blob-drift-1 25s ease-in-out infinite alternate;
}

.blob-2 {
  width: 700px;
  height: 700px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.08) 0%, transparent 70%);
  animation: blob-drift-2 30s ease-in-out infinite alternate;
}

.blob-3 {
  width: 500px;
  height: 500px;
  top: 45%;
  left: 55%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.05) 0%, transparent 70%);
  animation: blob-drift-3 20s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(80px, 60px); }
}

@keyframes blob-drift-2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, -80px); }
}

@keyframes blob-drift-3 {
  from { transform: translate(-50%, -50%); }
  to   { transform: translate(calc(-50% + 40px), calc(-50% - 30px)); }
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--glow);
  transition: transform 0.3s ease;
}

.logo-icon:hover {
  transform: rotate(15deg) scale(1.1);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-dot {
  color: var(--brand-primary);
}

.header-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--brand-primary);
}

/* --- Main Content --- */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.section-label span {
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}

.section-label svg {
  width: 12px;
  height: 12px;
  color: var(--brand-primary);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

/* --- Plan Cards Grid --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Glass Card --- */
.plan-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 40px rgba(10, 132, 255, 0.08);
}

.plan-badge {
  display: inline-block;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.plan-badge span {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-description {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.plan-price {
  margin-bottom: 2rem;
}

.plan-price .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
  margin-right: 0.15rem;
}

.plan-price .period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* --- Subscribe Button --- */
.subscribe-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--brand-primary);
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.25);
  transition: background 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
  margin-top: auto;
  letter-spacing: 0.02em;
}

.subscribe-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(10, 132, 255, 0.35);
}

.subscribe-btn:active {
  transform: translateY(0);
}

/* --- Features List (compact) --- */
.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.plan-features .excluded {
  color: var(--text-dim);
}

.plan-features .excluded::before {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Status Banner --- */
.status-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  animation: slide-down 0.4s ease-out;
}

.status-banner.success {
  background: rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.status-banner.cancelled {
  background: rgba(239, 68, 68, 0.15);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.status-banner .close-banner {
  background: none;
  border: none;
  color: inherit;
  margin-left: 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
}

.status-banner .close-banner:hover {
  opacity: 1;
}

@keyframes slide-down {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* --- Footer --- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.footer-link {
  color: var(--brand-primary);
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 1.25rem;
  }

  .plan-card {
    padding: 2rem 1.75rem;
  }

  .main {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .logo-text {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .plans-grid {
    gap: 1rem;
  }

  .plan-card {
    padding: 2rem 1.5rem;
  }
}
