/* ─── Tech Hero · Apple-inspired stylesheet ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --white:    #ffffff;
  --offwhite: #f5f5f7;
  --dark:     #1d1d1f;
  --mid:      #6e6e73;
  --light:    #a1a1a6;
  --rule:     #d2d2d7;
  --blue:     #0071e3;
  --blue-h:   #0077ed;
  --blue-d:   #005bbf;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --max:      980px;
  --wide:     1200px;
  --nav-h:    52px;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography scale ───────────────────────────────────────────────────── */
.t-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.t-hero {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--dark);
}
.t-hero-light { color: var(--white); }
.t-display {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.07;
}
.t-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.125;
}
.t-body { font-size: 17px; line-height: 1.6; color: var(--mid); }
.t-small { font-size: 14px; line-height: 1.5; color: var(--mid); }
.t-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--light); text-transform: uppercase; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container      { max-width: var(--max);  margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.section        { padding: 100px 0; }
.section-sm     { padding: 64px 0; }
.center         { text-align: center; }
.stack-sm       { display: flex; flex-direction: column; gap: 12px; }
.stack          { display: flex; flex-direction: column; gap: 20px; }
.stack-lg       { display: flex; flex-direction: column; gap: 32px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  opacity: .85;
  transition: opacity .2s;
}
.nav__link:hover { opacity: 1; }
.nav__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--blue);
  padding: 7px 16px;
  border-radius: 980px;
  transition: background .2s;
}
.nav__cta:hover { background: var(--blue-h); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  padding: 24px 22px 32px;
  border-bottom: 1px solid var(--rule);
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.nav__mobile-link:last-child { border: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 980px;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-h); }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: rgba(0,113,227,.06); }
.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover { background: var(--offwhite); }
.btn-sm {
  font-size: 14px;
  padding: 9px 20px;
}
.arrow { font-style: normal; }

/* ── Hero section ───────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 22px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,113,227,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}
.hero__heading {
  max-width: 760px;
  margin: 0 auto 20px;
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 23px);
  color: var(--mid);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .4;
  animation: bounce 2s var(--ease) infinite;
}
.hero__scroll span { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); }
.hero__scroll svg { width: 16px; height: 16px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Smart home section ─────────────────────────────────────────────────── */
.smarthome-section {
  background: var(--offwhite);
  padding: 100px 0 0;
  overflow: hidden;
}
.smarthome-section__content {
  text-align: center;
  padding-bottom: 60px;
}
.smarthome-section__heading { margin-bottom: 16px; }
.smarthome-section__body { max-width: 480px; margin: 0 auto 40px; }
.smarthome-section__img {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
}

