/* ============================================
   Timur Sharafutdinov — Portfolio Styles
   Premium dark theme · Glassmorphism
   ============================================ */

:root {
  --bg-deep: #050810;
  --bg-primary: #0a0e1a;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-glass: rgba(15, 23, 42, 0.72);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #7b8ea3;

  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-gold: #d4a853;

  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-violet), var(--accent-cyan));
  --gradient-gold: linear-gradient(135deg, var(--accent-gold), #f0c674);
  --gradient-border: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.5));

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --header-height: 72px;
  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 7rem);


  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

html.fonts-ready body {
  font-family: var(--font-body);
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Cursor glow — desktop only */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

/* Page noise texture */
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  min-width: 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.header.is-scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  z-index: 1002;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.logo__text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: calc(var(--header-height) + 2rem) 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  z-index: 1001;
}

.nav.is-open {
  transform: translateX(0);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1002;
  flex-shrink: 0;
  min-width: 0;
}

@media (min-width: 768px) {
  .header__actions {
    gap: 0.75rem;
  }
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lang-switcher__btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher__btn.is-active {
  background: var(--gradient-primary);
  color: #fff;
}

.lang-switcher__btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.08);
}

.header__cta.btn {
  display: none !important;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.burger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
  transform-origin: center;
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999;
}

.mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    transform: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
  }

  .burger,
  .mobile-overlay {
    display: none;
  }

  .header__cta.btn {
    display: inline-flex !important;
  }
}

@media (min-width: 1024px) and (max-width: 1319px) {
  .nav__list {
    gap: 0.125rem;
  }

  .nav__link {
    padding: 0.45rem 0.55rem;
    font-size: 0.8125rem;
  }

  .header__actions {
    gap: 0.5rem;
  }

  .header__cta.btn {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  min-height: 48px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.55s ease;
}

.btn:hover::after {
  left: 120%;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 52px;
}

.btn--block {
  width: 100%;
}

/* ============================================
   Sections
   ============================================ */
.section {
  position: relative;
  z-index: 2;
  padding: var(--section-padding) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.015);
}

.section--projects {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 1rem);
  overflow-anchor: none;
}

.section--projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(70%, 640px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.25), transparent);
  pointer-events: none;
}

.section--projects::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 800px);
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   What's Included
   ============================================ */
.section--included {
  background: rgba(255, 255, 255, 0.012);
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.included-card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.included-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.included-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

.included-card:hover::before {
  opacity: 1;
}

.included-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.included-card__icon svg {
  width: 22px;
  height: 22px;
}

.included-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.included-card__summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.included-card__toggle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.included-card__toggle:hover {
  color: var(--accent-blue);
}

.included-card__details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.included-card__details[hidden] {
  display: none;
}

.included-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.included-card__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.included-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.included-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
}

.included-notes__item {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.included-notes__item--warn {
  color: var(--text-secondary);
  border-color: rgba(212, 168, 83, 0.2);
  background: rgba(212, 168, 83, 0.05);
}

@media (min-width: 640px) {
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .included-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .included-card--wide {
    grid-column: 1 / -1;
  }
}

/* ============================================
   FAQ
   ============================================ */
.section--faq {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.faq-item.is-open {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.08);
}

.faq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  min-height: 52px;
  transition: color 0.3s ease;
}

.faq-item__trigger:hover {
  color: var(--accent-cyan);
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
}

.faq-item__chevron {
  flex-shrink: 0;
  display: flex;
  color: var(--accent-cyan);
  transition: transform 0.35s var(--ease-out);
}

