/* ============================================================
   ANTHELUS — Main Stylesheet
   Premium Modern Design System
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:       #0057FF;
  --primary-dark:  #0A1F44;
  --primary-light: #EAF2FF;
  --accent:        #00C2FF;
  --accent-2:      #4F8CFF;
  --white:         #FFFFFF;
  --off-white:     #F8FAFF;
  --gray-100:      #F1F5FF;
  --gray-200:      #E2EAFF;
  --gray-500:      #7A90BE;
  --gray-700:      #3A4A6B;
  --dark:          #050D1F;

  --font-sans:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display:  'Plus Jakarta Sans', 'Inter', sans-serif;

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 12px rgba(0, 87, 255, .08);
  --shadow:     0 8px 40px rgba(0, 87, 255, .12);
  --shadow-lg:  0 24px 80px rgba(0, 87, 255, .18);

  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --nav-h:      72px;
}

/* ── Dark Mode ─────────────────────────────────────────── */
[data-theme="dark"] {
  --off-white:   #0A1225;
  --gray-100:    #111C36;
  --gray-200:    #1A2A4A;
  --gray-700:    #A0B4D8;
  --dark:        #F0F6FF;
  --white:       #131D33;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: color var(--transition); }

/* ── Typography ─────────────────────────────────────────── */
.display-1 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.display-2 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }

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

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: #E0EAFF; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ── Layout ─────────────────────────────────────────────── */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,.06);
}

[data-theme="dark"] #navbar.scrolled {
  background: rgba(10,18,37,.92);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
}

.nav-logo span { color: var(--accent); }

.nav-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,87,255,.3);
  white-space: nowrap;
}

.btn-primary-custom:hover {
  background: #0046D4;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,87,255,.4);
  color: var(--white);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,87,255,.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0A2D6E 50%, #0057FF 100%);
  overflow: hidden;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,194,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(79,140,255,.14) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: .4;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-30px) rotate(180deg); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 28px;
}

.hero-heading .gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

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

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.hero-card:hover { transform: translateY(-6px); }

.floating-badge {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 12px 20px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Section Title ──────────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--primary-dark);
}

[data-theme="dark"] .section-title { color: #D0E2FF; }

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Cards ──────────────────────────────────────────────── */
.card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .card-premium {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,87,255,.2);
}

.card-premium:hover::before { transform: scaleX(1); }

.card-icon {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.card-premium:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(-5deg) scale(1.1);
}

/* ── Stats Counter ──────────────────────────────────────── */
#stats-section {
  background: linear-gradient(135deg, var(--primary-dark), #0057FF);
  position: relative;
  overflow: hidden;
}

#stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,194,255,.15) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num .counter { display: inline-block; }

.stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ── Flow / Pipeline ────────────────────────────────────── */
.flow-section { background: var(--gray-100); }

[data-theme="dark"] .flow-section { background: var(--gray-100); }

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

@media (min-width: 768px) {
  .flow-steps { flex-direction: row; gap: 0; }
  .flow-steps::before {
    left: 0; right: 0; top: 40px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
  }
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 20px;
}

.flow-node {
  width: 56px; height: 56px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  box-shadow: 0 0 0 6px rgba(0,87,255,.08);
}

.flow-step:hover .flow-node {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: 0 0 0 10px rgba(0,87,255,.12);
}

/* ── Project Cards ──────────────────────────────────────── */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

[data-theme="dark"] .project-card { background: var(--gray-100); border-color: var(--gray-200); }

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card-img img { transform: scale(1.06); }

.project-status {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.project-status.launched { background: rgba(16,185,129,.8); }
.project-status.development { background: rgba(0,87,255,.8); }
.project-status.research { background: rgba(245,158,11,.8); }

.project-card-body { padding: 28px; }
.project-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.project-card-text { font-size: .875rem; color: var(--gray-500); margin-bottom: 20px; }

/* ── Innovation Areas ───────────────────────────────────── */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.innovation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .innovation-card { background: var(--gray-100); border-color: var(--gray-200); }

.innovation-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.innovation-card:hover::after { opacity: 1; }
.innovation-card:hover .innovation-card-content { position: relative; z-index: 1; }
.innovation-card:hover h3 { color: var(--white); }
.innovation-card:hover p { color: rgba(255,255,255,.8); }
.innovation-card:hover .card-icon { background: rgba(255,255,255,.2); color: var(--white); }

.innovation-card-content { position: relative; z-index: 0; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  position: relative;
}

[data-theme="dark"] .testimonial-card { background: var(--gray-100); border-color: var(--gray-200); }

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; left: 28px;
  font-size: 5rem;
  color: var(--primary);
  opacity: .15;
  font-family: serif;
  line-height: 1;
}

