:root {
  --bg: #020817;
  --bg-2: #06112b;
  --bg-soft: #121933;
  --card: rgba(255, 255, 255, 0.06);
  --card-soft: rgba(255, 255, 255, 0.04);
  --text: #eff4ff;
  --muted: #b8c2df;
  --primary: #6ea8fe;
  --primary-2: #8b5cf6;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(74, 110, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(2, 8, 23, 0.72);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 800;
  font-size: 1.3rem;
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  transition: 0.25s ease;
}

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

.lang-switch {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-cta {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.menu-btn {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.hero {
  padding: 70px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-tag,
.panel-label {
  margin: 0 0 18px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 760px;
}

.hero-text,
.about-text,
.card p,
.project p,
.contact-card p,
.stack-list li,
.check-list,
.small-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 760px;
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #74a7ff, #7b5cff);
  color: white;
  box-shadow: 0 12px 30px rgba(94, 92, 230, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points span {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 244, 255, 0.9);
  font-size: 0.96rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-panel,
.card,
.project,
.contact-card,
.chat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.info-panel {
  padding: 24px;
  backdrop-filter: blur(10px);
}

.stack-panel h3 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.1;
  color: #ffffff;
}

.stack-list {
  margin: 0;
  padding-left: 20px;
}

.stack-list li {
  margin-bottom: 10px;
}

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

.offer-box {
  min-height: 190px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
}

.offer-box h4 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: var(--primary);
}

.offer-box p {
  margin: 0;
  color: rgba(236, 241, 255, 0.88);
  line-height: 1.55;
  font-size: 1rem;
}

.section {
  padding: 84px 0;
}

.alt {
  background: rgba(255, 255, 255, 0.02);
}

.two-col,
.ai-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.section h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin: 0.3rem 0 0;
}

.cards,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.card,
.project {
  overflow: hidden;
}

.card {
  padding: 1.4rem;
}

.project-image {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(110,168,254,0.25), rgba(139,92,246,0.25));
}

.project-body {
  padding: 1.2rem;
}

.contact-card {
  padding: 1.5rem;
}

.check-list {
  padding-left: 1.2rem;
}

.chat-toggle-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.chat-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 32px));
  z-index: 999;
  padding: 1.5rem;
  background: #161616;
}

.hidden {
  display: none;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chat-header {
  font-weight: 800;
  padding: 0.5rem 0.25rem 0;
}

.chat-close-btn {
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  height: 360px;
  overflow-y: auto;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.msg {
  max-width: 85%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.msg.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.msg.bot {
  background: rgba(255,255,255,0.08);
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: white;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  outline: none;
}

.chat-form button {
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.section .container {
  position: relative;
}

.see-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.two-col .see-more {
  grid-column: 1 / -1;
}

.see-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  transition: 0.3s ease;
}

.see-more a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #74a7ff, #7b5cff);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(94, 92, 230, 0.22);
  transition: 0.25s ease;
}

.contact-email-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .ai-grid,
  .cards,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero-text {
    max-width: 100%;
  }

  nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 16px;
    flex-direction: column;
    background: #121933;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    width: min(260px, calc(100vw - 32px));
  }

  nav.show {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }
}

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

  .stack-panel h3 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 55px 0 70px;
  }

  .chat-form {
    flex-direction: column;
  }

  .see-more {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .chat-card {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 24px);
  }

  .chat-toggle-btn {
    right: 16px;
    bottom: 16px;
  }
}