﻿/* ============================================================
   VENTCORP — Global Design System
   Author: VentCorp™ | ventcorp.com
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
  /* Colors */
  --clr-bg:           #070711;
  --clr-bg-2:         #0d0d1f;
  --clr-surface:      rgba(255,255,255,0.04);
  --clr-surface-2:    rgba(255,255,255,0.08);
  --clr-border:       rgba(255,255,255,0.08);
  --clr-border-hover: rgba(108,63,232,0.5);

  --clr-primary:      #6C3FE8;       /* electric violet */
  --clr-primary-light:#8B63FF;
  --clr-primary-glow: rgba(108,63,232,0.35);
  --clr-secondary:    #00D4FF;       /* cyan */
  --clr-secondary-glow: rgba(0,212,255,0.3);
  --clr-accent:       #FF6B6B;       /* coral accent */
  --clr-gold:         #FFD166;       /* award / cert gold */

  --clr-text:         #FFFFFF;
  --clr-text-muted:   rgba(255,255,255,0.55);
  --clr-text-faint:   rgba(255,255,255,0.3);

  /* Gradients */
  --grad-hero:     linear-gradient(135deg, #070711 0%, #12072F 50%, #070E1F 100%);
  --grad-primary:  linear-gradient(135deg, #6C3FE8 0%, #00D4FF 100%);
  --grad-card:     linear-gradient(145deg, rgba(108,63,232,0.1) 0%, rgba(0,212,255,0.05) 100%);
  --grad-gold:     linear-gradient(135deg, #FFD166 0%, #FF9D4D 100%);
  --grad-text:     linear-gradient(135deg, #FFFFFF 0%, #A78BFA 50%, #00D4FF 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-lg:   1.125rem;   /* 18px */
  --fs-xl:   1.25rem;    /* 20px */
  --fs-2xl:  1.5rem;     /* 24px */
  --fs-3xl:  1.875rem;   /* 30px */
  --fs-4xl:  2.25rem;    /* 36px */
  --fs-5xl:  3rem;       /* 48px */
  --fs-6xl:  3.75rem;    /* 60px */
  --fs-7xl:  4.5rem;     /* 72px */

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extrabold:800;
  --fw-black:    900;

  --lh-tight:  1.2;
  --lh-snug:   1.35;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.6);
  --shadow-primary: 0 8px 32px var(--clr-primary-glow);
  --shadow-secondary: 0 8px 32px var(--clr-secondary-glow);
  --shadow-glow:    0 0 60px rgba(108,63,232,0.2), 0 0 120px rgba(0,212,255,0.08);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 300ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   500ms cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: 400ms cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --container-max: 1280px;
  --navbar-h:      72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  background-image: var(--grad-hero);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text);
}

/* ── Typography Utilities ─────────────────────────────────── */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary   { color: var(--clr-primary); }
.text-secondary { color: var(--clr-secondary); }
.text-muted     { color: var(--clr-text-muted); }
.text-gold      { color: var(--clr-gold); }

.font-heading   { font-family: var(--font-heading); }
.fw-light       { font-weight: var(--fw-light); }
.fw-medium      { font-weight: var(--fw-medium); }
.fw-semibold    { font-weight: var(--fw-semibold); }
.fw-bold        { font-weight: var(--fw-bold); }
.fw-black       { font-weight: var(--fw-black); }

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

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section-sm {
  padding-block: var(--space-16);
}

.section-lg {
  padding-block: var(--space-32);
}

/* Flex utilities */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Grid utilities */
.grid { display: grid; }

/* Spacing */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ── Glass Card Utility ───────────────────────────────────── */
.glass {
  background: var(--clr-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
}

.glass:hover {
  border-color: var(--clr-border-hover);
  background: var(--clr-surface-2);
}

/* ── Badge Utility ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary   { background: rgba(108,63,232,0.2); color: var(--clr-primary-light); border: 1px solid rgba(108,63,232,0.3); }
.badge-secondary { background: rgba(0,212,255,0.15); color: var(--clr-secondary); border: 1px solid rgba(0,212,255,0.3); }
.badge-gold      { background: rgba(255,209,102,0.15); color: var(--clr-gold); border: 1px solid rgba(255,209,102,0.3); }
.badge-green     { background: rgba(52,211,153,0.15); color: #34D399; border: 1px solid rgba(52,211,153,0.3); }
.badge-coral     { background: rgba(255,107,107,0.15); color: var(--clr-accent); border: 1px solid rgba(255,107,107,0.3); }

/* ── Section Header ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--clr-primary);
}

.section-title {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
}

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--navbar-h) + var(--space-16));
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-size: clamp(var(--fs-4xl), 5vw, var(--fs-7xl));
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
}

.page-hero-desc {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  color: var(--clr-text-muted);
  max-width: 650px;
  margin-inline: auto;
  line-height: var(--lh-loose);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--clr-border);
  margin-block: var(--space-8);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Noise Overlay ───────────────────────────────────────── */
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='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar          { width: 6px; }
::-webkit-scrollbar-track    { background: var(--clr-bg); }
::-webkit-scrollbar-thumb    { background: var(--clr-primary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary-light); }

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(108,63,232,0.35);
  color: white;
}

/* ── Responsive Helpers ──────────────────────────────────── */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-16); }
  .section-lg { padding-block: var(--space-20); }
  .section-header { margin-bottom: var(--space-10); }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-12); }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
