/* ============================================
   SUMMIT WRAPS & GRAPHICS — GLOBAL DESIGN SYSTEM
   v2 — Frontend Design Skill Applied
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,800&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --black:        #000000;
  --surface:      #0f2a36;
  --surface-mid:  #1a3d4c;
  --surface-dark: #081820;
  --white:        #ffffff;
  --text-muted:   #8fa8b2;

  --purple:       #864e9b;
  --purple-bright:#a855c8;
  --purple-dark:  #3d1c59;
  --pink:         #b367a8;
  --lime:         #d4ff00;
  --lime-dim:     #a8cc00;
  --cyan:         #29ffca;
  --teal:         #1a3d4c;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  2rem;
  --gap-lg:  4rem;
  --gap-xl:  6rem;

  --max-width: 1200px;
  --radius:    6px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  --transition: 0.25s ease;
  --transition-slow: 0.5s ease;

  --glow-lime:   0 0 40px rgba(212,255,0,0.25), 0 0 80px rgba(212,255,0,0.1);
  --glow-purple: 0 0 40px rgba(134,78,155,0.3), 0 0 80px rgba(134,78,155,0.1);
  --glow-sm-lime: 0 4px 24px rgba(212,255,0,0.35);
  --glow-sm-purple: 0 4px 24px rgba(134,78,155,0.4);
}

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

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

/* Grain texture overlay on body */
body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3.5rem, 9vw, 8rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.text-white p { color: var(--white); }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

section { padding: var(--gap-xl) 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--lime);
  color: var(--black);
  box-shadow: var(--glow-sm-lime);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(212,255,0,0.55), 0 2px 8px rgba(212,255,0,0.3);
}

/* Pulse animation for primary CTAs in hero */
.btn-primary.btn-pulse {
  animation: btnPulse 2.5s ease infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: var(--glow-sm-lime); }
  50% { box-shadow: 0 8px 48px rgba(212,255,0,0.65), 0 0 0 6px rgba(212,255,0,0.08); }
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
  box-shadow: var(--glow-sm-purple);
}

.btn-purple:hover {
  box-shadow: 0 8px 40px rgba(134,78,155,0.6);
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--gap-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lime);
  flex-shrink: 0;
}

/* ---- SECTION HEADERS ---- */
.section-header { margin-bottom: var(--gap-lg); }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.1rem; max-width: 600px; }

/* ---- HIGHLIGHT TEXT ---- */
.highlight {
  color: var(--lime);
  text-shadow: 0 0 40px rgba(212,255,0,0.3);
}

.highlight-purple {
  color: var(--purple-bright);
  text-shadow: 0 0 40px rgba(168,85,200,0.3);
}

/* ---- DIVIDER ---- */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-bright), var(--lime));
  border-radius: 2px;
  margin: var(--gap-sm) 0;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(4px);
  opacity: 0.6;
}

/* ---- BACKGROUND VARIANTS ---- */
.bg-surface  { background: var(--surface); }
.bg-dark     { background: var(--surface-dark); }
.bg-gradient { background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface) 100%); }

/* ---- GRID UTILITIES ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }

/* ---- CARDS ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(134,78,155,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(134,78,155,0.5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(134,78,155,0.2);
}

.card:hover::before { opacity: 1; }

/* ---- PLACEHOLDER IMAGES ---- */
.img-placeholder {
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-mid) 50%, rgba(134,78,155,0.2) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,0.08);
}

/* ---- FADE UP ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ---- GLOW UTILITIES ---- */
.glow-lime   { box-shadow: var(--glow-lime); }
.glow-purple { box-shadow: var(--glow-purple); }

/* ---- DIAGONAL SECTION DIVIDER ---- */
.section-slant {
  position: relative;
}
.section-slant::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--black);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.section-slant-inv::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--black);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ---- ACCENT ORBS (decorative glow blobs) ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-purple {
  background: rgba(134,78,155,0.25);
}

.orb-lime {
  background: rgba(212,255,0,0.12);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: var(--gap-lg) 0; }
  .container { padding: 0 var(--gap-sm); }
  h1 { font-size: clamp(3rem, 11vw, 5rem); }
}
