/* ============================================================
   ACCORD GROUP — design tokens & base styles
   Dark industrial B2B, violet accent #7C5CFF
   ============================================================ */

:root,
[data-theme="dark"] {
  --bg-0: #0a0a0c;
  --bg-1: #101013;
  --bg-2: #16161c;
  --bg-3: #1c1c24;
  --line: #25252e;
  --line-2: #1c1c24;
  --line-3: #33333d;
  --text: #f5f5f7;
  --text-mid: #aeaeb8;
  --text-dim: #6c6c78;
  --text-dimmer: #4a4a54;
  --accent: #FF5B2E;
  --accent-2: #FF7B5C;
  --accent-soft: rgba(255, 91, 46, 0.12);
  --accent-line: rgba(255, 91, 46, 0.30);
  --accent-fg: #ffffff;
  --danger: #ff5b5b;
  --success: #4ade80;
  --warning: #fbbf24;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-0: #f4f3ee;
  --bg-1: #fbfaf6;
  --bg-2: #ffffff;
  --bg-3: #ebe9e3;
  --line: #d4d2cb;
  --line-2: #e4e2dc;
  --line-3: #bcb9b1;
  --text: #0a0a0c;
  --text-mid: #4a4a52;
  --text-dim: #7a7a82;
  --text-dimmer: #a8a8ae;
  --accent: #E94818;
  --accent-2: #FF5B2E;
  --accent-soft: rgba(233, 72, 24, 0.10);
  --accent-line: rgba(233, 72, 24, 0.32);
  --accent-fg: #ffffff;
  --danger: #c4282e;
  --success: #15803d;
  --warning: #b45309;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

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

html,
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-ui), ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

.mono {
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

.section--first {
  border-top: none;
}

.section-head {
  display: flex;
  gap: 80px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .section-head {
    margin-bottom: 40px;
    gap: 24px;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.section-num {
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ============================================================
   TYPE
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

.t-display {
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: manual;
}

.t-h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.t-h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.t-h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.t-lead {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--text-mid);
  letter-spacing: -0.01em;
  font-weight: 400;
}

.t-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
}

.t-caption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-dim);
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

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

.t-strike {
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
  color: var(--text-dim);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px -8px var(--accent-line);
}

.btn--primary:hover {
  background: var(--accent-2);
  color: var(--accent-fg);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.btn--ghost:hover {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--text-dim);
}

.btn--link {
  height: auto;
  padding: 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line-3);
  border-radius: 0;
  padding-bottom: 2px;
}

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

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--lg {
  height: 60px;
  padding: 0 32px;
  font-size: 16px;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   CARDS / SURFACES
   ============================================================ */

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--line-3);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  border-color: var(--accent-line);
  background: var(--bg-2);
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ============================================================
   PLACEHOLDER IMAGE BLOCK
   ============================================================ */

.ph {
  position: relative;
  background: var(--bg-2);
  border: 1px dashed var(--line-3);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  color: var(--text-dim);
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      45deg,
      var(--line-2) 25%,
      transparent 25%,
      transparent 75%,
      var(--line-2) 75%
    ),
    linear-gradient(45deg, var(--line-2) 25%, transparent 25%, transparent 75%, var(--line-2) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  opacity: 0.4;
  pointer-events: none;
}

.ph__label {
  position: relative;
  z-index: 1;
}

.ph__tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  background: var(--bg-1);
  font-size: 10px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.field__label {
  font-size: 12px;
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field__label .req {
  color: var(--accent);
}

.field__input,
.field__textarea,
.field__select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field__textarea {
  height: 140px;
  padding: 16px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--text-dimmer);
}

.field--error .field__input,
.field--error .field__textarea,
.field--error .field__select {
  border-color: var(--danger);
}

.field__error {
  font-size: 12px;
  color: var(--danger);
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
}

.field__hint {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236c6c78' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  background: var(--bg-1);
  position: relative;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.checkbox input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* CSS-keyframe enter animations disabled in favor of JS-driven Reveal
   component (which uses IntersectionObserver). These classes are kept
   as no-ops so existing markup doesn't break. */
.reveal { /* handled inline */ }
.reveal--1, .reveal--2, .reveal--3, .reveal--4, .reveal--5, .reveal--6 { /* no-op */ }
.page-enter { /* no-op */ }

/* ============================================================
   HEADER / FOOTER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg-0) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo__wrap {
  position: relative;
}

.logo__img {
  display: block;
}

/* Default (dark theme): show dark-theme PNG (white text), hide light */
.logo__img--light { display: none !important; }
.logo__img--dark { display: block !important; }

/* Light theme: swap */
[data-theme="light"] .logo__img--light { display: block !important; }
[data-theme="light"] .logo__img--dark { display: none !important; }

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }
  .header__cta {
    display: none;
  }
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

@media (max-width: 920px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
}

.mobile-drawer__nav a {
  padding: 16px 0;
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 80px 0 32px;
}

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

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

.footer-col h4 {
  font-size: 11px;
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 15px;
  color: var(--text-mid);
  transition: color 0.18s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .mono {
  letter-spacing: 0.02em;
}

/* ============================================================
   HERO MARQUEE / SCROLLER
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

.marquee__track {
  display: flex;
  gap: 64px;
  padding: 18px 0;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  width: max-content;
}

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

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.marquee__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   GRID UTILITIES
   ============================================================ */

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ============================================================
   MISC
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--accent-line);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.kbd {
  display: inline-block;
  padding: 2px 7px;
  background: var(--bg-2);
  border: 1px solid var(--line-3);
  border-radius: 4px;
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-mid);
}

.scroll-x {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}

.scroll-x::-webkit-scrollbar {
  height: 6px;
}

.scroll-x::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-x::-webkit-scrollbar-thumb {
  background: var(--line-3);
  border-radius: 3px;
}
