/* ============================================================
   Alliance Corpo — Global Design System
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  --color-bg: #F5F7F5;
  --color-white: #FFFFFF;
  --color-dark: #0A0A0A;
  --color-dark-2: #111111;
  --color-dark-3: #181818;
  --color-accent: #B5FF47;
  --color-accent-dim: #7AC420;
  --color-muted: #56626B;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-glass-bg: rgba(255, 255, 255, 0.06);
  --color-glass-bg-light: rgba(255, 255, 255, 0.72);
  --color-text-light: #E8E8E8;
  --color-text-dim: #9CA3AF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

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

  --shadow-soft: 0 4px 32px rgba(0, 0, 0, 0.07);
  --shadow-card: 0 8px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(181, 255, 71, 0.22);
  --shadow-glow-lg: 0 0 80px rgba(181, 255, 71, 0.18);

  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --max-w: 1280px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.preload-transitions *,
body.preload-transitions *::before,
body.preload-transitions *::after {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* Skip to content — accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Keyboard focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── Typography Scale ── */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.t-body {
  font-size: 1rem;
  line-height: 1.7;
}

.t-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.t-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 64px;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width:768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width:769px) and (max-width:1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
  border: 1.5px solid var(--color-dark);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
  border: 1.5px solid var(--color-accent);
}

.btn-accent:hover {
  background: #c8ff6e;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── Glass Cards ── */
.glass-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-base);
  will-change: transform;
  transform: translateZ(0);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-card);
}

.glass-card-light {
  background: var(--color-glass-bg-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.glass-card-light:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ── Section Backgrounds ── */
.section-light {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f0 100%);
  padding: 100px 0;
  contain: content;
  transform: translateZ(0);
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(181, 255, 71, 0.4), var(--color-accent), rgba(181, 255, 71, 0.4), transparent);
  opacity: 0.8;
}

.section-off {
  position: relative;
  background: linear-gradient(180deg, #f5f7f5 0%, #eef2ee 100%);
  padding: 100px 0;
  contain: content;
  transform: translateZ(0);
}

.section-off::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(181, 255, 71, 0.3), var(--color-accent), rgba(181, 255, 71, 0.3), transparent);
  opacity: 0.6;
}

.section-dark {
  background: var(--color-dark);
  padding: 100px 0;
  color: var(--color-text-light);
  contain: content;
  transform: translateZ(0);
}

.section-dark-2 {
  background: var(--color-dark-2);
  padding: 100px 0;
  color: var(--color-text-light);
  contain: content;
  transform: translateZ(0);
}

/* ── Accent Highlights ── */
.accent-text {
  color: var(--color-accent);
}

.accent-bg {
  background: var(--color-accent);
  color: var(--color-dark);
}

.accent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(181, 255, 71, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(181, 255, 71, 0.25);
}

/* ── Dotted Separator ── */
.dotted-line {
  width: 100%;
  border: none;
  border-top: 1.5px dotted rgba(255, 255, 255, 0.15);
  margin: 1.5rem 0;
}

