/* ================================================================
   ACRID AUTOMATION — SHARED DESIGN SYSTEM
   acridautomation.com

   Foundation CSS for all pages. Import via:
   <link rel="stylesheet" href="/styles.css">
   ================================================================ */


/* ================================================================
   1. CSS VARIABLES
   ================================================================ */

:root {
  --red: #E8001A;
  --black: #0A0A0A;
  --white: #F2F0EB;
  --gray: #1A1A1A;
  --gray-mid: #2A2A2A;
  --gray-light: #444;
  --mono: 'DM Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --body: 'DM Sans', sans-serif;
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; }

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


/* ================================================================
   3. 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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}


/* ================================================================
   4. NAV COMPONENT
   ================================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(242,240,235,0.06);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--red);
}

.nav-links a.nav-active {
  color: var(--red);
  opacity: 1;
}

/* Hamburger — hidden on desktop, visible on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Open state — X icon */
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ================================================================
   5. TYPOGRAPHY
   ================================================================ */

em {
  font-style: normal;
  color: var(--red);
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 0.95;
}

.display-xl {
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.88;
}

.display-lg {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.92;
}

.display-md {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
}

.display-sm {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.0;
}

.body-lg {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(242,240,235,0.65);
}

.body-sm {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(242,240,235,0.5);
}

.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,240,235,0.25);
}


/* ================================================================
   6. BUTTON COMPONENTS
   ================================================================ */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #FF001F;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(242,240,235,0.2);
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 36px;
  border: 1px solid rgba(242,240,235,0.2);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}


/* ================================================================
   7. FORM COMPONENTS
   ================================================================ */

.form-row {
  display: flex;
  gap: 0;
}

.form-input {
  flex: 1;
  background: var(--gray);
  border: 1px solid rgba(242,240,235,0.1);
  border-right: none;
  padding: 16px 20px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: rgba(242,240,235,0.25);
}

.form-input:focus {
  border-color: rgba(232,0,26,0.5);
}

.form-btn {
  background: var(--red);
  border: none;
  padding: 16px 28px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.form-btn:hover {
  background: #FF001F;
}

.form-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242,240,235,0.2);
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(232,0,26,0.1);
  border: 1px solid rgba(232,0,26,0.3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
}


/* ================================================================
   8. SECTION UTILITIES
   ================================================================ */

section {
  padding: 120px 40px;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232,0,26,0.2);
  max-width: 120px;
}


/* ================================================================
   9. CARD BASE STYLES
   ================================================================ */

.card {
  background: var(--black);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.card:hover {
  background: var(--gray);
}

/* Red left-border slide-in on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.3s;
}

.card:hover::before {
  height: 100%;
}

.card-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(232,0,26,0.5);
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.card-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(242,240,235,0.5);
}


/* ================================================================
   10. FOOTER COMPONENT
   ================================================================ */

footer {
  padding: 60px 40px;
  border-top: 1px solid rgba(242,240,235,0.06);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  font-family: var(--display);
  font-size: 36px;
  margin-bottom: 8px;
}

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

.footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,240,235,0.2);
  max-width: 280px;
}

.footer-columns {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.footer-col a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242,240,235,0.3);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-disclosure {
  width: 100%;
  padding-top: 40px;
  border-top: 1px solid rgba(242,240,235,0.04);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242,240,235,0.15);
  line-height: 1.8;
}

/* Legacy footer layout (simple two-column) */
.footer-left .footer-logo {
  font-family: var(--display);
  font-size: 36px;
  margin-bottom: 8px;
}

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

.footer-left .footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,240,235,0.2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242,240,235,0.3);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--red); }


/* ================================================================
   11. TICKER
   ================================================================ */

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(232,0,26,0.3);
  border-bottom: 1px solid rgba(232,0,26,0.3);
  background: rgba(232,0,26,0.04);
  padding: 12px 0;
}

.ticker {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,240,235,0.4);
  padding: 0 40px;
  flex-shrink: 0;
}

.ticker-item span {
  color: var(--red);
  margin: 0 8px;
}


/* ================================================================
   12. KEYFRAME ANIMATIONS
   ================================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes drift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-20px, -10px); }
}


/* ================================================================
   13. RESPONSIVE — 900px BREAKPOINT
   ================================================================ */

@media (max-width: 900px) {
  /* Nav collapse */
  nav {
    padding: 16px 24px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 105;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 14px;
    opacity: 0.7;
  }

  /* Sections */
  section {
    padding: 80px 24px;
  }

  /* Forms */
  .form-row {
    flex-direction: column;
  }

  .form-input {
    border-right: 1px solid rgba(242,240,235,0.1);
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-col {
    min-width: 140px;
  }

  /* Legacy footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    align-items: flex-start;
  }

  /* Typography scale-down */
  .display-xl { font-size: clamp(40px, 10vw, 60px); }
  .display-lg { font-size: clamp(36px, 8vw, 48px); }
}
