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

:root {
  --brand: #4f6ef7;
  --brand-dark: #3a55d4;
  --text: #1a1d2e;
  --text-sub: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f8f9fc;
  --bg-dark: #0f1117;
  --border: #e5e7eb;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--text-sub); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: #aaa; }

/* HERO */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #f0f4ff 0%, #fff 60%);
}
.hero__inner { text-align: center; }
.hero__badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--brand);
  border: 1px solid #c7d2fe;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__sub {
  max-width: 580px;
  margin: 0 auto 36px;
  color: var(--text-sub);
  font-size: 1.05rem;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat__num { display: block; font-size: 2rem; font-weight: 700; color: var(--brand); }
.stat__label { font-size: .85rem; color: var(--text-sub); }

/* SECTIONS */
.section { padding: 80px 0; }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark .section__tag { color: #818cf8; }
.section--dark h2 { color: #fff; }
.section--dark p { color: #9ca3af; }

.section__head { text-align: center; margin-bottom: 52px; }
.section__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(79,110,247,.1); transform: translateY(-2px); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--text-sub); }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__text p { color: var(--text-sub); margin-bottom: 14px; }
.about__text h2 { margin-bottom: 16px; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-sub); font-size: .92rem; }
.about__visual { display: flex; flex-direction: column; gap: 16px; }
.about__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about__num { font-size: 1.8rem; font-weight: 700; color: var(--brand); margin-bottom: 4px; }

/* CASES */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s;
}
.case:hover { box-shadow: 0 8px 32px rgba(0,0,0,.07); }
.case__tag {
  display: inline-block;
  background: #eef2ff;
  color: var(--brand);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.case h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.case p { font-size: .9rem; color: var(--text-sub); margin-bottom: 16px; }
.case__stack { font-size: .8rem; color: var(--brand); font-weight: 500; }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__text h2 { margin-bottom: 14px; }
.contact__info { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; font-size: .92rem; color: #9ca3af; }
.contact__form { display: flex; flex-direction: column; gap: 12px; }
.contact__form input,
.contact__form textarea {
  background: #1e2130;
  border: 1px solid #2d3148;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
}
.contact__form input:focus,
.contact__form textarea:focus { border-color: var(--brand); }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: #6b7280; }
.contact__form textarea { resize: vertical; }
.contact__form .btn { width: 100%; padding: 14px; font-size: 1rem; }
.form__note { font-size: .78rem; color: #4b5563; text-align: center; }
.form__note a { color: #818cf8; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__copy { font-size: .82rem; color: var(--text-sub); margin-left: auto; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: .82rem; color: var(--text-sub); text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #16a34a;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .92rem;
  transition: transform .3s;
  z-index: 999;
  white-space: nowrap;
}
.toast--show { transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero__stats { gap: 28px; }
}
