/* Tekknows core styles - dark default, light optional */
:root {
  --tk-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;
  --tk-bg: #050814;
  --tk-bg-soft: #0b1020;
  --tk-bg-alt: #101523;
  --tk-border-soft: rgba(255, 255, 255, 0.06);
  --tk-text: #f5f7ff;
  --tk-text-soft: #b8bfd9;
  --tk-accent: #0077cc;
  --tk-accent-soft: #00c2ff;
  --tk-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  --tk-bg: #f3f4f7;
  --tk-bg-soft: #ffffff;
  --tk-bg-alt: #e6e7ec;
  --tk-border-soft: rgba(0, 0, 0, 0.06);
  --tk-text: #111318;
  --tk-text-soft: #5b6070;
  --tk-shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tk-font-sans);
  background: radial-gradient(circle at top left, #0f172a 0, var(--tk-bg) 45%);
  color: var(--tk-text);
  min-height: 100vh;
}

/* Layout */

.tk-container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.tk-section {
  padding: 4.5rem 0;
}

.tk-section-alt {
  background: var(--tk-bg-alt);
}

/* Header & nav */

.tk-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
      to bottom,
      rgba(5, 8, 20, 0.95),
      rgba(5, 8, 20, 0.8),
      transparent
    );
  border-bottom: 1px solid var(--tk-border-soft);
}

[data-theme="light"] .tk-header {
  background: linear-gradient(
      to bottom,
      rgba(243, 244, 247, 0.96),
      rgba(243, 244, 247, 0.9),
      transparent
    );
}

.tk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.tk-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.tk-logo-mark {
  height: 32px;
  width: auto;
}

.tk-logo-wordmark {
  height: 18px;
  width: auto;
}

.tk-logo-text {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tk-text);
}


.tk-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tk-nav-link {
  text-decoration: none;
  color: var(--tk-text-soft);
  font-size: 0.92rem;
  position: relative;
}

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

.tk-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.2rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--tk-accent), var(--tk-accent-soft));
  transition: transform 0.18s ease-out;
}

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

.tk-nav-cta {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--tk-accent);
}

/* Theme toggle */

.tk-theme-toggle {
  margin-left: 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--tk-border-soft);
  background: transparent;
  color: var(--tk-text-soft);
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.tk-theme-toggle:hover {
  color: var(--tk-text);
}

/* Mobile nav toggle */

.tk-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.tk-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--tk-text);
}

/* Hero */

.tk-hero {
  padding-top: 4.5rem;
}

.tk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.tk-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--tk-accent-soft);
  margin: 0 0 0.5rem;
}

.tk-hero h1 {
  font-size: clamp(2.4rem, 3.1vw + 1rem, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.tk-hero-sub {
  max-width: 34rem;
  color: var(--tk-text-soft);
  font-size: 1rem;
}

.tk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.tk-btn-primary {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-soft));
  color: #ffffff;
  box-shadow: var(--tk-shadow-soft);
}

.tk-btn-primary:hover {
  transform: translateY(-1px);
}

.tk-btn-ghost {
  background: transparent;
  border-color: var(--tk-border-soft);
  color: var(--tk-text-soft);
}

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

.tk-hero-points {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--tk-text-soft);
  font-size: 0.92rem;
}

.tk-hero-points li + li {
  margin-top: 0.25rem;
}

/* Hero visual */

.tk-hero-visual {
  position: relative;
}

.tk-hero-card {
  background: radial-gradient(circle at top left, #172554 0, #020617 55%);
  border-radius: 1.5rem;
  padding: 1.5rem 1.7rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

[data-theme="light"] .tk-hero-card {
  background: #ffffff;
  box-shadow: var(--tk-shadow-soft);
}

.tk-hero-card h2 {
  font-size: 1.1rem;
  margin: 0.2rem 0 0.6rem;
}

.tk-hero-card p {
  font-size: 0.92rem;
  color: var(--tk-text-soft);
}

.tk-hero-grid-overlay {
  position: absolute;
  inset: -1.5rem;
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.09) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.09) 1px,
      transparent 1px
    );
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at top left, black, transparent 70%);
  pointer-events: none;
}

/* Generic grid */

.tk-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Lists & pills */

.tk-list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--tk-text-soft);
  font-size: 0.95rem;
}

.tk-list-check li::before {
  content: "✓";
  color: var(--tk-accent-soft);
  margin-right: 0.5rem;
}

.tk-service-pills {
  display: grid;
  gap: 0.8rem;
}

.tk-pill {
  background: var(--tk-bg-alt);
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--tk-border-soft);
}

[data-theme="light"] .tk-pill {
  background: var(--tk-bg-soft);
}

.tk-pill-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tk-accent-soft);
}

/* Services */

.tk-section-header h2 {
  margin-top: 0.2rem;
}

