/* Hybrid Industries — Apple-inspired design system */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(22, 22, 23, 0.72);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-height: 52px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 980px;
  --section-pad: clamp(80px, 12vh, 140px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

::selection {
  background: rgba(41, 151, 255, 0.35);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Ambient background ─── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.ambient__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #1a3a5c 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.ambient__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2d1b4e 0%, transparent 70%);
  bottom: 20%;
  right: -150px;
}

.ambient__orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0d3320 0%, transparent 70%);
  top: 50%;
  left: 40%;
  opacity: 0.2;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__logo img {
  height: 28px;
  width: auto;
  opacity: 0.95;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 0.25s var(--ease-out);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 980px;
  transition: background 0.25s var(--ease-out) !important;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text) !important;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* ─── Layout ─── */
main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: var(--section-pad) 24px;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section__subhead {
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.004em;
  line-height: 1.33337;
  max-width: 680px;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
}

.hero__logo {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s var(--ease-out) 0.2s forwards;
}

.hero__logo img {
  height: clamp(80px, 12vw, 120px);
  width: auto;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s var(--ease-out) 0.35s forwards;
}

.hero__title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1.2s var(--ease-out) 0.45s forwards;
}

.hero__title span {
  background: linear-gradient(135deg, #fff 0%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(19px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 580px;
  letter-spacing: 0.004em;
  line-height: 1.28571;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s var(--ease-out) 0.75s forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  opacity: 0;
  animation: heroIn 1s var(--ease-out) 1.2s forwards, bounce 2s ease-in-out 2s infinite;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.hero__parallax {
  will-change: transform, opacity;
  transition: none;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-family: inherit;
  letter-spacing: -0.022em;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(41, 151, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(41, 151, 255, 0.1);
  color: var(--accent);
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── About ─── */
.about {
  padding-top: calc(var(--section-pad) + 40px);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.about__text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.58824;
  margin-bottom: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
}

.stat__number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, #86868b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ─── Services sticky scroll ─── */
.services {
  padding-bottom: 0;
}

.services__sticky-wrap {
  position: relative;
}

.services__intro {
  text-align: center;
  margin-bottom: 64px;
}

.services__intro .section__subhead {
  margin: 0 auto;
}

.services__track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-panel {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  position: sticky;
  top: var(--nav-height);
  will-change: opacity;
}

.service-panel__card {
  width: 100%;
  max-width: var(--max-width);
  background-color: var(--bg-elevated);
  background-image: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  backdrop-filter: blur(20px);
  transform-origin: center top;
  transition: transform 0.12s ease-out;
}

.service-panel__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(41, 151, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-panel__icon svg,
.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(41, 151, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-panel__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-panel__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.58824;
}

.service-panel__visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(41,151,255,0.15) 0%, rgba(41,151,255,0.02) 50%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.service-panel__visual-inner {
  font-size: clamp(64px, 10vw, 120px);
  opacity: 0.15;
  font-weight: 700;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ─── Services grid (fallback mobile) ─── */
.services-grid {
  display: none;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(41, 151, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}


.service-card__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Work showcase ─── */
.work {
  text-align: center;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.work__card {
  display: block;
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.work__card--featured {
  grid-column: 1 / -1;
  padding: clamp(36px, 5vw, 56px);
}

.work__card--featured .work__title {
  font-size: clamp(28px, 4vw, 40px);
}

.work__card--featured .work__desc {
  max-width: 640px;
}

.work__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(41,151,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.work__card:hover {
  transform: scale(1.02);
  border-color: rgba(41, 151, 255, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  color: inherit;
}

.work__card:hover::before {
  opacity: 1;
}

.work__card-inner {
  position: relative;
  z-index: 1;
}

.work__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(41, 151, 255, 0.12);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 20px;
}

.work__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.work__desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: none;
  margin: 0 0 20px;
  line-height: 1.5;
}

.work__link {
  font-size: 17px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.work__link svg {
  transition: transform 0.3s var(--ease-out);
}

.work__card:hover .work__link svg {
  transform: translateX(4px);
}

/* ─── About founder ─── */
.founder {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.founder__content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.founder__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41,151,255,0.3), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.founder__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.founder__role {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 20px;
}

.founder__bio p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.58824;
  margin-bottom: 16px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.skill-tag {
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 980px;
}

/* ─── Contact ─── */
.contact {
  text-align: center;
}

.contact .section__subhead {
  margin: 0 auto 48px;
}

.contact__form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  letter-spacing: -0.022em;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(41, 151, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact__form .btn {
  width: 100%;
  margin-top: 8px;
  font-size: 17px;
  padding: 14px;
}

.contact__email {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-tertiary);
}

.contact__email a {
  color: var(--text-secondary);
}

.contact__email a:hover {
  color: var(--accent);
}

/* ─── Footer ─── */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__logo img {
  height: 32px;
  margin: 0 auto 16px;
  opacity: 0.7;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer__links a {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer__links a:hover {
  color: var(--text-secondary);
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── Page hero (subpages) ─── */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 24px 60px;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    pointer-events: none;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__toggle {
    display: block;
  }

  .nav__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
  }

  .nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .services__track {
    display: none;
  }

  .services-grid {
    display: grid;
  }

  .service-panel {
    position: relative;
    min-height: auto;
    padding: 0;
  }

  .founder__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder__avatar {
    margin: 0 auto;
  }

  .skills {
    justify-content: center;
  }

  .hero__scroll-hint {
    display: none;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .work__card--featured {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
