/* ==========================================================================
   RAVTO - design tokens
   ========================================================================== */
:root {
  --purple-900: #2e1065;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-100: #ede9fe;
  --purple-50:  #f5f3ff;

  --ink:        #131118;
  --gray-700:   #444150;
  --gray-500:   #6b6775;
  --gray-300:   #d8d5e0;
  --gray-100:   #f0eef5;
  --white:      #ffffff;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-hover: 0 20px 48px rgba(76, 29, 149, 0.10);
  --shadow-btn: 0 10px 28px rgba(124, 58, 237, 0.28);
  --shadow-card: 0 12px 26px rgba(46, 16, 101, 0.10);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1240px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--purple-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
  z-index: 500;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.is-scrolled {
  box-shadow: 0 4px 24px rgba(46, 16, 101, 0.06);
  padding: 13px 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo .logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 2px;
}
.logo .logo-accent {
  color: var(--purple-600);
  margin-left: -0.09em;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--purple-600);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--purple-600); }
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  background: var(--purple-600);
  border: 1px solid var(--purple-600);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--purple-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 76px 0 56px;
  overflow: hidden;
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

/* --------------------------------------------------------------------------
   Hero scene — clean floating cards
   -------------------------------------------------------------------------- */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  perspective: 1400px;
  overflow: visible;
}

.scene-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

/* Browser mock: center */
.scene-browser {
  width: 68%;
  left: 16%;
  top: 18%;
  padding: 14px;
  transform-style: preserve-3d;
  z-index: 1;
  animation: floatBrowser 7s ease-in-out infinite;
}
.browser-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}
.browser-bar span:first-child { background: var(--purple-600); }
.browser-body .line {
  height: 8px;
  border-radius: 4px;
  background: var(--gray-100);
  margin-bottom: 8px;
}
.line-lg { width: 90%; background: var(--purple-100); }
.line-md { width: 65%; }
.line-sm { width: 40%; margin-top: 12px; margin-bottom: 0; }
.browser-blocks {
  display: flex;
  gap: 6px;
  margin: 12px 0 8px;
}
.browser-blocks .block {
  flex: 1;
  aspect-ratio: 1 / 0.8;
  border-radius: 8px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
}
.browser-blocks .block:nth-child(2) {
  background: var(--purple-600);
  border-color: var(--purple-600);
}

/* Terminal: TOP-LEFT */
.scene-terminal {
  width: 36%;
  padding: 3%;
  top: 2%;
  left: 0%;
  border-radius: 14px;
  z-index: 5;
  animation: floatTerminal 6.8s ease-in-out infinite 0.2s;
}
.terminal-bar {
  display: flex;
  gap: 5%;
  margin-bottom: 6%;
}
.terminal-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
}
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: clamp(8px, 1.8vw, 11px);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}
.t-line { display: block; }
.t-green  { color: #16a34a; font-weight: 600; }
.t-purple { color: var(--purple-600); font-weight: 600; }
.t-dim    { color: var(--gray-500); }

/* Palette: TOP-RIGHT */
.scene-palette {
  width: 30%;
  aspect-ratio: 2 / 1;
  padding: 3%;
  top: 2%;
  right: 0%;
  display: flex;
  gap: 4%;
  align-items: flex-end;
  z-index: 6;
  animation: floatPalette 6s ease-in-out infinite 0.3s;
}
.swatch {
  flex: 1;
  height: 60%;
  border-radius: 4px;
}
.swatch-1 { background: var(--purple-600); }
.swatch-2 { background: var(--purple-100); height: 45%; }
.swatch-3 { background: var(--ink); height: 32%; }
.swatch-4 { background: var(--white); border: 1.5px solid var(--gray-300); height: 22%; }

/* Chart: TOP-CENTER-RIGHT */
.scene-chart {
  width: 20%;
  aspect-ratio: 1 / 0.9;
  top: 4%;
  right: 34%;
  left: auto;
  padding: 6%;
  display: flex;
  align-items: flex-end;
  z-index: 6;
  animation: floatChart 6.4s ease-in-out infinite 0.7s;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8%;
  width: 100%;
  height: 100%;
}
.chart-bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--purple-100);
  min-height: 4px;
}
.chart-bars span:nth-child(3) { background: var(--purple-600); }
.chart-bars span:nth-child(5) { background: var(--purple-600); }

/* Code chip: LEFT */
.scene-code {
  width: 14%;
  aspect-ratio: 1;
  left: 0%;
  bottom: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  z-index: 6;
  animation: floatCode 6.5s ease-in-out infinite 0.6s;
}
.scene-code svg { width: 55%; height: 55%; }

