/* CodeMaster Kamil Tyrek — one-page company website */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #edf2f7;
  --ink: #101828;
  --muted: #607087;
  --line: #dce4ee;
  --brand: #1958d1;
  --brand-dark: #0d327a;
  --brand-light: #e9f0ff;
  --accent: #53ddbd;
  --dark: #08152d;
  --header-height: 78px;
  --shadow: 0 28px 70px rgba(18, 44, 87, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  position: relative;
  min-height: 72vh;
  padding: 120px 0;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(245, 247, 250, 0.86);
  border-bottom: 1px solid rgba(220, 228, 238, 0.85);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(16, 40, 78, 0.08);
}

.nav-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(25, 88, 209, 0.26);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: -0.4px;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 12px 16px;
  color: #53647a;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 16px;
  bottom: 4px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  display: flex;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 70px);
  background:
    linear-gradient(120deg, rgba(233, 240, 255, 0.82), transparent 50%),
    var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -3.4px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 800;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  box-shadow: 0 15px 30px rgba(25, 88, 209, 0.24);
  color: #fff;
}

.button-primary:hover {
  background: #124ab7;
  box-shadow: 0 18px 35px rgba(25, 88, 209, 0.3);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  background: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-meta span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #607087;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
}

.dashboard-card {
  position: relative;
  z-index: 3;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: rotate(1.6deg);
}

.dashboard-top {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.dashboard-top > span {
  color: #6c7b8f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.dashboard-top b {
  padding: 5px 8px;
  border-radius: 7px;
  background: #dcfbf2;
  color: #08775e;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d2df;
}

.flow {
  padding: 30px 30px 26px;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 15px;
}

.node-main {
  padding: 14px;
  border: 1px solid #d5e2ff;
  border-radius: 14px;
  background: var(--brand-light);
}

.node-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node strong {
  font-size: 13px;
}

.flow-node small {
  margin-top: 3px;
  color: #8390a2;
  font-size: 10px;
}

.flow-line {
  width: 2px;
  height: 38px;
  margin-left: 34px;
  background: var(--brand);
}

.flow-line.muted {
  background: #d5dde8;
}

.status-dot {
  width: 13px;
  height: 13px;
  border: 3px solid #d6dfeb;
  border-radius: 50%;
}

.status-dot.complete {
  border-color: #bdf1e5;
  background: #26b996;
}

.status-dot.current {
  border-color: #b9ccf4;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(25, 88, 209, 0.09);
}

.faded {
  opacity: 0.55;
}

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 10px;
}

.dashboard-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #718096;
}

.dashboard-footer span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.floating-card {
  position: absolute;
  z-index: 5;
  min-width: 130px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 44, 87, 0.13);
  backdrop-filter: blur(14px);
}

.floating-card span,
.floating-card small {
  display: block;
}

.floating-card span {
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
}

.floating-card small {
  margin-top: 1px;
  color: #8190a4;
  font-size: 10px;
  text-transform: uppercase;
}

.floating-card-one {
  top: 76px;
  right: -13px;
}

.floating-card-two {
  bottom: 62px;
  left: -20px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
}

.hero-glow-one {
  top: 18%;
  right: 8%;
  width: 430px;
  height: 430px;
  background: rgba(51, 111, 229, 0.09);
}

.hero-glow-two {
  right: 33%;
  bottom: 4%;
  width: 260px;
  height: 260px;
  background: rgba(83, 221, 189, 0.08);
}

.section-heading {
  margin-bottom: 64px;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 800;
}

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.about-text p {
  color: var(--muted);
}

.about-text .large-text {
  margin-top: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(18, 44, 87, 0.08);
}

.stat-card > strong {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 1px;
}

.stat-card h3 {
  margin: 30px 0 10px;
  font-size: 17px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.services {
  background: #edf2f7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(18, 44, 87, 0.1);
}

.service-card.featured {
  border-color: #c9d9fb;
  background: linear-gradient(145deg, #fff, #eef4ff);
}

.service-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: #b7c2d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 23px;
  font-weight: 800;
}

.service-card h3 {
  margin: 27px 0 14px;
  font-size: 23px;
  letter-spacing: -0.6px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  color: #40516a;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.service-card li::before {
  margin-right: 10px;
  color: var(--brand);
  content: "✓";
}

.contact {
  min-height: auto;
  padding: 130px 0;
  background: var(--bg);
}

.contact-box {
  display: grid;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  padding: 70px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(83, 221, 189, 0.18), transparent 26%),
    linear-gradient(140deg, #0a1c3e 0%, #0d327a 100%);
  box-shadow: 0 35px 70px rgba(10, 28, 62, 0.22);
  color: #fff;
}

.eyebrow.light {
  color: #7ce4cb;
}

.contact-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 25px 0 0;
  color: #b9c7db;
}


.contact-side {
  display: grid;
  gap: 16px;
}

.company-details {
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(4, 15, 36, 0.28);
}

.company-details-title {
  margin: 0 0 14px;
  color: #9eb0c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.company-details dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.company-details dl > div {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-details dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-details dt {
  color: #8ea1bc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.contact-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.contact-card small {
  display: block;
  color: #9eb0c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-card > a:not(.button) {
  display: block;
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  word-break: break-word;
}

.contact-card p {
  margin: 10px 0 25px;
  color: #aebdd2;
  font-size: 12px;
}

.button-light {
  width: 100%;
  background: #fff;
  color: var(--brand-dark);
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 12px;
}

.footer-content p,
.footer-content > a {
  color: #75849a;
  font-size: 11px;
}

.footer-content > a {
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 100px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 70px);
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(100%, 650px);
    min-height: 500px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 55px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 1160px);
  }

  .site-header {
    height: var(--header-height);
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 18px 16px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(18, 44, 87, 0.11);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-link {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .nav-link.active {
    background: var(--brand-light);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 85px;
  }

  .hero h1,
  .section-heading h2,
  .contact h2 {
    letter-spacing: -2px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .dashboard-card {
    width: calc(100% - 18px);
    transform: none;
  }

  .floating-card-one {
    top: 8px;
    right: 0;
  }

  .floating-card-two {
    bottom: 5px;
    left: 0;
  }

  .stats-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .contact-box {
    width: calc(100% - 24px);
    padding: 42px 26px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 78px 0;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    gap: 7px;
  }

  .hero-meta span {
    padding: 7px 10px;
    font-size: 9px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .flow {
    padding: 24px 18px 22px;
  }

  .dashboard-top {
    padding: 0 16px;
  }

  .dashboard-top > span {
    display: none;
  }

  .floating-card {
    min-width: 112px;
    padding: 12px 14px;
  }

  .floating-card span {
    font-size: 18px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    min-height: 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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