/* ============================================
   UNCHAINED AI SOLUTIONS — Master Stylesheet
   No Hype. Just Results.
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --accent: #1cae06;
  --accent-hot: #ff4500;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --border: #222222;
  --font-display: 'Space Mono', monospace;
  --font-body: 'IBM Plex Mono', 'Space Mono', monospace;
  --font-condensed: 'Space Mono', monospace;
  --font-heading: 'Space Mono', monospace;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 2px;
  --max-width: 1320px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: crosshair;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  background-image:
    linear-gradient(rgba(28, 174, 6, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 174, 6, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Noise/Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

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

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

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

.section {
  padding: 100px 0;
}

.section--tight {
  padding: 60px 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Grid System --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: scale(1.02);
}

.btn-primary--hot {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  color: #fff;
}

.btn-primary--hot:hover {
  background: transparent;
  color: var(--accent-hot);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.02);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(28, 174, 6, 0.06);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: gap var(--transition);
}

.card__link:hover {
  gap: 12px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 16px;
  position: relative;
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
}

/* Services Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav__dropdown-link:hover {
  color: var(--accent);
  background: rgba(28, 174, 6, 0.04);
  padding-left: 24px;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  padding: 12px 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active .mobile-nav__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav__link:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.active .mobile-nav__link:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav__link:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav.active .mobile-nav__link:nth-child(9) { transition-delay: 0.5s; }
.mobile-nav.active .mobile-nav__link:nth-child(10) { transition-delay: 0.55s; }
.mobile-nav.active .mobile-nav__link:nth-child(11) { transition-delay: 0.6s; }
.mobile-nav.active .mobile-nav__link:nth-child(12) { transition-delay: 0.65s; }
.mobile-nav.active .mobile-nav__link:nth-child(13) { transition-delay: 0.7s; }

.mobile-nav__link:hover {
  color: var(--accent);
}

.mobile-nav__link--active {
  color: var(--accent);
}

.mobile-nav__divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo img {
  height: 28px;
  width: auto;
  color: var(--accent);
}

.footer__tagline {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__statement {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer__heading {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social:hover {
  border-color: var(--accent);
  background: rgba(28, 174, 6, 0.06);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__social:hover svg {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Hero Components --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero--short {
  min-height: 50vh;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__headline {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

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

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__subscribe {
  display: flex;
  align-items: stretch;
  margin-top: 28px;
  max-width: 420px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero__subscribe-input {
  flex: 1;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 14px 18px;
  outline: none;
}

.hero__subscribe-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.hero__subscribe-input:focus {
  background: #1a1a1a;
}

.hero__subscribe-btn {
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--transition);
}

.hero__subscribe-btn:hover {
  background: #fff;
}

@media (max-width: 480px) {
  .hero__subscribe {
    max-width: 100%;
  }
}

/* Animated Grid Background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(28, 174, 6, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 174, 6, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Scanline overlay */
.hero__scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator__text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-indicator__arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Services Strip / Ticker --- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker__item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 0 24px;
  flex-shrink: 0;
}

.ticker__item::after {
  content: ' / ';
  color: var(--text-muted);
  margin-left: 24px;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Process / Timeline --- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process__step {
  padding: 32px;
  border-left: 2px solid var(--border);
  position: relative;
  transition: border-color var(--transition);
}

.process__step:hover {
  border-color: var(--accent);
}

.process__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.process__step:hover .process__number {
  color: var(--accent);
}

.process__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.process__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 32px 16px;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}

.cta-banner__headline {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #0a0a0a;
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  background: #0a0a0a;
  color: var(--accent);
  border-color: #0a0a0a;
}

.cta-banner .btn-primary:hover {
  background: transparent;
  color: #0a0a0a;
  border-color: #0a0a0a;
}

/* --- Why Unchained / Truth Cards --- */
.truth-card {
  padding: 40px 0;
  border-top: 3px solid var(--accent);
}

.truth-card__text {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* --- Page Hero (for inner pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
}

.page-hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
}

.page-hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(28, 174, 6, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 174, 6, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- About Page --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .about-story {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about-story__quote {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.about-story__body p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Value Cards */
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--accent);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.value-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Team Cards */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}

.team-card__info {
  padding: 24px;
}

.team-card__name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--accent);
}

/* Founder Profile */
.founder-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
}

.founder-profile:hover {
  border-color: var(--accent);
}

.founder-profile__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  filter: grayscale(30%);
  transition: all var(--transition);
}

.founder-profile:hover .founder-profile__photo {
  filter: grayscale(0%);
  border-color: var(--accent);
}

.founder-profile__name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.founder-profile__role {
  font-family: var(--font-condensed);
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.founder-profile__bio {
  color: var(--text-muted);
  line-height: 1.7;
}

.founder-profile__bio p + p {
  margin-top: 16px;
}

.founder-profile__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-profile__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.founder-profile__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}