/* Phone: BOTTOM-LEFT */
.scene-phone {
  width: 15%;
  aspect-ratio: 9 / 17;
  left: 8%;
  bottom: 4%;
  padding: 4% 3%;
  border-radius: 12px;
  z-index: 3;
  animation: floatPhone 7.2s ease-in-out infinite 0.4s;
}
.phone-notch {
  width: 40%;
  height: 3px;
  border-radius: 999px;
  background: var(--gray-300);
  margin: 0 auto 8%;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 6%;
  height: 100%;
}
.p-line {
  height: 5%;
  border-radius: 3px;
  background: var(--gray-100);
}
.p-lg { width: 80%; background: var(--purple-100); }
.p-md { width: 55%; }
.p-sm { width: 40%; margin-top: auto; }
.p-block {
  width: 100%;
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple-100), var(--purple-50));
  border: 1px solid var(--purple-100);
}

/* Cursor: BOTTOM-RIGHT */
.scene-cursor {
  width: 11%;
  aspect-ratio: 1;
  right: 10%;
  bottom: 18%;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--purple-700);
  z-index: 7;
  animation: floatCursor 5.5s ease-in-out infinite 0.9s;
}
.scene-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 14px rgba(76, 29, 149, 0.25));
}

/* Gear: BOTTOM-RIGHT corner */
.scene-gear {
  width: 11%;
  aspect-ratio: 1;
  right: 0%;
  bottom: 4%;
  display: grid;
  place-items: center;
  color: var(--purple-600);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(46, 16, 101, 0.14);
  z-index: 7;
  animation: spinGear 14s linear infinite;
}
.scene-gear svg { width: 55%; height: 55%; }

/* 3D orbs */
.scene-orb {
  position: absolute;
  width: 14%;
  aspect-ratio: 1;
  top: 42%;
  right: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a78bfa, var(--purple-700) 70%);
  box-shadow:
    inset -6px -8px 16px rgba(46, 16, 101, 0.35),
    0 12px 26px rgba(76, 29, 149, 0.22);
  z-index: 4;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
.scene-orb-2 {
  position: absolute;
  width: 8%;
  aspect-ratio: 1;
  top: 62%;
  left: 0%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c4b5fd, var(--purple-600) 70%);
  box-shadow:
    inset -4px -6px 12px rgba(46, 16, 101, 0.3),
    0 8px 18px rgba(76, 29, 149, 0.2);
  z-index: 4;
  animation: floatOrb 9s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Ambient dots */
.scene-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--purple-600);
  pointer-events: none;
  z-index: 8;
}
.scene-dot-1 { width: 8px;  height: 8px;  top: 12%;    left: 50%;  opacity: 0.5; }
.scene-dot-2 { width: 12px; height: 12px; bottom: 46%; right: 12%; opacity: 0.3; }
.scene-dot-3 { width: 6px;  height: 6px;  bottom: 20%; left: 44%;  opacity: 0.4; }

/* Keyframes */
@keyframes floatBrowser {
  0%, 100% { transform: rotateY(-9deg) rotateX(5deg) rotateZ(-2deg) translateY(0); }
  50%      { transform: rotateY(-9deg) rotateX(5deg) rotateZ(-2deg) translateY(-10px); }
}
@keyframes floatPalette {
  0%, 100% { transform: rotateZ(6deg) translateY(0); }
  50%      { transform: rotateZ(6deg) translateY(-12px); }
}
@keyframes floatCode {
  0%, 100% { transform: rotateZ(-8deg) translateY(0); }
  50%      { transform: rotateZ(-8deg) translateY(8px); }
}
@keyframes floatCursor {
  0%, 100% { transform: rotateZ(6deg) translateY(0); }
  50%      { transform: rotateZ(6deg) translateY(-9px); }
}
@keyframes floatTerminal {
  0%, 100% { transform: rotateZ(-4deg) translateY(0); }
  50%      { transform: rotateZ(-4deg) translateY(-9px); }
}
@keyframes floatPhone {
  0%, 100% { transform: rotateZ(-6deg) translateY(0); }
  50%      { transform: rotateZ(-6deg) translateY(-11px); }
}
@keyframes floatChart {
  0%, 100% { transform: rotateZ(3deg) translateY(0); }
  50%      { transform: rotateZ(3deg) translateY(-8px); }
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6px, -10px) scale(1.06); }
}
@keyframes spinGear {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-browser,
  .scene-palette,
  .scene-code,
  .scene-cursor,
  .scene-terminal,
  .scene-phone,
  .scene-chart,
  .scene-gear,
  .scene-orb,
  .scene-orb-2 { animation: none; }
}