.faq-item__chevron svg {
  width: 18px;
  height: 18px;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel > p {
  overflow: hidden;
  padding: 0 1.35rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.35s ease, padding 0.35s var(--ease-out);
}

.faq-item.is-open .faq-item__panel > p {
  opacity: 1;
  padding: 0 1.35rem 1.25rem;
}

@media (max-width: 430px) {
  .faq-item__trigger {
    padding: 1rem 1.1rem;
    font-size: 0.88rem;
  }

  .faq-item.is-open .faq-item__panel > p {
    padding: 0 1.1rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel {
    transition: none;
  }

  .faq-item__panel > p {
    transition: none;
  }

  .faq-item.is-open .faq-item__panel > p {
    opacity: 1;
  }
}

.section--contact {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

@media (max-width: 1023px) {
  .section--contact {
    padding-bottom: clamp(6rem, 12vw, 9rem);
  }
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(59, 130, 246, 0.2);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

.service-card:hover .service-card__icon {
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
  transform: scale(1.05);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.service-card__outcome {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ============================================
   Projects showcase — PowerUP-style positional carousel (desktop)
   ============================================ */
.projects-showcase {
  margin-top: 0;
}

.section__header--projects {
  margin-bottom: 2rem;
}

.project-showcase {
  outline: none;
  overflow-anchor: none;
}

.project-showcase:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

.project-showcase__stage {
  position: relative;
  width: min(100%, 1280px);
  margin-inline: auto;
  overflow: hidden;
  overflow-anchor: none;
}

.project-slide__active {
  display: block;
}

.project-slide__preview {
  display: none;
}

.project-preview {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
}

.project-preview__frame {
  display: block;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 16, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-preview__chrome {
  display: flex;
  gap: 4px;
  padding: 0.35rem 0.55rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-preview__chrome span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.project-preview__chrome span:first-child { background: #f87171; }
.project-preview__chrome span:nth-child(2) { background: #fbbf24; }
.project-preview__chrome span:nth-child(3) { background: #34d399; }

.project-preview__image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.project-preview__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-inline: 0.15rem;
}

.project-preview__title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.project-showcase__slide {
  min-width: 0;
  width: 100%;
  overflow-anchor: none;
}

.project-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.project-product-card__media {
  padding: 1rem;
  min-width: 0;
}

.project-product-card__frame {
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 16, 0.65);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.06);
}

.project-product-card__chrome {
  display: flex;
  gap: 5px;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-product-card__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.project-product-card__chrome span:first-child { background: #f87171; }
.project-product-card__chrome span:nth-child(2) { background: #fbbf24; }
.project-product-card__chrome span:nth-child(3) { background: #34d399; }

.project-product-card__image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.project-product-card__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-product-card__content {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  gap: 1rem;
  min-width: 0;
}

.project-product-card__top {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 0;
}

.project-product-card__badge {
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 100px;
}

.project-product-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
}

.project-product-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 4.5rem;
}

.project-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.25rem;
  min-height: 1.75rem;
}

.project-product-card__tag {
  padding: 0.22rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.project-product-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.project-product-card__external {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.project-showcase__navigation {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 0.25rem;
}

.projects-showcase__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.projects-showcase__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.projects-showcase__nav:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--accent-cyan);
}

.projects-showcase__nav:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

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

@media (min-width: 768px) {
  .project-showcase__stage {
    --project-active-width: clamp(580px, 46vw, 760px);
    --project-preview-width: clamp(170px, 17.5vw, 330px);
    --project-showcase-gap: clamp(1.25rem, 2.5vw, 2.75rem);
    --project-media-pad: 1.25rem;
    --project-inner-width: calc(var(--project-active-width) - 2 * var(--project-media-pad));
    --project-screenshot-h: calc(var(--project-inner-width) * 0.625);
    --project-screenshot-center-y: calc(var(--project-media-pad) + 2.05rem + var(--project-screenshot-h) * 0.5);
    --project-preview-screenshot-h: calc(var(--project-preview-width) * 0.625);
    --project-preview-screenshot-center-y: calc(1.45rem + var(--project-preview-screenshot-h) * 0.5);
    --project-preview-top: calc(var(--project-screenshot-center-y) - var(--project-preview-screenshot-center-y));
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .project-showcase__slide {
    grid-area: 1 / 1;
    justify-self: center;
    width: var(--project-active-width);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transform-origin: center top;
    /* Keep the slide at its final layout width during transitions.
       Animating width made text reflow through narrow intermediate widths,
       temporarily extending over the fixed navigation row. */
    transition:
      transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 480ms ease;
    will-change: transform, opacity;
    cursor: default;
  }

  .project-showcase__slide.is-prev,
  .project-showcase__slide.is-next,
  .project-showcase__slide.is-hidden-left,
  .project-showcase__slide.is-hidden-right {
    position: absolute;
    top: var(--project-preview-top);
    left: 50%;
    width: var(--project-preview-width);
  }

  .project-showcase__slide.is-prev,
  .project-showcase__slide.is-next {
    cursor: pointer;
  }

  .project-showcase__slide.is-active {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--project-active-width);
    z-index: 3;
    opacity: 1;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .project-showcase__slide.is-active .project-slide__active {
    pointer-events: auto;
  }

  .project-showcase__slide.is-prev {
    z-index: 2;
    opacity: 0.68;
    pointer-events: auto;
    transform:
      translate(-50%, 0)
      translateX(calc(-0.5 * var(--project-active-width) - var(--project-preview-width) * 0.5 - var(--project-showcase-gap)))
      scale(1);
  }

  .project-showcase__slide.is-next {
    z-index: 2;
    opacity: 0.68;
    pointer-events: auto;
    transform:
      translate(-50%, 0)
      translateX(calc(0.5 * var(--project-active-width) + var(--project-preview-width) * 0.5 + var(--project-showcase-gap)))
      scale(1);
  }

  .project-showcase__slide.is-hidden-left {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform:
      translate(-50%, 0)
      translateX(clamp(-640px, -46vw, -420px))
      scale(0.55);
  }

  .project-showcase__slide.is-hidden-right {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform:
      translate(-50%, 0)
      translateX(clamp(420px, 46vw, 640px))
      scale(0.55);
  }

  .project-showcase__slide.is-prev:hover,
  .project-showcase__slide.is-prev:focus-visible,
  .project-showcase__slide.is-next:hover,
  .project-showcase__slide.is-next:focus-visible {
    opacity: 0.9;
  }

  .project-showcase__slide.is-prev:hover,
  .project-showcase__slide.is-prev:focus-visible {
    transform:
      translate(-50%, 0)
      translateX(calc(-0.5 * var(--project-active-width) - var(--project-preview-width) * 0.5 - var(--project-showcase-gap) + 3px))
      scale(1);
  }

  .project-showcase__slide.is-next:hover,
  .project-showcase__slide.is-next:focus-visible {
    transform:
      translate(-50%, 0)
      translateX(calc(0.5 * var(--project-active-width) + var(--project-preview-width) * 0.5 + var(--project-showcase-gap) - 3px))
      scale(1);
  }

  .project-showcase__slide.is-prev:hover .project-preview__frame,
  .project-showcase__slide.is-prev:focus-visible .project-preview__frame,
  .project-showcase__slide.is-next:hover .project-preview__frame,
  .project-showcase__slide.is-next:focus-visible .project-preview__frame {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  .project-showcase__slide.is-prev .project-slide__active,
  .project-showcase__slide.is-next .project-slide__active,
  .project-showcase__slide.is-hidden-left .project-slide__active,
  .project-showcase__slide.is-hidden-right .project-slide__active {
    display: none;
  }

  .project-showcase__slide.is-prev .project-slide__preview,
  .project-showcase__slide.is-next .project-slide__preview,
  .project-showcase__slide.is-hidden-left .project-slide__preview,
  .project-showcase__slide.is-hidden-right .project-slide__preview {
    display: block;
  }

  .project-showcase__slide.is-active .project-slide__active {
    display: block;
  }

  .project-showcase__slide.is-active .project-slide__preview {
    display: none;
  }

  .project-showcase__slide.is-prev:focus-visible,
  .project-showcase__slide.is-next:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: var(--radius-lg);
  }

  .project-product-card__media {
    padding: 1.25rem;
  }

  .project-product-card__content {
    padding: 1.5rem 1.75rem 1.75rem;
    gap: 1.125rem;
  }

  .project-product-card__badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .project-product-card__title {
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  }

  .project-product-card__desc {
    font-size: 1rem;
    line-height: 1.65;
    min-height: 4.75rem;
  }

  .project-product-card__tag {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }

  .project-product-card__cta {
    min-height: 3rem;
    font-size: 1rem;
  }

  .projects-showcase__nav {
    width: 3rem;
    height: 3rem;
  }

  .projects-showcase__nav svg {
    width: 1.35rem;
    height: 1.35rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .project-showcase__stage {
    --project-active-width: min(clamp(580px, 90vw, 760px), calc(100vw - 2rem));
    --project-showcase-gap: 1rem;
  }

  .project-showcase__slide.is-prev,
  .project-showcase__slide.is-next {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .project-slide__preview {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .project-preview__title {
    font-size: 0.9rem;
  }
}

@media (min-width: 1280px) {
  .project-showcase__stage {
    --project-active-width: clamp(600px, 44vw, 760px);
    --project-preview-width: clamp(210px, 18vw, 330px);
    --project-showcase-gap: clamp(1.75rem, 2.5vw, 3rem);
    --project-media-pad: 1.5rem;
  }

  .project-product-card__media {
    padding: 1.5rem;
  }

  .project-product-card__content {
    padding: 1.75rem 2rem 2rem;
    gap: 1.25rem;
  }

  .project-product-card__title {
    font-size: clamp(1.45rem, 2vw, 1.75rem);
  }

  .project-product-card__desc {
    font-size: 1.05rem;
    min-height: 5rem;
  }

  .project-product-card__cta {
    min-height: 3.25rem;
    font-size: 1.05rem;
  }

  .project-preview__title {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .project-showcase__stage {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-showcase__slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: none;
    pointer-events: none;
    transition: opacity 400ms ease-in-out;
  }

  .project-showcase__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
  }

  .project-showcase__slide.is-fade-from {
    opacity: 1;
    pointer-events: none;
    z-index: 1;
  }

  .project-showcase__slide.is-fade-from.is-fade-out {
    opacity: 0;
  }

  .project-showcase__slide.is-fade-to {
    opacity: 0;
    pointer-events: none;
    z-index: 2;
  }

  .project-showcase__slide.is-fade-to.is-fade-in {
    opacity: 1;
  }

  .project-showcase__slide[hidden] {
    display: none;
  }

  .project-slide__preview {
    display: none !important;
  }

  .project-slide__active {
    display: block !important;
  }

  .project-product-card__desc {
    min-height: 0;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .project-showcase__slide {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-showcase__slide {
    transition: none;
  }
}

html.animations-off .project-showcase__slide {
  transition: none !important;
}

/* ============================================
   Timeline / Process
   ============================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline__line {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.timeline__line-fill {
  width: 100%;
  height: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: height 0.15s linear;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

.timeline__step {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0.55;
  transition: opacity 0.45s ease;
}

.timeline__step.is-active {
  opacity: 1;
}

.timeline__step.is-active .timeline__content h3 {
  color: var(--text-primary);
}

.timeline__step.is-active .timeline__content {
  padding-left: 0.75rem;
  border-left: 2px solid rgba(59, 130, 246, 0.35);
  margin-left: -0.75rem;
  transition: border-color 0.4s ease, padding 0.4s ease;
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__num {
  position: absolute;
  left: -3rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--bg-elevated);
  border: 2px solid rgba(6, 182, 212, 0.4);
  border-radius: 50%;
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline__step.is-active .timeline__num {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .timeline {
    padding-left: 4rem;
  }

  .timeline__line {
    left: 19px;
  }

  .timeline__num {
    left: -4rem;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
}

/* ============================================
   Pricing — tabs & detail cards
   ============================================ */
.pricing__note {
  text-align: center;
  max-width: 680px;
  margin: -1.5rem auto 2.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  line-height: 1.6;
}

.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  max-width: 100%;
}

@media (max-width: 767px) {
  .pricing-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .pricing-tabs::-webkit-scrollbar {
    display: none;
  }
}

.pricing-tabs__btn {
  position: relative;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform 0.25s var(--ease-out);
  white-space: nowrap;
  z-index: 1;
}

.pricing-tabs__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.pricing-tabs__btn.is-active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.pricing-panels {
  min-height: 200px;
}

.pricing-panel {
  min-height: 0;
}

.pricing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  animation: panelFade 0.4s var(--ease-out);
}

.pricing-list[hidden] {
  display: none;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.price-card:hover::before {
  opacity: 1;
}

.price-card--premium {
  border-color: rgba(212, 168, 83, 0.25);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.06) 0%, var(--bg-card) 50%);
}

.price-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.price-card__badge {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-bottom: -0.15rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-shrink: 0;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #7dd3fc;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
  line-height: 1;
  white-space: nowrap;
}

.price-card__amount--quote {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.price-card__unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

.price-card__desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.price-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.price-card__meta-item {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.price-card__meta-label {
  color: var(--accent-cyan);
  font-weight: 600;
}

.price-card__toggle {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.45rem 0;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--accent-cyan);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  text-align: left;
}

.price-card__toggle:hover,
.price-card__toggle:focus-visible {
  color: #bae6fd;
}

.price-card__details {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-card__details[hidden] {
  display: none !important;
}

.price-card__detail-group {
  display: grid;
  gap: 0.35rem;
}

.price-card__detail-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.price-card__detail-group p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.price-card__amount {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.pricing__footer {
  text-align: center;
  margin-top: 2rem;
}

/* Work Terms */
.section--work-terms {
  background: transparent;
}

.work-terms__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.work-term-card {
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

.work-term-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.work-term-card__text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.work-terms__note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (min-width: 768px) {
  .work-terms__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 640px) {
  .pricing-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-list {
    gap: 1.25rem;
  }

  .price-card {
    padding: 1.5rem 1.65rem;
  }

  .price-card__name {
    font-size: 1.06rem;
  }

  .price-card__amount {
    font-size: 1.7rem;
  }
}

@media (max-width: 479px) {
  .price-card {
    padding: 1.1rem 1.15rem;
  }

  .price-card__head {
    gap: 0.35rem 0.75rem;
  }

  .price-card__amount {
    font-size: 1.4rem;
  }
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.contact-grid > * {
  min-width: 0;
  max-width: 100%;
}

.contact-info {
  min-width: 0;
  max-width: 100%;
}

.contact-info .section__header {
  text-align: left;
  margin: 0 0 2rem;
  max-width: none;
}

.contact-info .section__title,
.contact-info .section__desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  font-weight: 500;
  min-width: 0;
  max-width: 100%;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.contact-link > span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.contact-form-wrap {
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.contact-form__trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  min-height: 48px;
  box-sizing: border-box;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.5rem;
  transition: color 0.3s ease;
}

.form-status.is-success {
  color: #34d399;
}

.form-status.is-error {
  color: #f87171;
}

.form-fallback {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-fallback[hidden] {
  display: none;
}

@media (max-width: 1023px) {
  .section--contact .container {
    padding-left: clamp(0.875rem, 4vw, 1.25rem);
    padding-right: clamp(0.875rem, 4vw, 1.25rem);
  }

  .contact-link:hover {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.lang-switcher__btn:focus-visible,
.burger:focus-visible,
.pricing-tabs__btn:focus-visible,
.included-card__toggle:focus-visible,
.mobile-sticky-cta__btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem clamp(0.75rem, 3vw, 1rem);
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  body.menu-open .mobile-sticky-cta {
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
  }

  body.has-mobile-cta:not(.menu-open) {
    padding-bottom: calc(var(--mobile-cta-height, 72px) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-cta__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.35rem;
    min-height: 48px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: background 0.25s ease, color 0.25s ease;
  }

  .mobile-sticky-cta__btn svg {
    width: 18px;
    height: 18px;
  }

  .mobile-sticky-cta__btn--primary {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
  }

  .mobile-sticky-cta__btn:active {
    transform: scale(0.97);
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: var(--accent-cyan);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__social a:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__copy,
.footer__note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* Tilt card */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}

html.animations-off .cursor-glow {
  display: none;
}

html.animations-off *, html.animations-off *::before, html.animations-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

html.animations-off {
  scroll-behavior: auto;
}

html.animations-off .reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   Mobile touch — disable heavy effects
   ============================================ */
@media (hover: none), (max-width: 1023px) {
  .tilt-card {
    transform: none !important;
  }

  .cursor-glow {
    display: none;
  }
}

/* ============================================
   Responsive fine-tuning
   ============================================ */
@media (max-width: 359px) {
  .lang-switcher__btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-max: 1240px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
}