*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #07080d;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #f4f2ef;
  --text-secondary: rgba(244, 242, 239, 0.55);
  --text-muted: rgba(244, 242, 239, 0.35);
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --accent-glow: rgba(201, 169, 98, 0.25);
  --transport: #5b8def;
  --code: #a78bfa;
  --people: #34d399;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.12) 0%, transparent 70%);
  animation-delay: -7s;
}

.bg-glow--3 {
  width: 350px;
  height: 350px;
  bottom: 20%;
  right: -80px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Layout */
.header,
.main,
.footer {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 0;
  animation: fadeUp 0.8s ease both;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark span:first-child {
  color: var(--accent);
}

.header-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main {
  padding: 4rem 0 5rem;
}

/* Hero */
.hero {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title__line {
  display: block;
  animation: fadeUp 0.9s ease both;
}

.hero-title__line:first-child {
  animation-delay: 0.15s;
}

.hero-title__line--accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation-delay: 0.25s;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
  animation: fadeUp 0.9s ease 0.35s both;
}

/* Brand cards */
.brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  animation: fadeUp 0.8s ease var(--delay, 0s) both;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.brand-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.brand-card__icon svg {
  width: 22px;
  height: 22px;
}

.brand-card__icon--transport {
  color: var(--transport);
  background: rgba(91, 141, 239, 0.08);
  border-color: rgba(91, 141, 239, 0.2);
}

.brand-card__icon--code {
  color: var(--code);
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}

.brand-card__icon--people {
  color: var(--people);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
}

.brand-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.brand-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.brand-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.brand-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: color var(--transition);
}

.brand-card:hover .brand-card__status {
  color: var(--accent);
}

.brand-card:hover .brand-card__status::after {
  content: "→";
  transform: translateX(2px);
}

/* CTA */
.cta {
  text-align: center;
  animation: fadeUp 0.8s ease 0.5s both;
}

.cta__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: var(--transition);
}

.cta__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.cta__link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.cta__link:hover svg {
  transform: translateX(4px);
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  animation: fadeUp 0.8s ease 0.6s both;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .brands {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .header,
  .main,
  .footer {
    width: calc(100% - 2rem);
  }

  .main {
    padding-top: 2.5rem;
  }

  .hero {
    margin-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
