/* ── CINEMATIC PANELS ── */

/* HERO */
.cn-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 56px 60px;
  overflow: hidden;
}
.cn-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/img/DSC04162.jpg') center/cover no-repeat;
}
.cn-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,28,40,0.85) 0%,
    rgba(15,28,40,0.6) 40%,
    rgba(15,28,40,0.92) 100%
  );
}
.cn-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cn-hero-title {
  font-size: clamp(48px, 10vw, 130px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--white);
}
.cn-hero-title span {
  display: block;
}
.cn-hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
}
.cn-hero-sub {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
}
.cn-hero-cta {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.cn-btn-accent {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s;
}
.cn-btn-accent:hover {
  background: #007acc;
}
.cn-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, background 0.2s;
}
.cn-btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}
.cn-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cn-scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--dim);
  animation: cn-bounce 2s ease-in-out infinite;
}
@keyframes cn-bounce {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* STATS */
.cn-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: var(--darker);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cn-stat {
  flex: 1;
  max-width: 280px;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.cn-stat:last-child {
  border-right: none;
}
.cn-stat-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}
.cn-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dim);
  margin-top: 6px;
}

/* SERVICE PANELS */
.cn-services {
  position: relative;
}
.cn-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.cn-panel--reverse {
  direction: rtl;
}
.cn-panel--reverse > * {
  direction: ltr;
}
.cn-panel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
  position: relative;
  z-index: 1;
}
.cn-panel-watermark {
  position: absolute;
  top: 50%;
  left: 56px;
  transform: translateY(-50%);
  font-size: 300px;
  font-weight: 700;
  color: var(--white);
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -10px;
  pointer-events: none;
  z-index: 0;
}
.cn-panel--reverse .cn-panel-watermark {
  left: auto;
  right: 56px;
}
.cn-panel-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.cn-panel-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.cn-panel-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 480px;
  margin-bottom: 32px;
}
.cn-panel-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.cn-panel-link:hover {
  color: var(--white);
}
.cn-panel-img {
  position: relative;
  overflow: hidden;
}
.cn-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cn-panel:nth-child(odd) {
  background: var(--darkest);
}
.cn-panel:nth-child(even) {
  background: var(--darker);
}
.cn-panel-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--darkest) 100%);
}
.cn-panel-img-label {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  opacity: 0.15;
}

/* AOI HIGHLIGHT */
.cn-aoi {
  background: var(--accent);
  padding: 80px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.cn-aoi-text {
  max-width: 680px;
}
.cn-aoi-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.cn-aoi h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.cn-aoi p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
.cn-btn-white {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--white);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.cn-btn-white:hover {
  background: rgba(255,255,255,0.9);
}

/* MESTRIC PARTNERSHIP */
.cn-mestric {
  background: var(--darker);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.cn-mestric-text {
  max-width: 680px;
}
.cn-mestric-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cn-mestric h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.cn-mestric p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: 32px;
}
.cn-mestric-logo {
  flex-shrink: 0;
  width: 220px;
  height: 140px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--darkest);
}
.cn-mestric-logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  opacity: 0.7;
}

/* TECH */
.cn-tech {
  padding: 80px 56px;
  background: var(--darkest);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cn-tech-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  margin-bottom: 48px;
}
.cn-tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
}
.cn-tech-name {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  opacity: 0.12;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* QUALITY */
.cn-quality {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 56px;
  background: var(--darker);
}
.cn-quality-text {
  flex: 1;
}
.cn-quality-text h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 16px;
}
.cn-quality-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: 28px;
  max-width: 560px;
}
.cn-quality-badge {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border: 2px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.cn-quality-badge-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.cn-quality-badge-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 8px;
}
.cn-quality-badge-desc {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.4;
}

