:root {
  /* Colors - Inspired by the red in the logo */
  --color-primary: #FF0000;
  --color-primary-dark: #CC0000;
  --color-bg: #0A0A0A;
  --color-surface: #1A1A1A;
  --color-border: #333333;
  --color-text: #FFFFFF;
  --color-text-muted: #A0A0A0;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;

  /* Typography */
  --font-family: 'Space Grotesk', sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
}

main > :first-child {
  margin-top: 0;
}

/* Components */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.nav-link:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: var(--color-primary);
  color: white;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  z-index: 2;
}

.hero-tagline {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-md);
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-visual {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 80%;
  z-index: 1;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  opacity: 0.2;
}

.hex {
  width: 150px;
  height: 170px;
  background: var(--color-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: pulse 4s infinite ease-in-out;
}

.hex:nth-child(even) {
  animation-delay: 2s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Feature Cards */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.text-center {
  text-align: center;
}

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.margin-bottom-lg {
  margin-bottom: var(--space-lg);
}

.margin-bottom-xl {
  margin-bottom: var(--space-xl);
}

.border-accent-left {
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-lg);
}

.card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.card h3 {
  margin-bottom: var(--space-md);
}

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

/* Tech Section */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.tech-image {
  background: linear-gradient(45deg, #111, #222);
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
}

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  height: 100%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  position: relative;
}

.placeholder-image::after {
  content: attr(data-label);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}
