:root {
  --bg-color: #0f0f0f;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
  --accent: #ffffff;
  --accent-color: #0099ff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* layout */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content {
  max-width: 980px;
  margin-left: 80px;
}

@media (max-width: 900px) {
  .content { margin-left: 0; }
}

/* navigation */
.nav {
  display: flex;
  gap: 24px;
  margin-bottom: 60px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-items: center;
}

.nav a {
  color: var(--text-dim);
  transition: 0.2s;
  font-weight: 500;
}

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

/* language switcher */
.lang-switcher {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.lang-switcher a {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  transition: all 0.2s;
}

.lang-switcher a.lang-active {
  color: #fff;
  border-bottom: 2px solid var(--accent-color);
}

/* home */
.hero { margin-bottom: 80px; }

.subtitle {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 24px;
}

/* grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
}

.card {
  display: block;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.4), transparent);
}

.card:hover {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(0, 153, 255, 0.5);
}

.card h2,
.card h3 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.card p {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

.tag {
  font-size: 12px;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: block;
  opacity: 0.9;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card--placeholder {
  border-style: dashed;
  opacity: 0.5;
  pointer-events: none;
}

/* article typography */
.article-container {
  max-width: 680px;
  margin: 0 auto;
}

.page-title {
  font-size: 60px;
  line-height: 1.1;
  margin: 0 0 32px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -1px;
}

.meta {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.prose {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.prose p { margin-bottom: 24px; }

/* Hero section */
.hero {
  margin-bottom: 160px;
  text-align: center;
  position: relative;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 80px;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 28px;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.5;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #0099ff 0%, #0066ff 100%);
  color: #fff;
  border: 1px solid rgba(0, 153, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00aaff 0%, #0077ff 100%);
  box-shadow: 0 8px 32px rgba(0, 153, 255, 0.3);
  transform: translateY(-2px);
}

/* Sections */
.section {
  margin-bottom: 160px;
}

.section-title {
  font-size: 52px;
  text-transform: none;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 56px;
  font-weight: 700;
}

/* Social Proof */
.social-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.proof-item {
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.proof-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 12px;
  line-height: 1;
}

.proof-text {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Value Proposition */
.value-proposition {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.value-item {
  padding: 40px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(0, 153, 255, 0.3);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.value-item:nth-child(1) {
  border-color: rgba(0, 153, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1) 0%, rgba(0, 153, 255, 0.05) 100%);
}

.value-item:nth-child(2) {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.value-item:nth-child(3) {
  border-color: rgba(236, 72, 153, 0.4);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.value-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.value-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.3;
}

.value-item p {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

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

.service-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.service-card:nth-child(1) {
  border-color: rgba(0, 153, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.03) 0%, rgba(0, 153, 255, 0.01) 100%);
}

.service-card:nth-child(2) {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(139, 92, 246, 0.01) 100%);
}

.service-card:nth-child(3) {
  border-color: rgba(236, 72, 153, 0.3);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.03) 0%, rgba(236, 72, 153, 0.01) 100%);
}

.service-card:nth-child(4) {
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(6, 182, 212, 0.01) 100%);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.service-card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* About Section */
.about-content {
  max-width: 800px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
}

.about-text h3 {
  font-size: 28px;
  color: #fff;
  margin: 32px 0 20px;
  font-weight: 700;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tech-list li {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-color);
  border-radius: 4px;
}

.tech-list strong {
  color: #fff;
  font-weight: 700;
}

/* Cases */
.case-meta {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 16px !important;
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 16px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 18px;
}

.contact-info p:first-child {
  margin-bottom: 32px;
}

.contact-info p:nth-child(n+2) {
  display: inline-block;
  margin: 0 12px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}


/* responsive */
@media (max-width: 1100px) {
  .wrap {
    padding: 40px 20px;
  }

  .content {
    margin-left: 0;
  }
}

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

  .hero {
    padding: 40px 24px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

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

  .about-content {
    padding: 32px;
  }

  .contact-form,
  .contact-info {
    padding: 32px;
  }
}

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

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

  .page-title {
    font-size: 40px;
  }

  .contact-info p:nth-child(n+2) {
    display: block;
    margin: 12px 0;
  }

  .nav {
    margin-bottom: 40px;
    font-size: 12px;
    gap: 12px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 36px;
  }

  .section {
    margin-bottom: 100px;
  }

  .service-card,
  .card {
    padding: 24px;
  }

  .service-card h3,
  .card h3 {
    font-size: 20px;
  }

  .contact-form,
  .contact-info {
    padding: 24px;
  }
}