/* AppNova Studio Website Styles */

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  color: #1a232e;
  line-height: 1.6;
  font-size: 20px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* Space between sections */
section {
  margin-top: 90px;
  margin-bottom: 90px;
}
section:first-of-type:not(.intro) {
  margin-top: 150px;
}
section:last-of-type {
  margin-bottom: 50px;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(30,40,60,0.04);
  padding: 0rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  gap: 0.5rem;
}
.logo img {
  width: 200px;
  height: 200px;
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav a {
  font-weight: 500;
  color: #1a232e;
  transition: color 0.2s;
}
nav a:hover {
  color: #1e6b8c;
}
.btn {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.15rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-primary {
  background: #f37021;
  color: #fff;
  margin-left: 0;
}
.btn-primary:hover {
  background: #d95d13;
}
.btn-secondary {
  background: #29536b;
  color: #fff;
  margin-right: 1rem;
}
.btn-secondary:hover {
  background: #1e3a4c;
}
.btn-outline {
  background: #fff;
  color: #f37021;
  border: 2px solid #f37021;
}

/* Language Selector */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-selector {
  position: relative;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1.5px solid #e0e6ed;
  border-radius: 8px;
  padding: 0.38em 0.52em;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover {
  border-color: #f37021;
  background: #fff5ef;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1.5px solid #e0e6ed;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(30, 40, 60, 0.13);
  list-style: none;
  padding: 0.25rem;
  z-index: 200;
  min-width: 44px;
}
.lang-dropdown.open {
  display: block;
}
.lang-option {
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 0.3em 0.52em;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  user-select: none;
}
.lang-option:hover {
  background: #f5f7fa;
}
.lang-option.active {
  background: #fff5ef;
  outline: 2px solid #f37021;
  outline-offset: -2px;
}
.btn-outline:hover {
  background: #f37021;
  color: #fff;
}

/* Intro / Company Section */
.intro {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  padding: 7rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0f1a 0%, #101a2b 55%, #0a0f1a 100%);
  color: #fff;
  text-align: center;
}
.intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.intro-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  will-change: transform;
}
.intro-glow--blue {
  top: -200px;
  left: -140px;
  background: #3e6b8c;
}
.intro-glow--orange {
  bottom: -220px;
  right: -140px;
  background: #f37021;
  opacity: 0.26;
}
.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.intro-container {
  position: relative;
  z-index: 1;
}
.intro-heading {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 auto 1.25rem;
  max-width: 900px;
}
.intro-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.intro-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Intro graphic: phone + browser mockup, synced by an animated connector */
.intro-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 780px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem 1rem;
  perspective: 1200px;
}
.intro-device {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.intro-device--phone {
  width: 150px;
  height: 260px;
  padding: 18px 14px;
  flex-shrink: 0;
}
.intro-device-notch {
  width: 46px;
  height: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 auto 18px;
}
.intro-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.intro-app-grid span {
  aspect-ratio: 1;
  border-radius: 9px;
  background: linear-gradient(135deg, #f37021, #5a8bbd);
  opacity: 0;
  transform: scale(0.4);
}
.intro-graphic.in-view .intro-app-grid span {
  animation: introPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.intro-app-grid span:nth-child(1) { animation-delay: 0.15s; }
.intro-app-grid span:nth-child(2) { animation-delay: 0.25s; background: linear-gradient(135deg, #5a8bbd, #29536b); }
.intro-app-grid span:nth-child(3) { animation-delay: 0.35s; }
.intro-app-grid span:nth-child(4) { animation-delay: 0.45s; background: linear-gradient(135deg, #5a8bbd, #29536b); }
.intro-app-grid span:nth-child(5) { animation-delay: 0.55s; }
.intro-app-grid span:nth-child(6) { animation-delay: 0.65s; background: linear-gradient(135deg, #5a8bbd, #29536b); }
@keyframes introPopIn {
  to { opacity: 1; transform: scale(1); }
}

.intro-device--browser {
  width: 320px;
  padding: 16px 20px 24px;
  flex-shrink: 0;
}
.intro-device-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.intro-device-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.intro-device-topbar span:nth-child(1) {
  background: #f37021;
  opacity: 0.7;
}
.intro-code-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.intro-code-lines .line {
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  width: 0;
}
.intro-graphic.in-view .intro-code-lines .line {
  animation: introLineIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-code-lines .line-1 { animation-delay: 0.2s !important; --w: 85%; }
.intro-code-lines .line-2 { animation-delay: 0.32s !important; --w: 55%; }
.intro-code-lines .line-3 { animation-delay: 0.44s !important; --w: 92%; }
.intro-code-lines .line-4 { animation-delay: 0.56s !important; --w: 40%; }
.intro-code-lines .line-5 { animation-delay: 0.68s !important; --w: 70%; }
.intro-code-lines .accent-orange { background: rgba(243, 112, 33, 0.55); }
.intro-code-lines .accent-blue { background: rgba(90, 139, 189, 0.55); }
@keyframes introLineIn {
  from { width: 0; }
  to { width: var(--w, 100%); }
}

.intro-connector {
  position: relative;
  width: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 6px, transparent 6px 12px);
  flex-shrink: 0;
}
.intro-connector-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #f37021;
  box-shadow: 0 0 12px 3px rgba(243, 112, 33, 0.7);
  animation: introDotTravel 2.6s ease-in-out infinite;
}
@keyframes introDotTravel {
  0%, 100% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { left: calc(100% - 8px); }
}

.intro-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.intro-chip {
  padding: 0.5em 1.3em;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Generic scroll-reveal utility, scoped to the intro section */
.intro .reveal-up {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}
.intro .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro-connector-dot,
  .intro-app-grid span,
  .intro-code-lines .line {
    animation: none !important;
    opacity: 1 !important;
    width: var(--w, 100%);
    transform: none !important;
  }
}

.badge {
  display: inline-block;
  background: #fff;
  color: #1e6b8c;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.4em 1.2em;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(30,40,60,0.06);
}
.highlight-blue {
  color: #29536b;
}
.highlight-orange {
  color: #f37021;
}
.subtitle {
  color: #5a6b7b;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 7rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  min-width: 120px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(30,40,60,0.06);
}
.stat-orange {
  background: #fff3ea;
}
.stat-blue {
  background: #eaf3f9;
}
.stat-title {
  font-size: 1.3rem;
  font-weight: 700;
}
.stat-desc {
  color: #5a6b7b;
  font-size: 0.98rem;
}

/* Projects Section */
.projects {
  background: linear-gradient(120deg, #29536b 60%, #3e6b8c 100%);
  color: #fff;
  padding: 15rem 0 20rem 0;
  margin-top: 0;
}
/* Two columns: heading + cards on the left, device mockup on the right. The mockup
   sits in the cards' row only, so it is vertically centered against the cards
   however many there are. */
.projects-container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  /* Wider than the phone's overhang (55px) so it never touches the cards */
  column-gap: 12rem;
  align-items: start;
}
.projects-info {
  grid-column: 1;
}
.projects-cards {
  grid-column: 1;
  grid-row: 2;
}
.projects-cards .project-card:last-child {
  margin-bottom: 0;
}
.projects-badge {
  color: #f37021;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.projects-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
}
.projects-info p {
  color: #eaf3f9;
  margin-bottom: 1.5rem;
}
.project-card {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 2.2rem 2.7rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 1px 4px rgba(30,40,60,0.05);
  transition: all 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card.featured {
  border: 2px solid #f37021;
}
.project-card.hidden-initial {
  opacity: 0;
  transform: translateX(-80px);
}
.project-card.animate-in {
  opacity: 1;
  transform: translateX(0);
}
.project-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.project-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  margin-left: 0.7em;
  vertical-align: middle;
}
.project-tag.orange {
  background: #f37021;
  color: #fff;
}
.project-tag.blue {
  background: #5a8bbd;
  color: #fff;
}
.project-tag.gray {
  background: #bfc9d1;
  color: #29536b;
}
.project-desc {
  color: #eaf3f9;
  font-size: 1rem;
}
.projects-mockup {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.projects-mockup.mockup-hidden-initial {
  opacity: 0;
  transform: translateX(80px);
}
.projects-mockup.mockup-animate-in {
  opacity: 1;
  transform: translateX(0);
}
/* Combined device mockup: tablet (back) + phone (front, overlapping) — Apple-style pairing */
.mockup-group {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 10px 30px 80px;
}
.mockup-tablet {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 560px;
  max-width: 100%;
}
.mockup-tablet-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform: rotate(2deg);
  filter: drop-shadow(0 22px 40px rgba(10,15,25,0.35));
}
.mockup-tablet-screen {
  width: 100%;
  background: #1a232e;
  border-radius: 26px;
  border: 14px solid #2d3e50;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 2px #3a4a5e;
  /* Fixed frame so the tablet size doesn't change with each project's screenshot */
  aspect-ratio: 2610 / 1860;
}
.mockup-tablet-camera {
  position: absolute;
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0d141d;
  z-index: 2;
}
.mockup-tablet-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.mockup-phone {
  background: #1a232e;
  border-radius: 26px;
  width: 190px;
  height: 360px;
  box-shadow: 0 18px 38px rgba(10,15,25,0.4);
  position: absolute;
  left: -55px;
  bottom: -30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  transform: rotate(-6deg);
}
.mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mockup-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(30,40,60,0.7);
  color: #fff;
  padding: 0.7em 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mockup-proto-btn {
  background: #f37021;
  color: #fff;
  border-radius: 8px;
  padding: 0.2em 0.8em;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3em;
}
.mockup-dots {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.5em;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bfc9d1;
  opacity: 0.5;
}
.dot.active {
  background: #f37021;
  opacity: 1;
}
.mockup-caption {
  color: #bfc9d1;
  font-size: 0.98rem;
  text-align: center;
}

/* Process Section */
.process {
  background: #fff;
  padding: 3rem 0 2rem 0;
  text-align: center;
}
.process-badge {
  color: #f37021;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.process-header-block {
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: linear-gradient(160deg, #0a0f1a 0%, #101a2b 55%, #0a0f1a 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 0 auto 5rem;
  box-shadow: 0 8px 48px 0 rgba(10, 15, 26, 0.45), 0 2px 16px 0 rgba(10, 15, 26, 0.25);
}
.process h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
.process .subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  margin-bottom: 0;
}
.process-steps {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.process-steps:has(.process-step:hover) .process-step:not(:hover) {
  opacity: 0.45;
  transform: scale(0.97);
}
.process-step {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(30,40,60,0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 1.5rem;
  text-align: left;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.7s ease, opacity 0.7s ease;
  cursor: default;
}
.process-step:hover {
  transform: scale(1.07);
  box-shadow: 0 16px 48px rgba(30,40,60,0.16), 0 4px 16px rgba(243,112,33,0.12);
  background: #fff;
  z-index: 2;
}
.process-step.hidden-initial:nth-child(1) {
  opacity: 0;
  transform: translateX(-100px);
}
.process-step.hidden-initial:nth-child(2) {
  opacity: 0;
  transform: translateY(-100px);
}
.process-step.hidden-initial:nth-child(3) {
  opacity: 0;
  transform: translateX(100px);
}
.process-step.animate-in {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}
.process-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
}
.process-orange {
  background: none;
}
.process-blue {
  background: none;
}
.process-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.process-desc {
  color: #5a6b7b;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.process-list {
  color: #1a232e;
  font-size: 1.05rem;
  padding-left: 1.2em;
}
.process-list li {
  margin-bottom: 0.2em;
}

/* Features Row */
.features-row {
  background: #fff;
  padding: 1.5rem 0 1.5rem 0;
}
.features-container {
  display: flex;
  gap: 5rem;
  justify-content: center;
  flex-wrap: wrap;
  background: linear-gradient(160deg, #0a0f1a 0%, #101a2b 55%, #0a0f1a 100%);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 8px rgba(10, 15, 26, 0.25);
}
.feature {
  text-align: center;
  flex: 1 1 200px;
  min-width: 180px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff3ea;
}
.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}
.feature-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

/* Contact Section */
.contact {
  background: #fff;
  padding: 3rem 0 2rem 0;
}
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.contact-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(30,40,60,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff3ea;
}
.contact-card h3 {
  font-size: 2.0rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.contact-card p {
  color: #5a6b7b;
  margin-bottom: 1.5rem;
}
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  flex: 1 1 0;
  padding: 0.8em 1em;
  border-radius: 8px;
  border: 1.5px solid #e0e6ed;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 0.2rem;
  resize: none;
}
.form-row textarea {
  min-height: 150px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #f37021;
}
.form-row input.field-error,
.form-row select.field-error,
.form-row textarea.field-error {
  border-color: #f37021;
  border-width: 2px;
}
.privacy-checkbox input[type="checkbox"].field-error {
  outline: 2px solid #f37021;
  outline-offset: 2px;
}
.privacy-row {
  margin-bottom: 1.5rem;
}
.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #5a6b7b;
  cursor: pointer;
}
.privacy-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.privacy-checkbox a {
  color: #3b82f6;
  text-decoration: underline;
}
.privacy-checkbox a:hover {
  color: #2563eb;
}
.contact-info-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  color: #5a6b7b;
  font-size: 0.98rem;
  gap: 1.5rem;
}

/* Footer */
.footer {
  background: #1a232e;
  color: #fff;
  padding: 2rem 0 1.2rem 0;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
}
.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  gap: 0.5rem;
}
.footer-logo img {
  width: 32px;
  height: 32px;
}
.footer-copy {
  font-size: 0.98rem;
  color: #bfc9d1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: #bfc9d1;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-social a {
  margin-left: 1rem;
  display: inline-block;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-social img:hover {
  opacity: 1;
}

/* Legal Section */
.legal-section {
  padding: 4rem 0;
  min-height: 60vh;
}
.legal-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a232e;
}
.legal-section h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a232e;
}
.legal-section h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1a232e;
}
.legal-section h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #1a232e;
}
.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #4a5568;
}
.legal-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}
.legal-section li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}
.legal-section a {
  color: #3b82f6;
  text-decoration: underline;
}
.legal-section a:hover {
  color: #2563eb;
}

/* Responsive Design */

/* Large Tablet (max 1100px) */
@media (max-width: 1100px) {
  .mockup-group {
    padding-left: 60px;
  }
  .mockup-tablet {
    width: 460px;
  }
  .projects-container {
    column-gap: 9rem;
  }
  /* Prevent process header from overflowing at mid-widths */
  .process-header-block {
    padding: 2rem 5rem;
  }
  /* Intro graphic — stack the devices instead of side-by-side */
  .intro-heading {
    font-size: 2.8rem;
  }
  .intro-graphic {
    flex-direction: column;
    gap: 1.5rem;
  }
  .intro-connector {
    width: 2px;
    height: 40px;
  }
  .intro-connector-dot {
    animation-name: introDotTravelVertical;
    left: 50%;
    top: 0;
    margin-top: 0;
    margin-left: -4px;
  }
  @keyframes introDotTravelVertical {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { top: calc(100% - 8px); }
  }
}

/* Tablet (max 900px) */
@media (max-width: 900px) {
  .projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .projects-info,
  .projects-cards {
    width: 100%;
  }
  .projects-cards .project-card:last-child {
    margin-bottom: 0;
  }
  .projects-mockup {
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
    align-self: center;
    /* Reserve room below the group for the phone, which stays absolutely positioned
       (kept out of flow deliberately — toggling it to a flow position here triggers
       a headless-Chromium compositing glitch that mispaints the tablet's image). */
    padding-bottom: 570px;
  }
  .mockup-group {
    display: block;
    padding: 0;
    margin-left: 0;
  }
  .mockup-tablet {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .mockup-tablet-device {
    transform: none;
    filter: drop-shadow(0 12px 28px rgba(10,15,25,0.3));
  }
  .mockup-phone {
    top: calc(100% + 2.5rem);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 530px;
  }
  .process-steps, .features-container {
    flex-direction: column;
    align-items: center;
  }
  .process-step {
    max-width: 100%;
    width: 100%;
  }
  .stats {
    gap: 1.5rem;
  }
  /* Process header — reduce the large horizontal padding */
  .process-header-block {
    padding: 2rem 2.5rem;
  }
  .process h2 {
    font-size: 2.8rem;
  }
  /* Features — each feature becomes its own card when stacked */
  .features-container {
    gap: 1rem;
    padding: 2 rem 1.5rem;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  .feature {
    background: linear-gradient(160deg, #0a0f1a 0%, #101a2b 55%, #0a0f1a 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(10, 15, 26, 0.25);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .feature-title {
    font-size: 1.8rem;
  }
  .feature-desc {
    font-size: 1.1rem;
  }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {
  section {
    margin-top: 60px;
    margin-bottom: 60px;
  }
  section:first-of-type:not(.intro) {
    margin-top: 100px;
  }
  .container {
    width: 95%;
  }

  /* Navbar — center logo, keep language selector pinned to the top-right */
  .nav-container {
    justify-content: center;
    position: relative;
  }
  .nav-kontakt-btn {
    display: none;
  }
  .lang-selector {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
  .badge {
    font-size: 0.8rem;
    padding: 0.3em 0.9em;
  }
  .subtitle {
    font-size: 1rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.55em 1.1em;
  }

  /* Intro */
  .intro {
    padding: 4.5rem 0 3.5rem;
  }
  .intro-heading {
    font-size: 2.1rem;
  }
  .intro-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .intro-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
  }
  .intro-actions .btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  .intro-glow {
    width: 320px;
    height: 320px;
    filter: blur(80px);
  }
  .intro-device--browser {
    width: 240px;
  }

  /* Projects */
  .projects {
    padding: 4rem 0 5rem 0;
  }
  .projects-info h2 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }
  .project-card {
    padding: 1.4rem 1.4rem;
    margin-bottom: 1.5rem;
  }
  .projects-mockup {
    margin-top: 2rem;
    width: 100%;
    padding-bottom: calc(min(490px, 130vw) + 2rem);
  }
  .mockup-tablet {
    width: 100%;
  }
  .mockup-tablet-screen {
    border-width: 8px;
    border-radius: 16px;
  }
  .mockup-phone {
    width: min(260px, 70vw);
    height: min(490px, 130vw);
    top: calc(100% + 2rem);
  }

  /* Process */
  .process {
    padding: 3rem 0 2rem 0;
  }
  /* Fix the 10rem horizontal padding that breaks mobile layout */
  .process-header-block {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 3rem;
  }
  .process h2 {
    font-size: 1.6rem;
  }
  .process .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  .process-step {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .process-icon {
    width: 100px;
    height: 100px;
  }
  .process-title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }
  .process-desc {
    font-size: 0.95rem;
  }

  /* Features */
  .feature-title {
    font-size: 1.5rem;
  }
  .feature-desc {
    font-size: 1.0rem;
  }

  /* Contact — stack form rows vertically on small screens */
  .contact-card {
    padding: 1.5rem 1.25rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }
  .form-row input,
  .form-row select,
  .form-row textarea {
    margin-bottom: 1rem;
  }
  .privacy-row {
    margin-bottom: 1rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .footer-copy {
    position: static;
    transform: none;
  }
  .footer-links {
    gap: 1rem;
  }
}

/* Very small phones (max 400px) */
@media (max-width: 400px) {
  .intro-heading {
    font-size: 1.75rem;
  }
  .intro-actions .btn {
    font-size: 0.95rem;
    padding: 0.75em 1.2em;
  }
  .process h2 {
    font-size: 1.35rem;
  }
  .btn {
    font-size: 0.82rem;
    padding: 0.5em 0.95em;
  }
  .projects-info h2 {
    font-size: 1.5rem;
  }
}
