/* Tekqori Technologies - static landing page styles */

:root {
  --bg: #ffffff;
  --bg-blur: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --heading: #0f172a;
  --strong: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #94a3b8;
  --card-bg: #ffffff;
  --accent: #0f766e;
  --accent-quote: #0d9488;
  --btn-bg: #0b1e3a;
  --btn-bg-hover: #12405f;
  --btn-text: #ffffff;
  --btn-ghost-border: #cbd5e1;
  --btn-ghost-text: #334155;
  --ring: rgba(13, 148, 136, 0.4);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 10px 24px -12px rgba(11, 30, 58, 0.22);
  --shadow-btn: 0 8px 18px -10px rgba(11, 30, 58, 0.45);
  --logo-light: 1;
  --logo-dark: 0;
}

html.dark {
  --bg: #0a0f17;
  --bg-blur: rgba(10, 15, 23, 0.9);
  --text: #e2e8f0;
  --heading: #f8fafc;
  --strong: #f1f5f9;
  --body: #94a3b8;
  --muted: #64748b;
  --border: #1e293b;
  --border-strong: #475569;
  --card-bg: rgba(15, 23, 42, 0.4);
  --accent: #2dd4bf;
  --accent-quote: #14b8a6;
  --btn-bg: #14b8a6;
  --btn-bg-hover: #2dd4bf;
  --btn-text: #06121f;
  --btn-ghost-border: #334155;
  --btn-ghost-text: #e2e8f0;
  --ring: rgba(45, 212, 191, 0.4);
  --shadow-card: 0 1px 2px rgba(2, 6, 12, 0.4);
  --shadow-lift: 0 12px 28px -14px rgba(2, 6, 12, 0.85);
  --shadow-btn: 0 10px 22px -12px rgba(20, 184, 166, 0.5);
  --logo-light: 0;
  --logo-dark: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color 150ms ease, color 150ms ease;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
  border-radius: 6px;
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
  scroll-margin-top: 148px;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.divider {
  height: 1px;
  width: 100%;
  background-color: var(--border);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
}

.grid-two.center {
  align-items: center;
}

.grid-two.top {
  align-items: start;
}

.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

.grid-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- typography ---------- */

.label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-muted {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
}

h1 {
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

.max-xl {
  max-width: 36rem;
}

.max-2xl {
  max-width: 42rem;
}

.body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--body);
}

.body-sm {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--body);
}

.item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--strong);
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.card-summary {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

blockquote {
  margin: 0;
  border-left: 2px solid var(--accent-quote);
  padding-left: 16px;
  font-size: 16px;
  font-style: italic;
  color: var(--body);
  max-width: 36rem;
}

/* ---------- cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card-bg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 240ms ease, background-color 150ms ease;
}

.card.wide {
  gap: 24px;
  width: 100%;
}

.card.service {
  gap: 10px;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

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

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-layer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.arch-layer:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.diff-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease, transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 200ms ease;
  cursor: pointer;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: none;
}

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

.btn-primary:hover {
  background-color: var(--btn-bg-hover);
}

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

.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--heading);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-bar {
  display: flex;
  height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  border-radius: 6px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 112px;
  width: auto;
  flex-shrink: 0;
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.logo-link:hover .logo {
  transform: translateY(-1px);
}

.logo-link:active .logo {
  transform: translateY(0) scale(0.995);
}

.logo img {
  height: 112px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  user-select: none;
  transition: opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.logo .logo-dark {
  position: absolute;
  left: 0;
  top: 0;
}

.logo .logo-light {
  opacity: var(--logo-light);
}

.logo .logo-dark {
  opacity: var(--logo-dark);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 150ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 1px;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-link:hover {
  color: var(--heading);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease,
    transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 200ms ease;
}

.icon-button:hover {
  color: var(--heading);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.icon-button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: none;
}

.icon-button svg {
  height: 16px;
  width: 16px;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 200ms ease;
}

#theme-toggle:hover svg {
  transform: rotate(-14deg);
}

#menu-button[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.menu-button svg {
  height: 20px;
  width: 20px;
}

.contact-pill {
  display: none;
  align-items: center;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--strong);
  transition: border-color 150ms ease,
    transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 200ms ease;
}

.contact-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.contact-pill:active {
  transform: translateY(0) scale(0.985);
  box-shadow: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}

.mobile-nav.open {
  display: flex;
  animation: menu-in 260ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.mobile-nav a {
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--strong);
  transition: color 150ms ease, transform 200ms ease;
}

.mobile-nav a:hover {
  color: var(--heading);
  transform: translateX(2px);
}

.mobile-nav.open a {
  animation: menu-item-in 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.mobile-nav.open a:nth-child(2) {
  animation-delay: 40ms;
}

.mobile-nav.open a:nth-child(3) {
  animation-delay: 80ms;
}

.mobile-nav.open a:nth-child(4) {
  animation-delay: 120ms;
}

.mobile-nav.open a:nth-child(5) {
  animation-delay: 160ms;
}

.mobile-nav a.email {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- contact + footer ---------- */

.contact-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  transition: border-color 150ms ease,
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.contact-row:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.contact-row-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.location {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .copy {
  margin: 0;
  font-size: 12px;
  color: var(--body);
}

.site-footer a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 150ms ease;
}

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

/* ---------- motion ---------- */

/* `js-motion` is added to <html> before first paint only when JavaScript is
   available and the visitor has not asked for reduced motion, so content is
   never hidden without a way to reveal it. */
html.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #hero-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .header-bar {
    height: 144px;
  }

  .logo,
  .logo img {
    height: 128px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .card.wide {
    padding: 32px;
  }

  .actions {
    flex-direction: row;
  }

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

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

  .contact-pill {
    display: inline-flex;
  }

  .mobile-nav {
    padding-left: 32px;
    padding-right: 32px;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
  }

  .header-actions {
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

@media (min-width: 1024px) {
  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
  }

  .grid-principles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 48px;
  }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  html.js-motion .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .card.service:hover,
  .btn:hover,
  .btn:active,
  .icon-button:hover,
  .icon-button:active,
  .contact-pill:hover,
  .contact-pill:active,
  .contact-row:hover,
  .mobile-nav a:hover,
  .logo-link:hover .logo,
  .logo-link:active .logo,
  #theme-toggle:hover svg,
  #menu-button[aria-expanded="true"] svg {
    transform: none !important;
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after {
    transform: scaleX(1) !important;
  }

  .mobile-nav.open,
  .mobile-nav.open a {
    animation: none !important;
  }
}