:root {
  --bg: #f8f7ff;
  --bg-2: #f1f8ff;
  --panel: rgba(255,255,255,0.84);
  --panel-strong: #ffffff;
  --text: #181625;
  --muted: #64627a;
  --line: #e7e2f3;
  --line-2: #d8d1ec;
  --accent: #7a4cff;
  --accent-2: #18b3a3;
  --accent-soft: #efe7ff;
  --shadow: 0 20px 52px rgba(94, 80, 140, 0.12);
  --radius: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfcff 0%, #f8f6ff 35%, #f7fbff 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(122, 76, 255, 0.12), transparent 22%),
    radial-gradient(circle at 88% 10%, rgba(24, 179, 163, 0.08), transparent 18%),
    radial-gradient(circle at 90% 75%, rgba(122, 76, 255, 0.08), transparent 24%);
}

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.section { position: relative; padding: 44px 0; }
.alt-section { background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.62)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(216, 209, 236, 0.55);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-badge,
.footer-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5eeff, #eafcf8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand-badge img,
.footer-badge img { width: 34px; height: 34px; }
.brand-copy strong,
.footer-brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.brand-copy small,
.footer-brand p,
.footer-copy { color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 1.2rem;
}

.hero { padding-top: 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2d7ff;
  background: var(--accent-soft);
  color: #6b3ff1;
  font-weight: 700;
  font-size: .86rem;
}
.hero-copy h1,
.section-head h2,
.cta-box h2 {
  line-height: 1.06;
  margin: 16px 0 14px;
}
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); max-width: 11ch; }
.section-head h2,
.cta-box h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead,
.section-head p,
.cta-box p,
.app-copy p,
.quick-card p,
.info-box p,
.link-list a,
.contact-card p,
.project-card p,
.feature-list li,
.gallery-card span,
.screen-card figcaption { color: var(--muted); line-height: 1.72; }
.lead { max-width: 62ch; font-size: 1.08rem; }

.hero-actions,
.card-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions { margin: 28px 0; }
.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover,
.small-button:hover { transform: translateY(-2px); }
.button {
  min-height: 54px;
  padding: 0 20px;
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #9767ff 54%, var(--accent-2));
  box-shadow: 0 18px 36px rgba(122, 76, 255, 0.24);
}
.button-secondary,
.small-button {
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat-card,
.hero-logo-box,
.quick-card,
.app-card,
.project-card,
.cta-box,
.contact-card,
.gallery-card,
.screen-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card { padding: 18px; }
.stat-card strong { display: block; font-size: 1.35rem; margin-bottom: 6px; }

.hero-visual {
  display: grid;
  gap: 18px;
}
.hero-logo-box {
  padding: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,255,251,0.92));
}
.hero-logo-box img { width: min(100%, 420px); margin: 0 auto; }
.hero-mini-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 16px;
}
.mini-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-card.tall { grid-row: span 2; }

.quick-strip,
.gallery-grid.six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quick-card { padding: 22px; }
.quick-card h3,
.app-copy h3,
.project-card h3,
.contact-card h3 { margin: 0 0 10px; font-size: 1.32rem; }

.section-head { max-width: 760px; margin-bottom: 26px; }

.apps-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}
.apps-grid { grid-template-columns: 1fr; }
.project-grid.two-col,
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.app-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 20px;
  padding: 24px;
  align-items: center;
}
.app-card.secondary { grid-template-columns: 1fr 0.9fr; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f6f1ff;
  color: #6a40ee;
  border: 1px solid #e8defe;
  font-size: .8rem;
  font-weight: 700;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}
.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.feature-list li::before,
.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.app-preview {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fcfbff, #f6fffd);
}
.poster-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.branded-tile {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 20px;
}
.brand-art {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 16%, rgba(122,76,255,0.12), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(24,179,163,0.14), transparent 22%),
    linear-gradient(135deg, #ffffff, #f6fbff);
}
.brand-art img { width: 92px; height: 92px; margin-bottom: 14px; }
.brand-art h4 { margin: 0; font-size: 1.8rem; }
.brand-art p { color: var(--muted); }
.info-box {
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
}

.gallery-grid.six { grid-template-columns: repeat(3, 1fr); }
.gallery-card,
.screen-card {
  overflow: hidden;
}
.gallery-card img,
.screen-card img {
  width: 100%;
  display: block;
}
.gallery-card span,
.screen-card figcaption {
  display: block;
  padding: 14px 16px 16px;
  font-weight: 700;
  color: var(--text);
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.screen-card figcaption { color: var(--muted); }

.project-card,
.contact-card,
.cta-box { padding: 24px; }
.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(135deg, #f4edff, #ecfffc);
  border: 1px solid var(--line);
}
.project-meta {
  margin-top: auto;
  font-weight: 700;
  color: #6a40ee;
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.main-contact {
  background: linear-gradient(135deg, #fff, #f8fcff 70%, #f3fffb);
}
.big-mail a {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #6a40ee;
  line-height: 1.2;
  word-break: break-word;
}
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.link-list a { font-weight: 600; color: var(--text); }

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid rgba(216,209,236,0.8);
  background: rgba(255,255,255,0.55);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand p,
.footer-copy { margin: 4px 0 0; }

@media (max-width: 1080px) {
  .hero-grid,
  .app-card,
  .app-card.secondary,
  .project-grid.two-col,
  .contact-grid,
  .screens-grid,
  .gallery-grid.six,
  .quick-strip {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid,
  .app-card,
  .app-card.secondary { grid-template-columns: 1fr; }
  .hero-stats,
  .hero-mini-grid { grid-template-columns: 1fr 1fr; }
  .mini-card.tall { grid-row: auto; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, var(--max)); }
  .header-inner { min-height: 78px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .hero-copy h1 { max-width: 100%; }
  .hero-stats,
  .hero-mini-grid,
  .quick-strip,
  .gallery-grid.six,
  .screens-grid,
  .project-grid.two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .cta-box,
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
