/* =========================
   Cytech Digital Website
   ========================= */

:root {
  --bg: #07111f;
  --bg-soft: #0c1828;
  --surface: #101f33;
  --surface-light: #15263c;
  --text: #f6f9ff;
  --muted: #a8b5c8;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --accent: #7c3aed;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.section-padding {
  padding: 96px 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  letter-spacing: -0.07em;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.76);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary) !important;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: 0.25s ease;
}

.hero {
  padding-top: 118px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 720px;
  margin: 26px 0 14px;
}

.hero-subtext {
  max-width: 690px;
  font-size: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #03101c;
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.24);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-light {
  background: var(--white);
  color: #06111e;
}

.hero-visual {
  position: relative;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.card-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.dashboard-body {
  padding: 24px;
}

.metric-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.metric-card.large {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.34), transparent 16rem),
    radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.34), transparent 18rem),
    rgba(255, 255, 255, 0.06);
}

.metric-card.large h3 {
  font-size: 2rem;
  margin-top: 8px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

.metric-card strong {
  display: block;
  font-size: 1.25rem;
}

.metric-card span {
  color: var(--muted);
}

.progress-wrap {
  display: grid;
  gap: 15px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.14);
}

.progress-wrap span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 7px;
}

.progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
}

.floating-pill {
  position: absolute;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.pill-one {
  left: -20px;
  top: 24%;
}

.pill-two {
  right: -10px;
  bottom: 18%;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.text-block {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
}

.center-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.center-heading p {
  margin-top: 16px;
}

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

.service-card,
.project-card,
.portfolio-card,
.contact-form,
.cta-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.service-card {
  padding: 24px;
  min-height: 330px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-weight: 900;
  margin-bottom: 24px;
}

.service-card h3,
.project-card h3,
.portfolio-card h3 {
  margin-bottom: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-card {
  padding: 32px;
}

.project-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.24);
  color: #c4b5fd;
  font-weight: 800;
  font-size: 0.86rem;
}

.project-link {
  color: var(--primary);
  font-weight: 800;
  display: inline-block;
  margin-bottom: 18px;
}

.project-card p {
  margin-bottom: 15px;
}

.project-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin-top: 20px;
}

.project-card li {
  color: var(--muted);
  position: relative;
  padding-left: 24px;
}

.project-card li::before,
.feature::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.feature {
  position: relative;
  padding: 18px 18px 18px 44px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}

.feature::before {
  left: 18px;
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.timeline-item span {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 900;
}

.timeline-item p {
  margin-top: 8px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portfolio-card {
  display: block;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
}

.cta-box {
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.25), transparent 24rem),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.26), transparent 24rem),
    rgba(255, 255, 255, 0.06);
}

.cta-box h2 {
  max-width: 850px;
  margin: 0 auto;
}

.cta-box p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px auto 0;
}

.center-actions {
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-list a,
.contact-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.contact-list strong {
  color: var(--text);
}

.contact-list span {
  color: var(--muted);
}

.contact-form {
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 800;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 15px;
  min-height: 50px;
  padding: 0 15px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
}

textarea {
  padding: 15px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

select option {
  color: #08111f;
}

.full-btn {
  width: 100%;
}

.form-note {
  font-size: 0.88rem;
  text-align: center;
  margin-top: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 30px;
}

.footer p {
  max-width: 390px;
  margin-top: 14px;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a:not(.footer-logo) {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #07111f;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 650px;
  }

  .section-padding {
    padding: 78px 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 18px;
    display: grid;
    gap: 6px;
    background: rgba(12, 24, 40, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    text-align: center;
  }

  .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);
  }

  .hero {
    padding-top: 82px;
  }

  .hero-actions,
  .center-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards-grid,
  .project-grid,
  .features-grid,
  .portfolio-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .project-card,
  .contact-form {
    padding: 24px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .floating-pill {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 64px 0;
  }

  h1 {
    letter-spacing: -0.055em;
  }
}

@media (max-width: 420px) {
  .container,
  .navbar {
    width: min(100% - 24px, var(--max-width));
  }

  .logo {
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .dashboard-body {
    padding: 16px;
  }

  .metric-card.large h3 {
    font-size: 1.55rem;
  }

  .contact-form,
  .project-card,
  .service-card {
    border-radius: 20px;
  }
}
