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

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: #ffffff;
  background-color: #000000;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-tertiary: #666666;
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --border: #333333;
  --accent: #ffffff;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
  text-wrap: balance;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

.app {
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg-primary);
  padding: 0;
}

.hero .container {
  width: 100%;
  padding: 8rem 2rem;
  text-align: left;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

/* Hero Features */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 6rem 0 4rem;
  max-width: 100%;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  text-align: left;
  border: 1px solid var(--border);
  border-right: none;
}

.hero-feature:last-child {
  border-right: 1px solid var(--border);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.feature-icon i {
  font-size: inherit;
}

.feature-content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

/* Hero Use Cases */
.hero-use-cases {
  margin: 4rem 0;
  max-width: 100%;
}

.use-cases-title {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.use-case-item {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.use-case-item i {
  font-size: 1rem;
  flex-shrink: 0;
}

.use-case-item:nth-child(even) {
  border-right: none;
}

.use-case-item:nth-child(n + 7) {
  border-bottom: none;
}

/* Card Base */
.card {
  background: transparent;
  border: 1px solid var(--border);
  padding: 1.5rem;
  color: var(--text-primary);
  text-align: left;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-card h3 {
  font-size: 1.25rem;
}

.card p {
  color: inherit;
  line-height: 1.6;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.8;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.card-icon i {
  font-size: inherit;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  border: 1px solid var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Sections */
section {
  padding: 8rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 4rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Agents Section */
.agents {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.agents-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 0 4rem;
  text-align: left;
  line-height: 1.6;
  font-weight: 400;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--border);
}

.agent-card {
  padding: 3rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agent-card:nth-child(even) {
  border-right: none;
}

.agent-card:nth-child(n + 3) {
  border-bottom: none;
}

/* Services Section */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--border);
}

.service-card {
  padding: 3rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-card:nth-child(3n) {
  border-right: none;
}

.service-card:nth-child(n + 4) {
  border-bottom: none;
}

/* Benefits Section */
.benefits {
  background: var(--bg-primary);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--border);
}

.benefit-item {
  padding: 3rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefit-item:nth-child(even) {
  border-right: none;
}

.benefit-item:nth-child(n + 3) {
  border-bottom: none;
}

.benefit-item h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.benefit-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Process Section */
.process {
  background: var(--bg-secondary);
  padding-bottom: 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--border);
}

.process-step {
  text-align: left;
  position: relative;
  padding: 3rem;
  border-right: 1px solid var(--border);
}

.process-step:last-child {
  border-right: none;
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-step p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Contact Section */
.contact {
  background: var(--bg-primary);
  text-align: left;
  padding-top: 8rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 2rem;
  line-height: 1.6;
  font-weight: 400;
}

.contact-info {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.contact-link {
  display: inline-block;
  font-size: 7.5vw;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.6;
}

.contact-cta {
  margin-top: 3rem;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-features,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero .container {
    padding: 4rem 1.5rem;
  }

  .hero-title {
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: 3rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-bottom: none;
  }

  .hero-feature:last-child {
    border-bottom: 1px solid var(--border);
  }

  .tech-tags {
    flex-direction: column;
  }

  .tech-tag {
    margin-right: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .tech-tag:last-child {
    border-bottom: 1px solid var(--border);
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .use-case-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .use-case-item:last-child {
    border-bottom: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 3rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .agents-intro {
    margin-bottom: 3rem;
  }

  .agents-grid,
  .services-grid,
  .benefits-list {
    grid-template-columns: 1fr;
  }

  .agent-card,
  .service-card,
  .benefit-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .agent-card:last-child,
  .service-card:last-child,
  .benefit-item:last-child {
    border-bottom: none;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem;
  }

  .process-step:last-child {
    border-bottom: none;
  }
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.lang-switcher.has-suggestion {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#lang-suggestion-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

#lang-suggestion-btn:hover {
  border-color: #555555;
  background-color: #0a0a0a;
  transform: translateY(-1px);
}

#lang-suggestion-btn:active {
  transform: translateY(0);
}

/* Language Suggestion */
.lang-suggestion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.lang-suggestion-text {
  color: var(--text-secondary);
}

.lang-suggestion-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-suggestion-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.lang-suggestion-btn:active {
  transform: translateY(0);
}

.lang-select {
  background: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23ffffff' d='M9 13.5L3 7.5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 18px 18px;
  padding-right: 3rem;
  min-width: 80px;
}

.lang-select:hover {
  border-color: #555555;
  background-color: #0a0a0a;
  transform: translateY(-1px);
}

.lang-select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.lang-select:active {
  transform: translateY(0);
}

.lang-select option {
  background: #000000;
  color: #ffffff;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }

  .lang-select {
    padding: 0.5rem 1rem;
    padding-right: 2.75rem;
    font-size: 0.875rem;
    background-size: 16px 16px;
    background-position: right 0.75rem center;
    min-width: 70px;
  }

  #lang-suggestion-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .lang-suggestion {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
  }

  .lang-suggestion-btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
  }
}
