/* ---------- Tokens ---------- */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #006edb;
  --purple: #af52de;
  --pink: #ff2d55;
  --orange: #ff9500;
  --green: #34c759;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 980px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --shadow-md: 0 20px 40px -12px rgba(0,0,0,.12);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif;
  --container: 1120px;
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--ink-soft); font-size: 1.0625rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 .75rem;
}

.pill-badge {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(0,113,227,.08);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s var(--ease-spring), background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: var(--blue-active); }
.btn-link {
  background: none;
  color: var(--blue);
  padding: .85rem .5rem;
  font-weight: 500;
}
.btn-link span { transition: transform .2s var(--ease-spring); display: inline-block; }
.btn-link:hover span { transform: translateX(3px); }
.btn-small { padding: .55rem 1.3rem; font-size: .9rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 245, 247, .88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }

.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 22%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-tile-lg { width: 52px; height: 52px; font-size: 1.05rem; border-radius: 24%; margin-bottom: 1.25rem; }
.logo-tile-sm { width: 26px; height: 26px; font-size: .65rem; }

.nav {
  display: flex;
  gap: .25rem;
}
.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease;
}
.nav a:hover { background: rgba(0,0,0,.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: .5;
}
.blob {
  position: absolute;
  border-radius: 50%;
  animation: blob-float 16s ease-in-out infinite;
}
.blob-blue { width: 460px; height: 460px; background: #64b5ff; top: -160px; left: -100px; }
.blob-purple { width: 380px; height: 380px; background: var(--purple); top: -80px; right: -60px; animation-delay: -5s; }
.blob-pink { width: 320px; height: 320px; background: var(--pink); top: 220px; left: 40%; animation-delay: -10s; opacity: .6; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, 40px) scale(1.08); }
  66%      { transform: translate(-25px, 15px) scale(.96); }
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}
.hero .accent { color: var(--blue); }
.hero-sub {
  font-size: 1.25rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  margin-bottom: 3rem;
}

/* Preview / browser mockup card */
.preview-card {
  max-width: 680px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  justify-content: center;
  padding: .8rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.preview-pill {
  padding: .35rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: .78rem;
  color: var(--ink-soft);
}
.preview-body { padding: 1.5rem; }
.preview-hero-block {
  height: 120px;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.preview-lines { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.preview-lines span { height: 10px; border-radius: 5px; }
.preview-lines span.short { width: 55%; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.preview-tile { height: 64px; border-radius: 12px; }

.shimmer {
  background: linear-gradient(100deg, #eceef1 30%, #f7f8fa 45%, #eceef1 60%);
  background-size: 200% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* Stats band */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.5rem 24px;
}
.stat { text-align: center; flex: 1; min-width: 120px; }
.stat-num,
.stat-suffix {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.stat-suffix { color: var(--blue); }
.stat p { margin: .25rem 0 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}
.section-muted { background: var(--surface); }
.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  max-width: 640px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { font-size: 1.1rem; }

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-spring);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 24%;
  margin-bottom: 1.25rem;
  color: #fff;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-blue   { background: linear-gradient(135deg, #4dabff, var(--blue)); }
.icon-purple { background: linear-gradient(135deg, #d391f0, var(--purple)); }
.icon-orange { background: linear-gradient(135deg, #ffb84d, var(--orange)); }
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { margin: 0; font-size: 1rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-text { font-size: 1.1rem; max-width: 460px; }
.contact-info { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.contact-info a {
  font-weight: 500;
  color: var(--blue);
  width: fit-content;
}
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(0,113,227,.18);
}
.form-note {
  margin: .8rem 0 0;
  font-size: .85rem;
  color: var(--blue);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .9rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { margin: 0; font-size: .8rem; color: var(--ink-soft); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px) scale(.98);
  transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.hero-inner [data-reveal]:nth-child(1) { --reveal-delay: 0s; }
.hero-inner [data-reveal]:nth-child(2) { --reveal-delay: .08s; }
.hero-inner [data-reveal]:nth-child(3) { --reveal-delay: .16s; }
.hero-inner [data-reveal]:nth-child(4) { --reveal-delay: .24s; }
.hero-inner [data-reveal]:nth-child(5) { --reveal-delay: .32s; }
.cards .card:nth-child(1) { --reveal-delay: 0s; }
.cards .card:nth-child(2) { --reveal-delay: .1s; }
.cards .card:nth-child(3) { --reveal-delay: .2s; }
.stats .stat:nth-child(1) { --reveal-delay: 0s; }
.stats .stat:nth-child(2) { --reveal-delay: .1s; }
.stats .stat:nth-child(3) { --reveal-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 24px;
    gap: .25rem;
  }
  .nav.is-open a { padding: .75rem 1rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 4rem 0; }
  .stats { flex-direction: column; text-align: left; }
  .stat { display: flex; align-items: baseline; gap: .5rem; text-align: left; }
  .stat p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
