/* ===========================================================
   BYTESOLTECH — Design Tokens
   =========================================================== */
:root {
  --bg: #0A0E1A;
  --surface: #0F1729;
  --surface-2: #131D35;
  --border: #1E2942;
  --accent: #2E6FF2;
  --accent-soft: rgba(46, 111, 242, 0.14);
  --text: #F5F7FA;
  --text-muted: #8B95A7;

  /* Light section variant tokens */
  --light-bg: #F7F9FC;
  --light-surface: #FFFFFF;
  --light-border: #E3E8F0;
  --light-text: #101828;
  --light-text-muted: #5B6472;
  --light-accent-soft: rgba(46, 111, 242, 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 16px;
}

.lede-center { margin-left: auto; margin-right: auto; text-align: center; }

.body-text {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 28px;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  animation: pulse-glow 6s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 111, 242, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-block { width: 100%; }

@keyframes pulse-glow {
  0%, 92%, 100% { box-shadow: 0 0 0 0 rgba(46, 111, 242, 0); }
  96% { box-shadow: 0 0 0 8px rgba(46, 111, 242, 0.12); }
}

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.logo-lockup {
  display: block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-logo:hover .logo-lockup {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 111, 242, 0.3);
}

.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 32px 24px;
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; color: var(--accent); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(0.3);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(46, 111, 242, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(10,14,26,0.4), var(--bg) 85%);
}

.grid-fade {
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 780px;
  text-align: center;
}

.hero-headline {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-headline .accent { color: var(--accent); }

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  animation: word-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes word-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-micro {
  font-size: 13.5px;
  color: var(--text-muted);
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

/* ===========================================================
   SECTION NODE MARKERS (signature element)
   =========================================================== */
.node {
  position: absolute;
  top: 4px;
  left: 32px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.section.portfolio .node,
.section.quote .node {
  color: var(--light-text-muted);
}

/* ===========================================================
   SECTIONS — general rhythm
   =========================================================== */
.section {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--border);
}

.section.about { background: var(--bg); }
.section.services { background: var(--surface); }
.section.portfolio { background: var(--light-bg); color: var(--light-text); }
.section.industries { background: var(--surface); }
.section.quote { background: var(--light-bg); color: var(--light-text); }

.section.portfolio .eyebrow,
.section.quote .eyebrow { color: var(--accent); }

.section.portfolio .section-title,
.section.quote .section-title { color: var(--light-text); }

.section.portfolio .lede,
.section.quote .lede,
.section.portfolio .body-text,
.section.quote .body-text { color: var(--light-text-muted); }

.section.portfolio { border-top-color: var(--light-border); }
.section.quote { border-top-color: var(--light-border); }

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section.in-view > * {
  animation: stagger-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes stagger-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-section.in-view > * { animation: none; }
}

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.value-list li {
  padding: 14px 0 14px 24px;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 2px;
  transition: border-color var(--transition);
}

.value-list li:hover { border-left-color: var(--accent); }

.value-label {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.pipeline-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipeline-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: border-color var(--transition), color var(--transition);
}

.pipeline-step.active,
.pipeline-step.highlight {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.pipeline-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services .eyebrow,
.industries .eyebrow,
.portfolio .eyebrow,
.services .section-title,
.industries .section-title,
.portfolio .section-title {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.service-card.wide { grid-column: span 3; }

.service-index { display: none; }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform var(--transition), background var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(46, 111, 242, 0.24);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ---- Desktop concept: services as a stacked ledger, not cards ---- */
@media (min-width: 1024px) {
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 64px;
    border-top: 1px solid var(--border);
  }

  .service-card {
    display: grid;
    grid-template-columns: 64px 56px 1fr;
    align-items: center;
    gap: 32px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 34px 20px;
    position: relative;
    overflow: hidden;
    transition: padding var(--transition), background var(--transition);
  }

  .service-card.wide { grid-column: auto; }

  .service-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .service-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--accent-soft);
    padding-left: 36px;
  }

  .service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
  }

  .service-index {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity var(--transition), color var(--transition);
  }

  .service-card:hover .service-index {
    opacity: 1;
    color: var(--accent);
  }

  .service-icon {
    margin-bottom: 0;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--surface);
  }

  .service-text {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    align-items: center;
    gap: 32px;
  }

  .service-card h3 {
    margin-bottom: 0;
    font-size: 20px;
  }

  .service-card p {
    font-size: 15px;
    max-width: 480px;
  }
}

/* ===========================================================
   PORTFOLIO
   =========================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.portfolio-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.1);
}

.portfolio-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-bg);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-body {
  padding: 22px 22px 26px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.portfolio-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light-text);
}

.portfolio-body p {
  font-size: 14px;
  color: var(--light-text-muted);
  margin-bottom: 14px;
}

.portfolio-body a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--light-text);
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.portfolio-body a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.portfolio-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--light-text-muted);
  opacity: 0.85;
  margin-top: 36px;
}

/* ===========================================================
   INDUSTRIES
   =========================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.industry-panel {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.industry-panel:hover { transform: translateY(-6px); }

.panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-panel:hover .panel-photo {
  transform: scale(1.06);
}

.panel-coach { background: #16201a; }
.panel-restoration { background: #0d1420; }
.panel-dubai { background: #14100a; }

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.15) 0%, rgba(10,14,26,0.95) 100%);
  transition: opacity var(--transition);
}

.industry-panel:hover .panel-overlay { opacity: 0.85; }

.panel-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
}

.panel-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.panel-content h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 10px 0 8px;
}

.panel-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.panel-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.industry-panel:hover .panel-link { gap: 8px; }

/* ===========================================================
   GET A QUOTE
   =========================================================== */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.quote-steps { margin: 24px 0; }

.quote-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--light-text-muted);
  margin-bottom: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.quote-trust {
  font-size: 14px;
  color: var(--light-text-muted);
  opacity: 0.9;
}

.quote-form {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--light-text);
}

.optional {
  font-weight: 400;
  color: var(--light-text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--light-text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--light-accent-soft);
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--light-text-muted);
  margin-top: 14px;
  transition: color var(--transition);
}

.form-note.form-note-error {
  color: #E5484D;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo-img {
  height: 34px;
  width: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

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

.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .about-grid,
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .service-card.wide { grid-column: span 2; }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .industry-panel { height: 280px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu.open { display: flex; }

  .logo-lockup { height: 24px; }

  .section { padding: 80px 0; }
  .section-inner { padding: 0 20px; }

  .hero { padding: 120px 20px 60px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: span 1; }

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

  .quote-form { padding: 24px; }

  .node { display: none; }
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