.dotted-line-dark {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* ── Blur / Coming Soon Cards ── */
.blur-card {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}

.coming-soon-wrapper {
  position: relative;
}

.coming-soon-wrapper::after {
  content: 'Coming Soon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-white);
  background: rgba(10, 10, 10, 0.45);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 24px rgba(181, 255, 71, 0.2);
  }

  50% {
    box-shadow: 0 0 56px rgba(181, 255, 71, 0.45);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll-driven reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  /* Shorter slide distance */
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Faster duration and snappier ease */
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Section header pattern ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .accent-badge {
  margin-bottom: 20px;
}

.section-header p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section-header.light p {
  color: var(--color-text-dim);
}

/* ── Icon Circles ── */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(181, 255, 71, 0.1);
  border: 1px solid rgba(181, 255, 71, 0.2);
  flex-shrink: 0;
}

.icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

.form-control {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  transition: var(--transition-base);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(181, 255, 71, 0.08);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-group input[type=checkbox] {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  accent-color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group span {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-dark);
  color: var(--color-text-dim);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.footer-brand .nav-brand img.brand-logo {
  height: 60px;
  margin-right: 18px;
}

.footer-brand p {
  color: var(--color-text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

@media (max-width:600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Selection ── */
::selection {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* ── Helpers ── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

.text-accent {
  color: var(--color-accent);
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ══════════════════════════════════════════════════════════════════
   LIGHT SECTION CONTEXT — fixes all text/borders on white bg
   Applied to .section-light and .section-off sections
   ══════════════════════════════════════════════════════════════════ */
.section-light,
.section-off {
  /* Establish color for all children */
  color: #1a2a16;
}

/* Headings */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6,
.section-off h1,
.section-off h2,
.section-off h3,
.section-off h4,
.section-off h5,
.section-off h6 {
  color: #0d1a0a;
}

/* Body and subtext */
.section-light p,
.section-off p {
  color: #3a4a35;
}

/* Section header subheadings */
.section-light .section-header p,
.section-off .section-header p {
  color: #4a5a44;
}

/* Accent badge — stronger border on white */
.section-light .accent-badge,
.section-off .accent-badge {
  background: rgba(181, 255, 71, 0.18);
  border-color: rgba(100, 180, 30, 0.45);
  color: #3a6b00;
}

/* Cards on light sections — use light-variant border */
.section-light .feature-card,
.section-off .feature-card {
  background: #ffffff;
  border: 1.5px solid rgba(181, 255, 71, 0.28);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.section-light .feature-card:hover,
.section-off .feature-card:hover {
  border-color: rgba(181, 255, 71, 0.55);
  box-shadow: 0 8px 32px rgba(181, 255, 71, 0.10), 0 2px 16px rgba(0, 0, 0, 0.08);
}

.section-light .feature-card h3,
.section-off .feature-card h3 {
  color: #0d1a0a;
}

.section-light .feature-card p,
.section-off .feature-card p {
  color: #3a4a35;
}

/* Why-cards on light sections */
.section-light .why-card,
.section-off .why-card {
  background: #ffffff;
  border: 1.5px solid rgba(181, 255, 71, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-light .why-card:hover,
.section-off .why-card:hover {
  border-color: rgba(181, 255, 71, 0.50);
  box-shadow: 0 8px 28px rgba(181, 255, 71, 0.10);
}

.section-light .why-card h3,
.section-light .why-card p,
.section-off .why-card h3,
.section-off .why-card p {
  color: #1a2a16;
}

/* Generic glass-card-light — ensure border visible */
.section-light .glass-card-light,
.section-off .glass-card-light {
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.85);
}

/* Contact form on white */
.section-light input,
.section-light textarea,
.section-light select,
.section-off input,
.section-off textarea,
.section-off select {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  color: #0d1a0a;
}

.section-light input:focus,
.section-light textarea:focus,
.section-off input:focus,
.section-off textarea:focus {
  border-color: rgba(181, 255, 71, 0.65);
  box-shadow: 0 0 0 3px rgba(181, 255, 71, 0.12);
  outline: none;
}

.section-light label,
.section-off label {
  color: #1a2a16;
}

/* Dotted line on light sections — use dark color */
.section-light .dotted-line,
.section-off .dotted-line {
  border-top-color: rgba(0, 0, 0, 0.10);
}

/* ── Reduced Motion Accessibility ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Mobile Performance Optimizations ── */
@media (max-width: 768px) {

  /* Reduce all backdrop-filter blur on mobile to prevent black screen on fast scroll */
  .glass-card,
  .glass-card-light {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Disable hover transforms on touch devices */
  .glass-card:hover,
  .glass-card-light:hover,
  .feature-card:hover,
  .system-card:hover,
  .why-card:hover {
    transform: none;
  }
}