/* REFERENCES */
.cn-refs {
  padding: 100px 56px;
  background: var(--darkest);
}
.cn-refs-header {
  text-align: center;
  margin-bottom: 60px;
}
.cn-refs-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 12px;
}
.cn-refs-header p {
  font-size: 16px;
  color: var(--dim);
}
.cn-refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cn-ref-card {
  background: var(--darker);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.cn-ref-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.cn-ref-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.cn-ref-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
  flex: 1;
}
.cn-ref-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cn-ref-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(0,149,255,0.1);
  color: var(--accent);
  border-radius: 4px;
}

/* CTA */
.cn-cta {
  padding: 100px 56px;
  background: var(--darker);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.cn-cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.15;
}
.cn-cta h2 em {
  font-style: normal;
  color: var(--accent);
}
.cn-cta > div:first-child p {
  font-size: 16px;
  color: var(--dim);
  margin-top: 16px;
}
.cn-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.cn-cta-contact {
  font-size: 13px;
  color: var(--dim);
}
.cn-cta-contact a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.cn-cta-contact a:hover {
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cn-hero {
    padding: 120px 24px 48px;
  }
  .cn-hero-title {
    font-size: clamp(32px, 10vw, 48px);
    letter-spacing: -1px;
  }
  .cn-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .cn-hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .cn-hero-cta a {
    text-align: center;
  }
  .cn-stats {
    flex-wrap: wrap;
  }
  .cn-stat {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 28px 20px;
  }
  .cn-stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .cn-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cn-panel--reverse {
    direction: ltr;
  }
  .cn-panel-text {
    padding: 60px 24px;
    order: 2;
  }
  .cn-panel-img {
    height: 50vh;
    order: 1;
  }
  .cn-panel-watermark {
    font-size: 150px;
    left: 24px;
  }
  .cn-panel--reverse .cn-panel-watermark {
    right: auto;
    left: 24px;
  }
  .cn-aoi {
    flex-direction: column;
    padding: 60px 24px;
    text-align: center;
  }
  .cn-mestric {
    flex-direction: column;
    padding: 60px 24px;
    text-align: center;
  }
  .cn-tech {
    padding: 60px 24px;
  }
  .cn-tech-row {
    gap: 16px 32px;
  }
  .cn-quality {
    flex-direction: column;
    padding: 60px 24px;
    text-align: center;
  }
  .cn-quality-text p {
    max-width: none;
  }
  .cn-refs {
    padding: 60px 24px;
  }
  .cn-refs-grid {
    grid-template-columns: 1fr;
  }
  .cn-cta {
    flex-direction: column;
    padding: 60px 24px;
    text-align: center;
  }
  .cn-cta-right {
    align-items: center;
  }
}

/* CROSS-LINK to service.omegabyte.hu — bottom strip of the first screen */
.cn-xlink {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(15,28,40,0.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.cn-xlink-title {
  font-size: 27px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.cn-xlink-desc {
  font-size: 21px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 760px;
}
.cn-xlink-btn {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.cn-xlink-btn:hover {
  color: var(--white);
}
@media (max-width: 768px) {
  .cn-xlink {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 18px;
  }
  /* Keep the strip short on phones so it still fits on the first screen */
  .cn-xlink-desc {
    display: none;
  }
}
/* Short phones (e.g. 375×667) */
@media (max-width: 768px) and (max-height: 700px) {
  .cn-hero {
    padding-top: 96px;
    padding-bottom: 24px;
  }
  .cn-hero-bottom {
    margin-top: 32px;
    gap: 16px;
  }
  .cn-xlink {
    margin-top: 16px;
  }
}
/* Short desktop screens (e.g. 1366×768 laptops): compact hero so the service strip stays on the first screen */
@media (min-width: 769px) and (max-height: 820px) {
  .cn-hero {
    padding-top: 100px;
    padding-bottom: 32px;
  }
  .cn-hero-title {
    font-size: clamp(48px, 12vh, 130px);
  }
  .cn-hero-bottom {
    margin-top: 32px;
  }
  .cn-xlink {
    margin-top: 24px;
  }
}
