/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --dark-gray: #1e1e1e;
  --mid-gray: #2a2a2a;
  --light-gray: #b0b0b0;
  --white: #f0f0f0;
  --red: #cc2233;
  --red-dark: #991a28;
  --red-light: #e63946;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--red-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
}

/* === Navigation === */
nav {
  background: var(--dark);
  border-bottom: 1px solid var(--mid-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

nav .logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

nav .logo-link img {
  height: 36px;
  width: auto;
}

nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav .nav-links a {
  color: var(--light-gray);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

/* === Hero === */
.hero {
  padding: 48px 24px 16px;
  text-align: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: var(--red);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--light-gray);
  max-width: 640px;
  margin: 0 auto 8px;
  line-height: 1.7;
}

.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Hero Split Layout === */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  padding: 60px 24px 48px;
}

.hero-split .hero-text {
  flex: 1;
  min-width: 0;
}

.hero-split .subtitle {
  margin: 0 0 32px;
}

.hero-split .cta-group {
  justify-content: flex-start;
}

.hero-split .hero-illustration {
  flex: 0 0 auto;
  width: 400px;
}

.hero-split .hero-illustration img {
  width: 100%;
  height: auto;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--mid-gray);
  color: var(--white);
}

/* === Sections === */
.section {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-alt {
  background: var(--dark);
  max-width: none;
}

.section-alt .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.section h2 .accent {
  color: var(--red);
}

.section .section-lead {
  color: var(--light-gray);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 700px;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--dark-gray);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  padding: 28px 24px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--white);
}

.card-icon-svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.card-icon-svg svg {
  width: 100%;
  height: 100%;
}

.card p {
  color: var(--light-gray);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* === Feature List (Synergy page) === */
.feature-block {
  margin-bottom: 48px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-block h3 .tag {
  font-size: 0.7rem;
  background: var(--red);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-block p {
  color: var(--light-gray);
  font-size: 0.95rem;
  max-width: 720px;
  line-height: 1.7;
}

/* === Module Grid (Synergy page) === */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--dark-gray);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  padding: 24px 20px;
}

.module-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--white);
}

.module-card p {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  margin-top: 24px;
  color: var(--white);
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  color: var(--light-gray);
  font-size: 0.93rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--dark-gray);
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* === Footer === */
footer {
  margin-top: auto;
  background: var(--dark);
  border-top: 1px solid var(--mid-gray);
  padding: 24px;
  text-align: center;
  color: var(--light-gray);
  font-size: 0.85rem;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer .footer-links {
  display: flex;
  gap: 24px;
}

footer .footer-links a {
  color: var(--light-gray);
  font-size: 0.85rem;
}

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

/* === Section Illustration === */
.section-illustration {
  max-width: 420px;
  height: auto;
  opacity: 0.85;
  margin: 0 auto;
  display: block;
}

/* === Banner (AI Agents) === */
.banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--dark) 100%);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 32px 28px;
  margin-top: 40px;
}

.banner h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--white);
}

.banner p {
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 720px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--mid-gray);
  }

  nav .nav-links.open {
    display: flex;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .hero-split .hero-illustration {
    width: 100%;
    max-width: 340px;
  }

  .hero-split .cta-group {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section-illustration {
    max-width: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