/* ── Feature strip ──────────────────────────────────────────────────────── */
.feature-strip {
  background: var(--dark);
  padding: 80px 0;
}
.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
}
.feature-strip__item {
  background: var(--dark);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-strip__icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
}
.feature-strip__title { font-size: 20px; font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.feature-strip__body { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ── Section intro ──────────────────────────────────────────────────────── */
.section-intro {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-intro .t-eyebrow { margin-bottom: 12px; }
.section-intro .t-display { margin-bottom: 16px; }

/* ── Services card grid ─────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-3px);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--offwhite);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.service-card__desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
}
.service-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.service-card__link:hover { gap: 8px; }
.service-card__link svg { width: 12px; height: 12px; transition: transform .2s; }
.service-card__link:hover svg { transform: translateX(3px); }

/* Services page hero ───────────────────────────────────────────────────── */
.page-hero {
  padding: 80px 22px 64px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-hero .t-eyebrow { margin-bottom: 14px; }
.page-hero .t-display { margin-bottom: 16px; }
.page-hero .t-body { max-width: 500px; margin: 0 auto; }

/* ── Marquee / proof strip ──────────────────────────────────────────────── */
.proof-strip {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.proof-strip__track {
  display: flex;
  gap: 48px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.proof-strip__track:hover { animation-play-state: paused; }
.proof-strip__item {
  font-size: 14px;
  font-weight: 500;
  color: var(--light);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.proof-strip__item svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--dark);
  padding: 100px 22px;
  text-align: center;
}
.cta-band .t-display { color: var(--white); margin-bottom: 16px; }
.cta-band .t-body    { color: rgba(255,255,255,.6); max-width: 440px; margin: 0 auto 36px; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Testimonial ────────────────────────────────────────────────────────── */
.testimonial-section { background: var(--offwhite); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card__stars { color: var(--blue); font-size: 15px; letter-spacing: 2px; }
.testimonial-card__quote { font-size: 15px; line-height: 1.6; color: var(--dark); flex: 1; }
.testimonial-card__author { font-size: 13px; font-weight: 600; color: var(--mid); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 48px 0 32px;
  color: rgba(255,255,255,.5);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer__tagline { font-size: 13px; }
.footer__col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer__legal a { color: rgba(255,255,255,.4); text-decoration: underline; }

/* ── Scroll-reveal animation ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip__grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  .hero__actions { flex-direction: column; align-items: center; }
  .cta-band__actions { flex-direction: column; align-items: center; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ── About page ─────────────────────────────────────────────────────────── */
.about-origin-hero {
  position: relative;
  padding: 120px 22px 100px;
  text-align: center;
  background: var(--dark);
  overflow: hidden;
}
.about-origin-hero .t-eyebrow { color: rgba(0,113,227,.9); }
.about-origin-hero h1 { color: var(--white); }
.about-origin-hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}
/* Subtle radial glow behind hero text */
.about-origin-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,113,227,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Star field */
.about-stars { position: absolute; inset: 0; pointer-events: none; }
.about-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle linear infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50%       { opacity: .7; }
}

/* Chapter layout */
.about-story { background: var(--white); }
.about-chapter {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px 60px;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.about-chapter:last-child { border: none; }
.about-chapter__label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}
.about-chapter__line {
  flex: 1;
  width: 1px;
  background: var(--rule);
  margin-left: 2px;
  margin-top: 4px;
}
.about-chapter__heading { margin-bottom: 20px; }
.about-chapter__text { margin-bottom: 16px; }
.about-chapter__text:last-child { margin-bottom: 0; }
.about-chapter__text em { font-style: italic; color: var(--dark); }

/* Roster grid */
.about-roster__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-role-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-role-card__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .03em;
}
.about-role-card__title { font-size: 17px; font-weight: 600; color: var(--dark); letter-spacing: -.01em; }
.about-role-card__desc  { font-size: 14px; color: var(--mid); line-height: 1.55; }

@media (max-width: 900px) {
  .about-chapter { grid-template-columns: 1fr; gap: 16px; }
  .about-chapter__label { flex-direction: row; align-items: center; }
  .about-chapter__line { flex: 0; width: 40px; height: 1px; margin: 0; }
  .about-roster__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .about-origin-hero { padding: 80px 22px 64px; }
}

/* ── Contact page ───────────────────────────────────────────────────────── */
.contact-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.contact-role-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--rule);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
}
.contact-role-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.08);
}
.contact-role-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.1);
  background: #f0f6ff;
}
.contact-role-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-role-card__icon svg { width: 20px; height: 20px; }
.contact-role-card__title { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.3; margin-bottom: 2px; }
.contact-role-card__sub   { font-size: 12px; color: var(--mid); line-height: 1.4; }
.contact-role-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 600;
  background: var(--blue);
  color: white;
  padding: 2px 8px;
  border-radius: 980px;
}

/* Form wrapper */
.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.contact-form-header { margin-bottom: 36px; }
.contact-form-header__sub { margin-top: 8px; }
.contact-form-title.hidden { display: none; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-form__field:last-of-type { margin-bottom: 0; }
.contact-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}
.contact-form__req { color: var(--blue); }
.contact-form__input {
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.contact-form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}
.contact-form__input::placeholder { color: var(--light); }
.contact-form__select { cursor: pointer; }
.contact-form__textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

.contact-form__radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--offwhite);
  border-radius: 10px;
  border: 1.5px solid var(--rule);
}
.contact-form__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
}
.contact-form__radio input[type="radio"] { accent-color: var(--blue); width: 16px; height: 16px; }

.contact-form__actions { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-form__note { font-size: 12px; color: var(--light); }

/* Success state */
.contact-form__success {
  text-align: center;
  padding: 48px 24px;
}
.contact-form__success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-form__success h3 { font-size: 22px; font-weight: 600; color: var(--dark); }
.contact-form__success p  { font-size: 15px; color: var(--mid); }

.hidden { display: none !important; }

@media (max-width: 900px) {
  .contact-roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .contact-roles { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
}