/* ==========================================================================
   Hero copy
   ========================================================================== */
.eyebrow-plain {
  font-size: 0.95rem;
  color: var(--purple-600);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 880px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--purple-600);
}
.hero .hero-sub {
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 560px;
  font-weight: 400;
}
.hero .hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background: var(--purple-600);
  color: var(--white);
  border: none;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.36);
  background: var(--purple-700);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--ink);
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.btn-secondary:hover {
  border-color: var(--purple-600);
  color: var(--purple-600);
  background: var(--purple-50);
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 88px 0 36px;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head .section-note {
  color: var(--gray-500);
  font-size: 0.95rem;
  max-width: 360px;
}
.page-hero { padding: 56px 0 20px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 760px;
}
.page-hero h1 em { font-style: italic; color: var(--purple-600); }
.page-hero .hero-sub { margin-top: 20px; max-width: 620px; }

/* ==========================================================================
   Service / work cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-600);
  box-shadow: var(--shadow-hover);
}
.card .card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-50);
  border-radius: var(--radius-sm);
  color: var(--purple-600);
  margin-bottom: 18px;
}
.card .card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.card p {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.55;
}
.card .card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 14px;
}
.card .card-tags li {
  font-size: 0.78rem;
  color: var(--purple-700);
  background: var(--purple-50);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--purple-100);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-600);
  box-shadow: var(--shadow-hover);
}
.work-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple-700);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.work-card p { color: var(--gray-700); font-size: 0.94rem; }

/* ==========================================================================
   Process rows
   ========================================================================== */
.process-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.process-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.3fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
}
.process-row:first-child { border-top: none; padding-top: 4px; }
.process-index {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--purple-600);
}
.process-heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.process-heading small {
  display: block;
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 6px;
}
.process-copy { color: var(--gray-700); font-size: 0.98rem; }
.process-copy p + p { margin-top: 10px; }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement {
  background: var(--purple-50);
  border-radius: 32px;
  padding: 56px;
  margin: 90px 0;
  border: 1px solid var(--purple-100);
}
.statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 500;
  max-width: 700px;
  color: var(--ink);
}
.statement p {
  margin-top: 18px;
  max-width: 620px;
  color: var(--gray-700);
  font-size: 1.05rem;
}
.statement .statement-sign {
  margin-top: 22px;
  color: var(--purple-700);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 36px 0 44px;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--purple-600); color: var(--purple-600); }
.filter-btn[aria-pressed="true"] {
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: var(--white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-600);
  box-shadow: var(--shadow-hover);
}
.blog-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple-700);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.28;
}
.blog-excerpt {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 22px;
}
.blog-excerpt p + p { margin-top: 12px; }
.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 50px 0 80px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--purple-600);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); }

