/* marketing/static/css/brand.css */

/* ========== DESIGN SYSTEM: SAAS MODERN (SWIFTPOS DASHBOARD) ========== */
:root {
  /* CORE COLORS */
  --sp-color-primary: #6d28d9; /* Deep Purple/Indigo matching dashboard */
  --sp-color-secondary: #8b5cf6; /* Lighter Purple */
  --sp-color-accent: #f3f4f6; /* Very light grey */

  /* BACKGROUNDS */
  --sp-color-bg-white: #ffffff;
  --sp-color-bg-grey: #f9fafb;
  --sp-color-bg-light: #f3f4f6;

  /* TEXT COLORS */
  --sp-color-text-main: #1f2937;
  --sp-color-text-grey: #4b5563;
  --sp-color-text-muted: #9ca3af;

  /* BORDERS */
  --sp-color-border: #e5e7eb;
  --sp-color-border-dark: #d1d5db;

  /* RADIUS (Soft/SaaS Aesthetic) */
  --sp-radius: 12px;
  --sp-radius-lg: 20px;
  --sp-radius-pill: 500px;

  /* SHADOWS */
  --sp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* TRANSITIONS */
  --sp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & GLOBAL ========== */
* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--sp-color-bg-white);
  color: var(--sp-color-text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--sp-transition);
}

a:hover {
  opacity: 0.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 0.95;
}

/* ========== NAVIGATION ========== */
.sp-header {
  background: #ffffff;
  border-bottom: 1px solid var(--sp-color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sp-header-glass {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background-color 0.3s ease;
  z-index: 1020;
}

@media (min-width: 992px) {
  .nav-center-absolute {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }
}

.sp-navbar {
  padding: 1.2rem 0;
}

.navbar-brand span {
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.sp-nav-links .nav-link {
  color: var(--sp-color-text-main) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem !important;
}

/* ========== BUTTONS ========== */
.sp-btn-primary {
  background: var(--sp-color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--sp-radius-pill) !important;
  padding: 1rem 2.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: transform 0.1s ease, background 0.2s ease !important;
}

.sp-btn-primary:hover {
  background: var(--sp-color-secondary) !important;
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow);
}

.sp-btn-outline {
  background: transparent !important;
  color: var(--sp-color-primary) !important;
  border: 2px solid var(--sp-color-primary) !important;
  border-radius: var(--sp-radius-pill) !important;
  padding: 1rem 2.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all var(--sp-transition) !important;
}

.sp-btn-outline:hover {
  background: var(--sp-color-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow);
}

/* Premium Hero Gradients */
.text-gradient-premium {
  background: linear-gradient(120deg, #aacaee, #a29bfe, #fd79a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== HERO SECTION ========== */
.sp-section-hero {
  padding: 140px 0;
  text-align: center;
  background: var(--sp-color-bg-white);
}

/* Premium SaaS Hero Variant */
.sp-section-hero-premium {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
}

.sp-hero-overlay-dark {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 25, 0.7);
}

.sp-hero-overlay-gradient {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.sp-hero-glass-card {
  max-width: 950px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.sp-hero-title-premium {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #fff;
}

.sp-hero-title {
  font-size: 6.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .sp-hero-title {
    font-size: 4rem;
  }
}

.sp-hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--sp-color-text-main);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ========== CARDS & GRIDS ========== */
.sp-section {
  padding: 100px 0;
}

.sp-section-alt {
  background-color: var(--sp-color-bg-grey);
}

.sp-section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.sp-section-subtitle {
  font-size: 1.1rem;
  color: var(--sp-color-text-grey);
  margin-bottom: 4rem;
}

.sp-card {
  background: var(--sp-color-bg-white);
  border: 1px solid var(--sp-color-border) !important;
  border-radius: var(--sp-radius) !important;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow);
}

/* ========== BLOG CARDS (MODERN NIKE STYLE) ========== */
.sp-card-blog {
  border: 1px solid var(--sp-color-border);
  border-radius: var(--sp-radius);
  background: #ffffff;
  padding: 0;
  height: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sp-shadow-sm);
}

.sp-card-blog:hover {
  border-color: var(--sp-color-secondary);
  box-shadow: var(--sp-shadow-lg);
  transform: translateY(-4px);
}

.sp-card-blog-content {
  padding: 1.5rem 1rem;
}

.sp-blog-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8d8d8d;
  margin-bottom: 0.75rem;
  display: block;
}

/* ========== SIDEBAR STYLES ========== */
.sp-sidebar {
  position: sticky;
  top: 100px;
}

.sp-sidebar-widget {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sp-color-border);
}

.sp-icon-circle {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--sp-color-primary);
}

/* ========== FOOTER ========== */
.sp-footer {
  background: #ffffff;
  padding: 100px 0 50px;
  border-top: 1px solid var(--sp-color-border);
}

.sp-footer-heading {
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.sp-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-footer-list li {
  margin-bottom: 0.75rem;
}

.sp-footer-link {
  color: var(--sp-color-text-grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.sp-footer-link:hover {
  color: #000;
}

.sp-footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--sp-color-border);
  font-size: 0.8rem;
  color: var(--sp-color-text-muted);
}

/* ========== UTILITIES ========== */
.text-gradient {
  background: linear-gradient(135deg, var(--sp-color-primary), var(--sp-color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.sp-bg-primary {
  background-color: var(--sp-color-primary) !important;
  color: #fff !important;
}

.sp-text-primary {
  color: var(--sp-color-primary) !important;
}

.sp-badge-soft {
  background: var(--sp-color-light);
  color: var(--sp-color-primary);
  border: 1px solid var(--sp-color-primary);
  border-radius: var(--sp-radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.img-fluid-nike {
  max-width: 100%;
  height: auto;
  filter: grayscale(10%) contrast(1.1);
}