/* ================================================
  SkyeLabs DESIGN SYSTEM v1.0
  Shared across all SkyeLabs domains
  ================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────── */
:root {
  /* Brand */
  --color-orange:        #F58220;
  --color-orange-light:  #FF9E45;
  --color-orange-dark:   #C9621A;
  --color-blue:          #009FE3;
  --color-blue-light:    #33B8F0;
  --color-blue-dark:     #007BBF;

  /* Neutrals */
  --color-black:         #1A1A1A;
  --color-white:         #FFFFFF;
  --color-grey-50:       #F9F9F9;
  --color-grey-100:      #F2F2F2;
  --color-grey-200:      #E4E4E4;
  --color-grey-300:      #CACACA;
  --color-grey-400:      #9A9A9A;
  --color-grey-500:      #6B6B6B;
  --color-grey-600:      #404040;

  /* Cosmic — SkyeX / SkyeDome */
  --color-cosmic-gold:   #E8B84B;
  --color-nebula-purple: #7B2FBE;
  --color-space-dark:    #0D0D1A;
  --color-space-mid:     #1A1A3E;

  /* Domain Accents */
  --color-SkyeFone:  #009FE3;
  --color-skyepay:  #16A34A;
  --color-SkyeMail:  #F58220;
  --color-skyex:    #E8B84B;
  --color-SkyeDome:  #7B2FBE;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  4.5rem;

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

  /* Layout */
  --container-max: 1280px;
  --container-px:  clamp(1rem, 4vw, 2rem);
  --nav-h:         72px;
  --section-py:    clamp(3rem, 8vw, 6rem);

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.18);
  --shadow-orange: 0 4px 24px rgba(245,130,32,0.35);
  --shadow-blue:   0 4px 24px rgba(0,159,227,0.30);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 2. RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── 3. TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-black);
}
h1 { font-size: clamp(2.5rem, 7vw, var(--text-6xl)); }
h2 { font-size: clamp(1.875rem, 4vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }
p  { line-height: 1.7; }

/* ── 4. LAYOUT ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.section     { padding: var(--section-py) 0; }
.section--dark { background: var(--color-space-dark); }
.section--grey { background: var(--color-grey-100); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-orange);
  margin-bottom: var(--sp-3);
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-label--light { color: var(--color-orange-light); }
.section-label--center { justify-content: center; }

.section-heading             { margin-bottom: var(--sp-5); }
.section-heading--center     { text-align: center; }
.section-heading--light      { color: var(--color-white); }

.section-intro {
  font-size: var(--text-md);
  color: var(--color-grey-500);
  max-width: 640px;
  margin: 0 auto var(--sp-12);
  text-align: center;
  line-height: 1.7;
}
.section-intro--light { color: rgba(255,255,255,0.6); }

/* ── 5. BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  padding: 0.75rem 1.875rem;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), border-color var(--t-base),
              color var(--t-base);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--color-orange-light);
  border-color: var(--color-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,130,32,0.5);
}

.btn-secondary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
}
.btn-secondary:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.85);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-orange);
  border-color: var(--color-orange);
}
.btn-outline:hover {
  background: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-sm { font-size: var(--text-xs); padding: 0.5rem 1.25rem; }
.btn-lg { font-size: var(--text-base); padding: 1rem 2.25rem; }

/* ── 6. CARDS ──────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  border: 1px solid var(--color-grey-200);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-cosmic {
  background: linear-gradient(135deg, var(--color-space-dark) 0%, var(--color-space-mid) 100%);
  border: 1px solid rgba(123,47,190,0.25);
  color: var(--color-white);
}
.card-cosmic:hover { border-color: rgba(123,47,190,0.5); }

/* ── 7. NAVIGATION ─────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}
.site-header.scrolled {
  background: rgba(13,13,26,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-white);
  flex-shrink: 0;
}
.logo-mark {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-accent { color: var(--color-orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex: 1;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
  transition: width var(--t-base);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--t-base);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. FORMS ──────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label  {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-grey-600);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-grey-300);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(245,130,32,0.15);
}
.form-input::placeholder { color: var(--color-grey-400); }
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-grey-600);
}
.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-orange);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── 9. SCROLL ANIMATIONS ──────────────────────── */
[data-anim] {
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.25,0.46,0.45,0.94) var(--delay, 0s),
    transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94) var(--delay, 0s);
}
[data-anim="up"]    { transform: translateY(30px); }
[data-anim="left"]  { transform: translateX(-30px); }
[data-anim="right"] { transform: translateX(30px); }
[data-anim="scale"] { transform: scale(0.93); }
[data-anim].visible { opacity: 1; transform: none; }

/* ── 10. FOOTER ────────────────────────────────── */
.site-footer {
  background: var(--color-space-dark);
  color: var(--color-white);
  padding: var(--sp-20) 0 var(--sp-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--sp-8);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin: var(--sp-4) 0 var(--sp-5);
  max-width: 280px;
}
.footer-social { display: flex; gap: var(--sp-3); }
.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.social-link:hover { background: var(--color-orange); border-color: var(--color-orange); }
.social-link svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
}
.footer-col ul  { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a   {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--color-orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }
.footer-legal    { display: flex; gap: var(--sp-5); }
.footer-legal a  {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--color-orange); }

/* ── 11. RESPONSIVE (shared) ───────────────────── */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions   { display: none; }
  .hamburger     { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    background: rgba(13,13,26,0.98);
    backdrop-filter: blur(16px);
    padding: var(--sp-8) var(--container-px);
    gap: var(--sp-6);
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 999;
  }
  .nav-links.open ~ .nav-actions {
    display: flex;
    position: fixed;
    top: calc(var(--nav-h) + 260px);
    inset-inline: 0;
    padding: 0 var(--container-px) var(--sp-8);
    background: rgba(13,13,26,0.98);
    justify-content: center;
    gap: var(--sp-3);
    z-index: 999;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-legal  { flex-direction: column; align-items: center; gap: var(--sp-2); }
}
