/* ============================================================
   DTMA Platforms — styles
   Monochrome / geometric, matching the brand logo
   ============================================================ */

:root {
  --black: #000000;
  --ink: #0a0a0b;
  --panel: #111114;
  --panel-2: #16161a;
  --line: #26262c;
  --white: #ffffff;
  --gray: #9a9aa3;
  --gray-dim: #6c6c75;
  --accent: #ffffff;
  --maxw: 1140px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

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

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-dim);
  margin-bottom: 18px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { transform: translateY(-2px); background: #e9e9ec; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand-logo { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: var(--radius);
  color: var(--white) !important;
}
.nav-cta:hover { border-color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 128px 0 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Geometric backdrop echoing the logo's angular mark */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 62%);
}

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- Products ---------- */
.products { padding: 120px 0; }
.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.product:last-child { border-bottom: 1px solid var(--line); }
.product-reverse .product-media { order: 2; }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 25%, var(--panel-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media::before {
  /* angular wedge motif from the logo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255,255,255,0.05) 46%, rgba(255,255,255,0.05) 54%, transparent 54%);
}
.product-index {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: -0.04em;
  user-select: none;
}

.product-name { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.product-tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 18px;
}
.product-desc { color: var(--gray); margin-bottom: 26px; max-width: 56ch; }
.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin-bottom: 30px;
}
.product-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--gray);
}
.product-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Product: full-width stacked (Vendishy 1-2-3) ---------- */
.product-stack {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line);
}
.product-stack .product-body { max-width: 760px; }
.product-stack .product-actions { margin-top: 48px; }

/* Speed callout under the flow */
.flow-speed {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.flow-speed-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  position: relative;
  padding-right: 26px;
}
.flow-speed-num::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 56px;
  background: var(--line);
}
.flow-speed-text {
  color: var(--gray);
  font-size: 1rem;
  margin: 0;
  max-width: 62ch;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 22px;
  margin-top: 56px;
}
.flow-step { margin: 0; }
.flow-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease);
}
.flow-step:hover .flow-frame { transform: translateY(-4px); }
.flow-frame img { width: 100%; height: auto; display: block; }
.flow-step figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex: 0 0 26px;
  background: var(--white);
  color: var(--black);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 700;
}
.flow-arrow {
  align-self: center;
  color: var(--gray-dim);
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 34px; /* visually center against image, above caption */
}

/* ---------- About ---------- */
.about {
  padding: 120px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner { max-width: 820px; }
.about h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 26px; }
.about p { color: var(--gray); font-size: 1.12rem; max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { padding: 130px 0; text-align: center; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.contact p { color: var(--gray); font-size: 1.15rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-logo { height: 34px; width: auto; opacity: 0.9; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  color: var(--gray);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-copy { color: var(--gray-dim); font-size: 0.86rem; width: 100%; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    gap: 18px;
  }
  .nav-toggle { display: flex; }
  .product, .product-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-reverse .product-media { order: 0; }
  .product-features { grid-template-columns: 1fr; }
  .hero { padding: 92px 0 96px; }

  /* Vendishy flow stacks vertically; arrows point down */
  .flow {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }
  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
    padding-bottom: 0;
    margin: 4px 0;
  }
  .flow-speed {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .flow-speed-num { padding-right: 0; }
  .flow-speed-num::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