.tk-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.tk-service-card {
  display: block;
  padding: 1.2rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--tk-border-soft);
  background: radial-gradient(circle at top left, #020617 0, var(--tk-bg-alt) 60%);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out,
    border-color 0.14s ease-out;
}

[data-theme="light"] .tk-service-card {
  background: var(--tk-bg-soft);
}

.tk-service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.tk-service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--tk-text-soft);
}

.tk-service-card::after {
  content: "→";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 1rem;
  color: var(--tk-accent-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.tk-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tk-shadow-soft);
  border-color: var(--tk-accent-soft);
}

.tk-service-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Solutions */

.tk-solutions {
  gap: 1.5rem;
}

.tk-sol-card {
  background: var(--tk-bg-alt);
  border-radius: 1.4rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--tk-border-soft);
}

[data-theme="light"] .tk-sol-card {
  background: var(--tk-bg-soft);
}

.tk-link {
  color: var(--tk-accent-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.tk-link:hover {
  text-decoration: underline;
}

/* Steps */

.tk-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.tk-step {
  padding: 1.1rem 1rem;
  border-radius: 1rem;
  border: 1px dashed var(--tk-border-soft);
}

.tk-step-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tk-accent-soft);
  display: inline-block;
  margin-bottom: 0.4rem;
}

/* CTA */

.tk-section-cta {
  background: radial-gradient(circle at top left, #172554 0, #020617 60%);
}

[data-theme="light"] .tk-section-cta {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #f9fafb;
}

.tk-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.tk-cta-inner p {
  max-width: 32rem;
}

.tk-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Footer */

.tk-footer {
  background: #020617;
  border-top: 1px solid var(--tk-border-soft);
  margin-top: 3rem;
}

.tk-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding: 2.8rem 0 2rem;
}

.tk-footer-tagline {
  max-width: 20rem;
  color: var(--tk-text-soft);
  font-size: 0.9rem;
}

.tk-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.tk-footer h4 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.tk-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.tk-footer a {
  color: var(--tk-text-soft);
  text-decoration: none;
}

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

.tk-footer li + li {
  margin-top: 0.3rem;
}

.tk-footer-bottom {
  border-top: 1px solid var(--tk-border-soft);
  padding: 0.6rem 0;
  font-size: 0.8rem;
  color: var(--tk-text-soft);
}

/* Typographic basics */

h1, h2, h3, h4 {
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 0.8rem;
}

.tk-text-small {
  font-size: 0.82rem;
  color: var(--tk-text-soft);
}

/* Forms */

.tk-support-form,
.tk-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.tk-support-form label,
.tk-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.tk-support-form input,
.tk-support-form select,
.tk-support-form textarea,
.tk-contact-form input,
.tk-contact-form select,
.tk-contact-form textarea {
  border-radius: 0.55rem;
  border: 1px solid var(--tk-border-soft);
  background: var(--tk-bg-soft);
  color: var(--tk-text);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

[data-theme="light"] .tk-support-form input,
[data-theme="light"] .tk-support-form select,
[data-theme="light"] .tk-support-form textarea,
[data-theme="light"] .tk-contact-form input,
[data-theme="light"] .tk-contact-form select,
[data-theme="light"] .tk-contact-form textarea {
  background: #ffffff;
  color: #111827;
}

.tk-support-form textarea,
.tk-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Preloader */

#tk-preloader {
  position: fixed;
  inset: 0;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#tk-preloader.tk-preloader-hide {
  opacity: 0;
  visibility: hidden;
}

.tk-preloader-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-preloader-logo img {
  width: 80px;
  height: auto;
  display: block;
}

.tk-preloader-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-top-color: #38bdf8;
  animation: tk-spin 1.6s linear infinite;
}

@keyframes tk-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .tk-hero-grid,
  .tk-grid-two,
  .tk-cta-inner,
  .tk-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-hero-grid {
    gap: 2rem;
  }

  .tk-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .tk-nav {
    position: fixed;
    inset-inline: 0;
    top: 52px;
    background: var(--tk-bg-soft);
    padding: 0.8rem 1.25rem 1.2rem;
    border-bottom: 1px solid var(--tk-border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    transform: translateY(-120%);
    transition: transform 0.22s ease-out;
  }

  .tk-header.tk-nav-open .tk-nav {
    transform: translateY(0);
  }

  .tk-nav-toggle {
    display: flex;
  }

  .tk-theme-toggle {
    margin-left: 0.6rem;
  }
}

/* Form alerts */
.tk-alert {
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.tk-alert-success {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

.tk-alert-error {
  background: rgba(185, 28, 28, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

[data-theme="light"] .tk-alert-success {
  background: #ecfdf5;
  border-color: #16a34a;
  color: #14532d;
}

[data-theme="light"] .tk-alert-error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
}