.founder-profile__link:hover {
  color: var(--accent);
}

.founder-profile__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

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

  .founder-profile__photo {
    max-width: 260px;
  }

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

  .founder-profile__name {
    font-size: 1.6rem;
  }
}

/* --- Portfolio Page --- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-tab {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab--active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(28, 174, 6, 0.04);
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.portfolio-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card__category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 174, 6, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

.portfolio-card__body {
  padding: 24px;
}

.portfolio-card__name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.portfolio-card__client {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.portfolio-card__result {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 16px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info__item {
  display: flex;
  align-items: start;
  gap: 16px;
}

.contact-info__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__label {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-info__value a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.contact-info__value a:hover {
  opacity: 0.8;
}

/* --- Service Page Template --- */
.service-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-hero__icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-hero__icon svg {
  width: 100%;
  height: 100%;
}

.service-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
}

.service-hero__tagline {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(28, 174, 6, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 174, 6, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Service Deliverables */
.deliverable {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.deliverable:last-child {
  border-bottom: none;
}

.deliverable__check {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.7;
}

.deliverable__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* Customer Profile Cards */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all var(--transition);
}

.profile-card:hover {
  border-color: var(--accent);
}

.profile-card__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--accent);
}

.profile-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question__icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question__icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Service Result Stats */
.result-stat {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.result-stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.result-stat__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Flow Diagram (for Automations page) */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
}

.flow-node {
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-align: center;
  min-width: 140px;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 0 16px;
}

@media (max-width: 767px) {
  .flow-arrow {
    transform: rotate(90deg);
    padding: 12px 0;
  }
  .flow-diagram {
    flex-direction: column;
  }
}

/* --- Animations --- */
/* Fade in up (applied by JS via Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Glitch effect for headlines on hover */
.glitch-hover {
  position: relative;
  display: inline-block;
}

.glitch-hover:hover {
  animation: glitch 0.3s ease forwards;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 var(--accent), -2px 0 var(--accent-hot); }
  20% { text-shadow: -2px 2px var(--accent), 2px -2px var(--accent-hot); }
  40% { text-shadow: 2px -2px var(--accent-hot), -2px 2px var(--accent); }
  60% { text-shadow: -1px 1px var(--accent), 1px -1px var(--accent-hot); }
  80% { text-shadow: 1px -1px var(--accent-hot), -1px 1px var(--accent); }
  100% { text-shadow: 0 0 transparent, 0 0 transparent; }
}

/* Counter animation handled by JS */

/* --- Utility Classes --- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Hide on mobile / desktop */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 320px) {
  .container { padding: 0 16px; }
  .hero__headline { font-size: 2.5rem; }
}

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

/* Main content padding for nav */
main {
  position: relative;
}

/* --- Case Study Page --- */
.case-study-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: var(--bg);
  position: relative;
}

.case-study-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-study-hero__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.case-study-hero__breadcrumb a:hover {
  color: var(--accent);
}

.case-study-hero__image {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.case-study-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-hero__tag {
  display: inline-block;
  background: rgba(28, 174, 6, 0.1);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid rgba(28, 174, 6, 0.2);
  margin-bottom: 20px;
}

.case-study-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.case-study-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.case-study-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study-meta__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.case-study-meta__value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 0;
}

.case-study-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.case-study-stat__number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

.case-study-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.case-study-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.case-study-section__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.case-study-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.case-study-section__text {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 24px;
}

.case-study-section__text:last-child {
  margin-bottom: 0;
}

.case-study-problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.case-study-problem {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.case-study-problem__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(28, 174, 6, 0.08);
  border: 1px solid rgba(28, 174, 6, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
}

.case-study-problem__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.case-study-problem__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study-screenshot {
  margin: 40px 0;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.case-study-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-screenshot__caption {
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-study-screenshot__caption::before {
  content: '//';
  color: var(--accent);
  font-weight: 700;
}

.case-study-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.case-study-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

.case-study-feature__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text);
}

.case-study-feature__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.case-study-tech__tag {
  background: rgba(28, 174, 6, 0.06);
  border: 1px solid rgba(28, 174, 6, 0.15);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-study-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.case-study-result {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.case-study-result__check {
  color: var(--accent);
  font-size: 1rem;
  min-width: 20px;
  margin-top: 2px;
}

.case-study-result__before {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study-result__after {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.case-study-result__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 768px) {
  .case-study-hero {
    padding: calc(var(--nav-height) + 40px) 0 40px;
  }
  .case-study-meta {
    gap: 20px;
  }
  .case-study-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-study-section {
    padding: 40px 0;
  }
  .case-study-problems {
    grid-template-columns: 1fr;
  }
  .case-study-features {
    grid-template-columns: 1fr;
  }
}
