/* Codility Solutions - AI-Powered Software Development */
:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: #16161f;
  --color-text: #e8e8ed;
  --color-text-muted: #8b8b9a;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-accent-muted: rgba(99, 102, 241, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-mark {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  color: var(--color-accent);
}

.logo-suffix {
  color: var(--color-text-muted);
  font-weight: 500;
}

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

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  color: var(--color-accent) !important;
}

.nav-cta:hover {
  color: var(--color-accent-hover) !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-text {
  max-width: 720px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-muted);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-logos-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-logos-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.hero-logos-names {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

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

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

.btn-outline:hover {
  background: var(--color-accent-muted);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  max-width: 880px;
}

/* Problem section */
.problem-section {
  background: var(--color-bg-elevated);
}

.problem-list {
  list-style: none;
  margin-bottom: 24px;
}

.problem-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.problem-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.problem-solution {
  font-size: 1.125rem;
  color: var(--color-text);
  max-width: 880px;
  line-height: 1.7;
}

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

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-muted);
  color: var(--color-accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Differentiation section */
.differentiation-section {
  background: var(--color-bg-elevated);
}

.differentiation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.diff-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.diff-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.diff-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.diff-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.diff-card strong {
  color: var(--color-text);
}

/* Outcomes section */
.outcomes-section {
  background: var(--color-bg);
}

.outcomes-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 640px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.outcome-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

.outcome-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.outcome-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.outcome-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* Tech section */
.tech-section {
  background: var(--color-bg);
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.tech-diagram-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.tech-diagram-label {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: 20px;
  text-align: center;
}

.tech-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arch-node {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--color-border);
}

.arch-input { background: var(--color-bg-elevated); color: var(--color-text); }
.arch-gateway { background: rgba(99, 102, 241, 0.2); color: var(--color-accent); border-color: rgba(99, 102, 241, 0.4); }
.arch-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.arch-llm, .arch-rag { background: var(--color-bg-elevated); color: var(--color-text-muted); }
.arch-app { background: var(--color-bg-elevated); color: var(--color-text); }

.arch-arrow {
  color: var(--color-accent);
  font-size: 1rem;
  opacity: 0.8;
}

.tech-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.tech-stack-list {
  list-style: none;
  margin-bottom: 24px;
}

.tech-stack-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tech-stack-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.tech-para {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .tech-layout {
    grid-template-columns: 1fr;
  }
}

/* Trust section */
.trust-section {
  background: var(--color-bg-elevated);
}

/* Client logos */
.client-logos {
  margin-bottom: 48px;
}

.client-logos-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.client-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.client-logo:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0;
  border-left: 4px solid var(--color-accent);
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card footer {
  font-size: 0.875rem;
  color: var(--color-text);
}

.testimonial-metric {
  display: block;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.testimonial-card cite {
  font-style: normal;
  color: var(--color-text-muted);
}

.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

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

.offer-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.offer-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.offer-featured {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--color-bg-card) 100%);
}

.offer-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 4px 12px;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.offer-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.offer-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.offer-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.offer-card li {
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  position: relative;
}

.offer-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* Work section */
.work-section {
  background: var(--color-bg-elevated);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.work-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
}

.work-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.work-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-result {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.work-tech {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-section .section-title {
  max-width: none;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* CTA embeds - Book Directly & Request a Call */
.cta-embeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.cta-embed-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cta-embed-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.meetings-iframe-container {
  min-height: 700px;
}

.meetings-iframe-container iframe {
  width: 100%;
  min-height: 700px;
  border: none;
}

.lead-form {
  min-height: 400px;
}

.lead-form iframe {
  width: 100%;
  border: none;
}

@media (max-width: 768px) {
  .cta-embeds {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  margin-bottom: 32px;
}

.footer .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

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

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

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Responsive */
/* Mobile menu open state */
.nav-links.open {
  display: flex;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--color-bg);
  padding: 24px;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-links:not(.open) {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

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

  .hero-visual {
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 60px 0;
  }

  .client-logos-row {
    gap: 16px;
  }

  .client-logo {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .stats {
    gap: 32px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