.stars { color: #F59E0B; font-size: .875rem; margin-bottom: 16px; }

/* ── Newsletter ─────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #0A1F44, #0057FF);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 100% 50%, rgba(0,194,255,.2) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-form { max-width: 520px; }

.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 100px;
  font-size: .9rem;
  outline: none;
  transition: all var(--transition);
}

.newsletter-input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-input:focus {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
}

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent); }

.footer-desc { font-size: .875rem; line-height: 1.75; max-width: 300px; }

.footer-heading {
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-divider { border-color: rgba(255,255,255,.1); margin: 48px 0 24px; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ── Forms ──────────────────────────────────────────────── */
.form-control-custom {
  width: 100%;
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--dark);
  outline: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.form-control-custom:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,87,255,.08);
}

.form-control-custom::placeholder { color: var(--gray-500); }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-primary { background: var(--primary-light); color: var(--primary); font-weight: 700; border-radius: 100px; padding: 4px 12px; font-size: .75rem; }
.badge-success { background: #D1FAE5; color: #065F46; font-weight: 700; border-radius: 100px; padding: 4px 12px; font-size: .75rem; }
.badge-warning { background: #FEF3C7; color: #92400E; font-weight: 700; border-radius: 100px; padding: 4px 12px; font-size: .75rem; }
.badge-danger  { background: #FEE2E2; color: #991B1B; font-weight: 700; border-radius: 100px; padding: 4px 12px; font-size: .75rem; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0057FF 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,194,255,.18) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 1; }
.page-hero-title { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; }
.page-hero-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; }
.breadcrumb-custom { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.6); font-size: .85rem; margin-bottom: 20px; }
.breadcrumb-custom a { color: rgba(255,255,255,.6); }
.breadcrumb-custom a:hover { color: var(--accent); }
.breadcrumb-custom .sep { opacity: .5; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .timeline::before { left: 24px; }
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px; height: 20px;
  background: var(--primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(0,87,255,.15);
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 420px;
  transition: all var(--transition);
}

.timeline-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.timeline-year { font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }

@media (max-width: 767px) {
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding: 0 0 0 60px;
  }
  .timeline-dot { left: 24px; }
}

/* ── Glassmorphism ──────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
}

/* ── Alert ──────────────────────────────────────────────── */
.alert-custom {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 500;
}

.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #10B981; }
.alert-danger   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }
.alert-info     { background: var(--primary-light); color: var(--primary); border-left: 4px solid var(--primary); }

/* ── Product Cards ──────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

[data-theme="dark"] .product-card { background: var(--gray-100); border-color: var(--gray-200); }

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.product-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card-img img { transform: scale(1.08); }

.product-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-actions { opacity: 1; }

.product-action-btn {
  width: 38px; height: 38px;
  background: var(--white);
  border: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--gray-700);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: all var(--transition);
  font-size: .95rem;
}

.product-action-btn:hover { background: var(--primary); color: var(--white); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
}

.product-badge.sale { background: #EF4444; }
.product-badge.new  { background: #10B981; }

.product-card-body { padding: 20px; }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.product-rating .stars { color: #F59E0B; margin: 0; }

.product-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price .original {
  font-size: .85rem;
  color: var(--gray-500);
  font-weight: 500;
  text-decoration: line-through;
  margin-left: 6px;
}

/* ── Search / Filter Bar ────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

[data-theme="dark"] .filter-bar { background: var(--gray-100); border-color: var(--gray-200); }

/* ── Dark Mode Toggle ───────────────────────────────────── */
.theme-toggle {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.theme-toggle:hover { background: var(--primary); color: var(--white); }

/* ── Scroll Top ─────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,87,255,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 999;
}

#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,87,255,.45); }

/* ── Loading Screen ─────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  margin-bottom: 40px;
}

.loader-logo span { color: var(--accent); }

.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  animation: load-fill 1.8s ease-in-out forwards;
}

@keyframes load-fill {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* ── AOS overrides ──────────────────────────────────────── */
[data-aos] { will-change: transform, opacity; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .section-pad { padding: 72px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .section-pad { padding: 60px 0; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .card-premium { padding: 24px; }
  .timeline::before { left: 20px; }
}

/* ── Freepko Theme Accents ──────────────────────────────── */
.freepko-brand { color: #FF6B35; }
.freepko-bg { background: linear-gradient(135deg, #1A0A2E, #FF6B35 200%); }

.freepko-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #FF6B35, #FF9A35);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Utility ─────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.rounded-xl { border-radius: var(--radius-lg); }
.cursor-pointer { cursor: pointer; }
