:root {
  --deep-forest: #172643;
  --emerald: #f5f1be;
  --pine: #f5f1be;
  --jade: #f5f1be;
  --mint: #f5f1be;
  --ivory: #f5f1be;
  --charcoal: #f5f1be;
  --stone: rgba(245, 241, 190, 0.8);
  --gradient: linear-gradient(135deg, #172643 0%, #1f2f4f 60%, #172643 100%);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 25px 45px rgba(23, 38, 67, 0.3);
  --shadow-card: 0 18px 35px rgba(23, 38, 67, 0.2);
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--deep-forest);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f1be;
  color: var(--deep-forest);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 4px;
  border-radius: 4px;
}

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

header {
  background: var(--gradient);
  color: white;
  padding: 20px 0 180px;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: visible;
  margin-bottom: 0;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(245, 241, 190, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(245, 241, 190, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1200px, 90%);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 40px;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  color: white;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--jade);
  color: var(--deep-forest);
  box-shadow: 0 4px 16px rgba(23, 38, 67, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(23, 38, 67, 0.2);
  background: #f0ecb0;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero {
  width: min(1200px, 90%);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.02em;
}

.hero-copy p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 40px;
  line-height: 1.75;
  word-wrap: break-word;
  max-width: 580px;
}

.hero-highlight {
  display: grid;
  gap: 20px;
  align-content: start;
}

.hero-highlight div {
  background: rgba(245, 241, 190, 0.15);
  border: 1px solid rgba(245, 241, 190, 0.3);
  padding: 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.hero-highlight div:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(245, 241, 190, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(245, 241, 190, 0.5);
}

.hero-highlight div:first-child {
  background: rgba(245, 241, 190, 0.2);
  border: 1px solid rgba(245, 241, 190, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hero-highlight h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  color: var(--jade);
}

.hero-highlight p {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.6;
  color: var(--jade);
}

main {
  width: min(1100px, 90%);
  margin: -100px auto 80px;
  position: relative;
  z-index: 10;
}

.section {
  margin-bottom: 80px;
  background: white;
  padding: 56px;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(23, 38, 67, 0.08);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.section:hover {
  box-shadow: 0 8px 32px rgba(23, 38, 67, 0.12);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--deep-forest);
  line-height: 1.15;
  margin-bottom: 16px;
  flex: 1;
  min-width: 280px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header > p {
  color: rgba(23, 38, 67, 0.7);
  max-width: 520px;
  line-height: 1.7;
  flex: 1;
  min-width: 280px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(23, 38, 67, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--emerald));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(23, 38, 67, 0.15);
  border-color: rgba(245, 241, 190, 0.4);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: 16px;
  color: var(--deep-forest);
  line-height: 1.3;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  color: rgba(23, 38, 67, 0.7);
  line-height: 1.7;
  margin-bottom: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.stat {
  background: var(--deep-forest);
  color: var(--jade);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat {
  font-size: 0.95rem;
  line-height: 1.5;
}

.case-study {
  background: linear-gradient(120deg, rgba(245, 241, 190, 0.15), rgba(245, 241, 190, 0.08));
  border: 1px solid rgba(245, 241, 190, 0.3);
}

.article-card {
  border-left: 5px solid var(--jade);
}

.article-card span {
  font-size: 0.85rem;
  color: rgba(23, 38, 67, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-card h3 {
  margin-top: 8px;
}

.article-card a {
  color: var(--deep-forest);
  font-weight: 600;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero {
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--deep-forest);
}

.page-hero p {
  color: rgba(23, 38, 67, 0.7);
  max-width: 620px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.contact-card {
  background: rgba(245, 241, 190, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-card form {
  display: grid;
  gap: 18px;
}

label {
  font-weight: 600;
  color: var(--deep-forest);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 20, 25, 0.2);
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(245, 241, 190, 0.3);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  background: var(--deep-forest);
  color: white;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  margin-top: 80px;
  padding: 48px 0;
}

.footer-content {
  width: min(1100px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.footer-content a {
  color: var(--jade);
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.7);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.highlight {
  color: var(--deep-forest);
  font-weight: 600;
}

.company-name {
  color: var(--jade);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.company-name::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--jade);
  opacity: 0.3;
  transform: scaleX(0.8);
  transition: transform 0.3s ease;
}

h1 .company-name,
h2 .company-name,
h3 .company-name {
  font-size: 1.05em;
  letter-spacing: 0.02em;
}

h1 .company-name::after,
h2 .company-name::after,
h3 .company-name::after {
  height: 3px;
  opacity: 0.4;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li::before {
  content: '✦';
  margin-right: 10px;
  color: var(--jade);
}

.list:not(.social-links) li {
  color: rgba(23, 38, 67, 0.8);
}

.social-links li::before {
  content: '';
  margin-right: 0;
}

.social-links a {
  color: var(--mint);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
  color: white;
  opacity: 1;
}

.testimonial-section {
  background: var(--deep-forest);
  color: white;
  padding: 60px 48px;
  border-radius: var(--radius-xl);
  margin-bottom: 80px;
}

.testimonial-section .section-header h2 {
  color: white;
}

.testimonial-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
}

.testimonial-card p {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.process-section {
  background: linear-gradient(135deg, rgba(245, 241, 190, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.process-step {
  position: relative;
  padding-left: 48px;
}

.process-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--jade);
  color: var(--deep-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-container {
  counter-reset: step-counter;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-badge {
  background: rgba(245, 241, 190, 0.3);
  border: 1px solid rgba(245, 241, 190, 0.4);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--deep-forest);
  font-weight: 500;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.partner-logo {
  background: white;
  border: 1px solid rgba(23, 38, 67, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  font-weight: 600;
  color: rgba(23, 38, 67, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

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

@media (max-width: 768px) {
  header {
    padding-bottom: 140px;
    overflow: visible;
  }
  
  main {
    margin-top: -80px;
  }

  nav {
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    margin-top: -60px;
    padding-bottom: 20px;
  }

  .section {
    padding: 40px 28px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header h2,
  .section-header > p {
    min-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .testimonial-section {
    padding: 40px 24px;
  }

  .process-step {
    padding-left: 40px;
  }

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

  .hero-copy p {
    max-width: 100%;
  }
}

.blog-grid {
  display: grid;
  gap: 48px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid rgba(23, 38, 67, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 32px rgba(23, 38, 67, 0.1);
  transform: translateY(-4px);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-category {
  background: rgba(245, 241, 190, 0.3);
  color: var(--deep-forest);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card time {
  color: rgba(23, 38, 67, 0.6);
  font-size: 0.9rem;
}

.blog-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--deep-forest);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-excerpt {
  font-size: 1.1rem;
  color: rgba(23, 38, 67, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
}

.blog-content {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(23, 38, 67, 0.1);
}

.blog-content h3 {
  font-size: 1.5rem;
  color: var(--deep-forest);
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.blog-content h3:first-child {
  margin-top: 0;
}

.blog-content p {
  color: rgba(23, 38, 67, 0.8);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-content ul {
  margin: 20px 0;
  padding-left: 24px;
  color: rgba(23, 38, 67, 0.8);
  line-height: 1.8;
}

.blog-content li {
  margin-bottom: 12px;
}

.blog-content strong {
  color: var(--deep-forest);
  font-weight: 600;
}

@media (max-width: 768px) {
  .blog-card {
    padding: 32px 24px;
  }
  
  .blog-content {
    margin-top: 24px;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
  
  .hero {
    gap: 24px;
  }
  
  .hero-copy h1 {
    font-size: 2rem;
  }
}
