/* ===== Torque & Parts · Global styles ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "TP-Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #19232e 0, #050910 40%, #04060a 100%);
  color: #f5f7fa;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Local font faces */
@font-face {
  font-family: "TP-Manrope";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TP-Manrope";
  src: url("../fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Color system */
:root {
  --tp-bg: #050910;
  --tp-bg-soft: #0b111a;
  --tp-surface: #111827;
  --tp-surface-soft: #151b2b;
  --tp-border-subtle: rgba(148, 163, 184, 0.25);
  --tp-accent: #26e0c2;
  --tp-accent-soft: rgba(38, 224, 194, 0.18);
  --tp-accent-strong: #16b49b;
  --tp-warm: #ffb648;
  --tp-danger: #ff4f5e;
  --tp-text: #f9fafb;
  --tp-text-soft: #cbd5f5;
  --tp-text-muted: #6b7280;
  --tp-radius-lg: 20px;
  --tp-radius-xl: 28px;
  --tp-radius-pill: 999px;
  --tp-shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.65);
  --tp-shadow-chip: 0 8px 30px rgba(0, 0, 0, 0.7);
  --tp-header-height: 76px;
}

/* Generic elements */

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

p {
  margin: 0 0 0.9rem;
  color: var(--tp-text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  color: var(--tp-text);
}

h1 {
  font-size: clamp(2.1rem, 2.4vw + 1.8rem, 3rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.4rem, 1.1vw + 1.2rem, 1.8rem);
}

h3 {
  font-size: 1.1rem;
}

a {
  color: var(--tp-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Layout helpers */

.tp-wrap {
  width: min(1160px, 100% - 2.75rem);
  margin-inline: auto;
}

/* Header */

.tp-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--tp-header-height);
  z-index: 40;
  background: linear-gradient(90deg, rgba(4, 7, 12, 0.98), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(14px);
}

.tp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

/* Logo */

.tp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--tp-radius-pill);
  background: radial-gradient(circle at top left, rgba(38, 224, 194, 0.27), transparent 50%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.tp-logo__mark {
  width: 24px;
  height: 24px;
  border-radius: 11px;
  background:
    conic-gradient(from 110deg, #26e0c2, #ffb648, #26e0c2 80%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
  box-shadow: 0 0 12px rgba(38, 224, 194, 0.8);
}

.tp-logo__text {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation */

.tp-nav {
  display: flex;
  align-items: center;
}

.tp-nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-nav__link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-text-muted);
  padding-block: 0.2rem;
}

.tp-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tp-accent), var(--tp-warm));
  transition: width 0.28s ease;
}

.tp-nav__link:hover::after,
.tp-nav__link:focus-visible::after,
.tp-nav__link--active::after {
  width: 100%;
}

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

/* Burger */

.tp-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(38, 224, 194, 0.18), rgba(15, 23, 42, 0.96));
  cursor: pointer;
}

.tp-nav__bar {
  height: 2px;
  width: 68%;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5e7eb, #9ca3af);
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

/* Main + sections */

.tp-main {
  padding-top: calc(var(--tp-header-height) + 2.4rem);
  padding-bottom: 4rem;
}

.tp-section {
  padding-block: 3.5rem;
  position: relative;
}

/* Buttons */

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--tp-radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    color 0.18s ease-out;
  text-decoration: none;
}

.tp-btn--primary {
  background: radial-gradient(circle at top left, #26e0c2, #16b49b 55%, #0891b2 100%);
  color: #020617;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.65);
}

.tp-btn--primary:hover,
.tp-btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(15, 118, 110, 0.85);
}

.tp-btn--ghost {
  background: rgba(15, 23, 42, 0.65);
  color: var(--tp-text-soft);
  border-color: rgba(148, 163, 184, 0.4);
}

.tp-btn--ghost:hover,
.tp-btn--ghost:focus-visible {
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

/* Chips */

.tp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  border-radius: var(--tp-radius-pill);
  background: radial-gradient(circle at top left, var(--tp-accent-soft), rgba(15, 23, 42, 0.9));
  color: var(--tp-text-soft);
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--tp-shadow-chip);
}

/* Footer */

.tp-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-block: 2.8rem 2.4rem;
  background: radial-gradient(circle at bottom right, #020617, #020617 40%, #030712 100%);
}

.tp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.tp-foot__brand p {
  max-width: 30rem;
}

.tp-foot__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.tp-foot__heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tp-text-soft);
  margin-bottom: 0.7rem;
}

.tp-foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--tp-text-muted);
  padding-block: 0.15rem;
}

.tp-foot__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--tp-accent), rgba(38, 224, 194, 0.1));
  opacity: 0.6;
}

.tp-foot__link:hover::before,
.tp-foot__link:focus-visible::before {
  opacity: 1;
}

.tp-foot__text {
  font-size: 0.9rem;
}

.tp-foot__meta {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 1.3rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--tp-text-muted);
}

/* Scroll reveal base */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsiveness ===== */

@media (max-width: 1024px) {
  .tp-wrap {
    width: min(1120px, 100% - 2.1rem);
  }

  .tp-main {
    padding-top: calc(var(--tp-header-height) + 1.5rem);
  }

  .tp-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-foot__columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .tp-nav__toggle {
    display: flex;
  }

  .tp-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--tp-header-height);
    padding: 0.75rem 0;
    background: radial-gradient(circle at top, #020617, #020617 50%, #020617);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.22s ease-out,
      opacity 0.22s ease-out;
  }

  .tp-nav--open {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .tp-nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: min(1160px, 100% - 2.2rem);
    margin-inline: auto;
    padding-block: 0.4rem;
  }

  .tp-nav__link {
    font-size: 0.86rem;
  }

  .tp-footer__grid {
    gap: 2rem;
  }

  .tp-foot__columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  :root {
    --tp-header-height: 70px;
  }

  .tp-wrap {
    width: min(1120px, 100% - 1.6rem);
  }

  .tp-logo__text {
    font-size: 0.9rem;
  }

  .tp-main {
    padding-bottom: 3.2rem;
  }

  .tp-footer {
    padding-block: 2.3rem 2rem;
  }
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 480px) {
  :root {
    --tp-header-height: 70px;
  }

  .tp-wrap {
    width: min(1120px, 100% - 1.6rem);
  }

  .tp-logo__text {
    font-size: 0.9rem;
  }

  .tp-main {
    padding-bottom: 3.2rem;
  }

  .tp-footer {
    padding-block: 2.3rem 2rem;
  }
}
  h1 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .tp-main {
    padding-top: calc(var(--tp-header-height) + 2.2rem);
  }
@media (max-width: 480px) {
  :root {
    --tp-header-height: 70px;
  }

  .tp-wrap {
    width: min(1120px, 100% - 1.6rem);
  }

  .tp-logo__text {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .tp-main {
    padding-top: calc(var(--tp-header-height) + 2.2rem);
    padding-bottom: 3.2rem;
  }

  .tp-footer {
    padding-block: 2.3rem 2rem;
  }
}
