:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef3ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --radius: 16px;
  --max: 1120px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo img {
  width: 34px;
  height: 34px;
}

.logo .app {
  color: var(--blue);
}

.logo .solutions {
  font-weight: 500;
  color: #374151;
}

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

.nav-links a {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #111827;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero .lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.btn:hover {
  background: var(--blue-dark);
}

.btn-full {
  width: 100%;
}

.hero-art {
  position: relative;
  min-height: 480px;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
}

.hero-art::before {
  width: 280px;
  height: 280px;
  right: 24px;
  top: 20px;
}

.hero-art::after {
  width: 160px;
  height: 160px;
  right: 210px;
  bottom: 40px;
  background: rgba(37, 99, 235, 0.07);
}

.hero-dots {
  position: absolute;
  inset: 40px 20px 20px 80px;
  background-image: radial-gradient(#c7d2fe 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.7;
}

.iphone {
  background: #0b1220;
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.22);
  position: relative;
}

.iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #0b1220;
  border-radius: 12px;
  z-index: 2;
}

.iphone-screen {
  background: #f8fafc;
  border-radius: 28px;
  overflow: hidden;
  min-height: 390px;
  padding: 36px 14px 16px;
}

.hero-art .iphone {
  position: absolute;
  width: 210px;
}

.hero-art .iphone.front {
  right: 28px;
  top: 8px;
  transform: rotate(8deg);
  z-index: 2;
}

.hero-art .iphone.back {
  left: 52px;
  top: 72px;
  transform: rotate(-9deg);
}

.ui-kicker {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.ui-balance {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 2px 0 14px;
}

.activity {
  display: grid;
  gap: 8px;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 0.78rem;
}

.activity-row span {
  color: var(--muted);
}

.progress-title {
  font-weight: 700;
  margin-bottom: 14px;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section.tight {
  padding-top: 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--blue);
  margin: 12px auto 0;
  border-radius: 999px;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
}

.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Portfolio */
.page-hero {
  padding: 56px 0 12px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
  border-radius: 999px;
}

.page-hero p {
  color: var(--muted);
  margin: 16px 0 0;
}

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

.work-card {
  background: transparent;
}

.work-visual {
  height: 340px;
  border-radius: 24px;
  display: grid;
  place-items: end center;
  padding: 28px 18px 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.work-visual .iphone {
  width: 168px;
  transform: translateY(18px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.work-visual .iphone-screen {
  min-height: 300px;
}

.work-visual.lavender { background: #ece7ff; }
.work-visual.peach { background: #ffe8d9; }
.work-visual.sky { background: #dcebff; }

.work-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.work-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.ui-chip {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ui-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.mini-card {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 7px;
  font-size: 0.72rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
}

.ui-dark {
  background: linear-gradient(180deg, #0b1f4b, #163a8a);
  color: #fff;
}

.ui-dark .mini-card {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ui-dark .mini-card span {
  color: rgba(255, 255, 255, 0.72);
}

.ui-dark .ui-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
}

.stat b {
  display: block;
  font-size: 0.95rem;
}

.stat span {
  font-size: 0.65rem;
  opacity: 0.75;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.about-copy h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--blue);
  margin: 12px 0 0;
  border-radius: 999px;
}

.about-copy p {
  color: #4b5563;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fact {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.fact b {
  display: block;
  font-size: 1.15rem;
  color: var(--blue);
}

/* Contact */
.contact-panel {
  background: var(--bg-alt);
  border-radius: 28px;
  padding: 48px 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 22px;
  font-size: 2.05rem;
  letter-spacing: -0.03em;
}

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

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #374151;
}

.contact-list svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  display: none;
  margin: 12px 0 0;
  color: #15803d;
  font-weight: 600;
}

.form-note.show {
  display: block;
}

/* Footer */
.site-footer {
  background: #fff;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.site-footer p {
  color: var(--muted);
  max-width: 28rem;
}

.site-footer h4 {
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #4b5563;
}

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

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2f7;
  color: #4b5563;
  display: grid;
  place-items: center;
}

.socials a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.copyright {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-3,
  .work-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-art {
    min-height: 420px;
  }

  .contact-panel {
    padding: 32px 22px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .form-row,
  .facts,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-art .iphone {
    width: 170px;
  }

  .hero-art .iphone.front {
    right: 8px;
  }

  .hero-art .iphone.back {
    left: 16px;
  }
}