.contact-side {
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: fit-content;
}
.contact-side h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.contact-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.contact-link-list a:hover { color: var(--purple-600); }
.contact-link-list .icon-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--purple-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-600);
  flex-shrink: 0;
}
.contact-link-list .icon-badge svg { width: 16px; height: 16px; }
.contact-side .hours {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--purple-100);
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-600) 100%);
  border-radius: 32px;
  padding: 56px;
  margin: 90px 0 0;     /* was 60px — bottom removed */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  max-width: 460px;
}
.cta-band .btn-primary {
  flex-shrink: 0;
  background: var(--white);
  color: var(--purple-600);
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.25);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease;
}
.cta-band .btn-primary:hover {
  background: var(--purple-50);
  color: var(--purple-700);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--gray-100);
  padding: 44px 0 36px;
  margin-top: 60px;    /* was 20px */
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  color: var(--gray-500);
  font-size: 0.88rem;
}
.footer-social {
  display: flex;
  gap: 10px;
  list-style: none;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--purple-600);
  color: var(--purple-600);
  transform: translateY(-2px);
}
.footer-social svg { width: 17px; height: 17px; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--purple-600);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-spring), background 0.2s ease;
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.back-to-top:hover { background: var(--purple-700); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-media {
    order: -1;
    width: 100%;
    min-height: 0;
    margin: 0 auto;
  }
  .hero-scene {
    max-width: 360px;
    aspect-ratio: 1 / 1;
  }
}

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

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 28px 28px 40px;         /* was 8px 28px 24px */
    gap: 4px;                        /* was 4px — same, kintu niche a padding barabo */
    box-shadow: 0 16px 32px rgba(46, 16, 101, 0.08);
  }

  .nav-links.is-open li {
    padding: 0;                      /* li te kono extra padding nei */
  }

  .nav-links.is-open a {
    display: block;
    padding: 20px 0;                 /* was 12px 0 — more breathing room */
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    font-size: 1.05rem;              /* was inherit — slight bump */
    font-weight: 500;
  }

  .nav-links.is-open a:last-of-type {
    border-bottom: none;             /* last link er niche double border na */
  }

  .nav-links.is-open .nav-cta-mobile {
    margin-top: 20px;                /* was 10px */
    text-align: center;
    background: var(--purple-600);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 16px 0;                 /* was 12px 0 */
    border: none;
    font-weight: 600;
    font-size: 1rem;
  }

  .card-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .section-head { margin: 60px 0 28px; }
  .statement { padding: 34px 24px; margin: 60px 0; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; margin: 60px 0 0; }
  .cta-band h2 { max-width: none; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .hero-media { margin-bottom: 4px; }
  .hero-scene {
    max-width: min(82vw, 320px);
    aspect-ratio: 1 / 1;
  }

  .scene-browser  { width: 60%; left: 20%; top: 24%; padding: 10px; }
  .scene-terminal { width: 34%; top: 2%;  left: 2%; padding: 6px; }
  .scene-palette  { width: 26%; top: 2%;  right: 2%; padding: 6px; }
  .scene-phone    { width: 13%; left: 8%; bottom: 6%; padding: 3px 2px; }
  .scene-code     { width: 12%; left: 2%; bottom: 40%; }
  .scene-cursor   { width: 9%;  right: 10%; bottom: 18%; }
  .scene-gear     { width: 10%; right: 2%; bottom: 6%; }
  .scene-orb      { width: 12%; top: 44%; right: 4%; }

  .scene-chart,
  .scene-orb-2,
  .scene-dot-2,
  .scene-dot-3 { display: none; }

  .browser-bar span { width: 5px; height: 5px; }
  .browser-body .line { height: 5px; margin-bottom: 5px; }
  .line-lg { height: 6px; }
  .line-sm { margin-top: 8px; }
  .browser-blocks { gap: 4px; margin: 8px 0 6px; }
  .browser-blocks .block { border-radius: 5px; }

  .swatch { height: 55%; border-radius: 3px; }
  .swatch-2 { height: 42%; }
  .swatch-3 { height: 30%; }
  .swatch-4 { height: 20%; }

  .terminal-bar span { width: 4px; height: 4px; }
  .terminal-body { font-size: 6px; gap: 2px; }

  .phone-notch { height: 2px; margin-bottom: 6%; }
  .p-line { height: 4%; }
  .p-block { border-radius: 4px; }
}

@media (max-width: 420px) {
  .hero-scene { max-width: min(86vw, 300px); }

  .scene-orb,
  .scene-orb-2,
  .scene-chart,
  .scene-code,
  .scene-dot-3 { display: none; }

  .scene-browser  { width: 62%; left: 19%; top: 26%; padding: 9px; }
  .scene-terminal { width: 36%; top: 2%;  left: 2%; padding: 5px; }
  .scene-palette  { width: 28%; top: 2%;  right: 2%; padding: 5px; }
  .scene-phone    { width: 14%; left: 8%; bottom: 6%; }
  .scene-cursor   { width: 10%; right: 10%; bottom: 18%; }
  .scene-gear     { width: 11%; right: 2%; bottom: 6%; }

  .terminal-body { font-size: 5.5px; }
  .browser-body .line { height: 4px; }
  .line-lg { height: 5px; }
}

@media (max-width: 360px) {
  .hero-scene { max-width: min(90vw, 280px); }

  .scene-phone,
  .scene-gear,
  .scene-code,
  .scene-chart,
  .scene-orb,
  .scene-orb-2,
  .scene-dot-2,
  .scene-dot-3 { display: none; }

  .scene-browser  { width: 64%; left: 18%; top: 28%; padding: 8px; }
  .scene-terminal { width: 38%; top: 2%;  left: 2%; padding: 5px; }
  .scene-palette  { width: 30%; top: 2%;  right: 2%; padding: 5px; }
  .scene-cursor   { width: 10%; right: 10%; bottom: 22%; }

  .terminal-body { font-size: 5px; }
}