/* ============================================================
   WeTalkingTech Labs — Company Homepage
   ============================================================ */

/* ------------------------------------------------------------
   DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand — fixed, never change with theme */
  --teal-fixed: hsl(194, 66%, 24%);   /* for backgrounds that stay dark (sidebar, etc.) */
  --amber-fixed: hsl(39, 73%, 49%);

  /* Interactive brand — lighten in dark mode for readability */
  --teal:         hsl(194, 66%, 24%);
  --amber:        hsl(39, 73%, 49%);
  --amber-hover:  hsl(39, 73%, 42%);

  /* Contextual — flip in dark mode */
  --c-bg:         #FFFFFF;
  --c-bg-alt:     #FAFAFA;
  --c-surface:    #FFFFFF;
  --c-border:     #E4E4E7;
  --c-border-sub: #F4F4F5;
  --c-text:       #0A0A0A;
  --c-text-2:     #71717A;
  --c-text-3:     #A1A1AA;
  --c-text-4:     #52525B;
  --c-text-5:     #3F3F46;
  --c-nav-bg:     rgba(255, 255, 255, 0.88);
  --c-teal-bg:    hsl(194, 40%, 94%);
  --c-amber-bg:   hsl(39, 73%, 95%);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
}

[data-theme="dark"] {
  --teal:        hsl(194, 60%, 58%);
  --amber:       hsl(39, 88%, 62%);
  --amber-hover: hsl(39, 88%, 54%);

  --c-bg:         #0C0C0D;
  --c-bg-alt:     #111113;
  --c-surface:    #18181B;
  --c-border:     #27272A;
  --c-border-sub: #1C1C1F;
  --c-text:       #F4F4F5;
  --c-text-2:     #A1A1AA;
  --c-text-3:     #71717A;
  --c-text-4:     #D4D4D8;
  --c-text-5:     #E4E4E7;
  --c-nav-bg:     rgba(12, 12, 13, 0.92);
  --c-teal-bg:    hsl(194, 55%, 13%);
  --c-amber-bg:   hsl(39, 55%, 12%);
  color-scheme: dark;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Smooth theme switch — applied briefly via JS */
html.switching,
html.switching *,
html.switching *::before,
html.switching *::after {
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.2s ease,
    box-shadow 0.28s ease !important;
}

/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px hsla(39, 73%, 49%, 0.28);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 14px;
}
.section-subtitle { font-size: 16px; color: var(--c-text-2); line-height: 1.65; }

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse     { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes glowPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.animate      { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.a-d1         { animation-delay: 0.08s; }
.a-d2         { animation-delay: 0.18s; }
.a-d3         { animation-delay: 0.28s; }
.a-d4         { animation-delay: 0.38s; }

.reveal         { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1      { transition-delay: 0.08s; }
.reveal-d2      { transition-delay: 0.16s; }
.reveal-d3      { transition-delay: 0.24s; }
.reveal-d4      { transition-delay: 0.32s; }

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--c-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-sub);
  transition: box-shadow 0.3s ease;
}
.nav--scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); }
[data-theme="dark"] .nav--scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--teal);
  flex-shrink: 0;
}
.nav__logo span { color: var(--amber); }
.nav__logo img  { width: 28px; height: 28px; flex-shrink: 0; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__links a { font-size: 14px; font-weight: 500; color: var(--c-text-4); transition: color 0.15s; }
.nav__links a:hover { color: var(--c-text); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--c-text); }
.nav__mobile-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  background: none;
  cursor: pointer;
  color: var(--c-text-2);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--c-bg-alt); color: var(--c-text); }
.theme-toggle svg { width: 15px; height: 15px; pointer-events: none; display: block; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  padding: 148px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center top, hsl(194, 40%, 93%) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 9s ease-in-out infinite;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at center top, hsl(194, 55%, 10%) 0%, transparent 65%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  padding: 5px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.2s ease infinite;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: 20px;
}
.hero__title em { font-style: italic; color: var(--teal); }
.hero__desc {
  font-size: 18px;
  line-height: 1.72;
  color: var(--c-text-2);
  max-width: 500px;
  margin: 0 auto 40px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--r);
  background: var(--amber);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
}
.hero__cta:hover { background: var(--amber-hover); transform: translateY(-1px); box-shadow: 0 4px 16px hsla(39,73%,49%,.28); }
.hero__cta svg { width: 15px; height: 15px; transition: transform 0.18s; }
.hero__cta:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------
   PRODUCTS
   ------------------------------------------------------------ */
.products { padding: 80px 0 96px; background: var(--c-bg-alt); }
.products__header { text-align: center; margin-bottom: 52px; }
.products__header .section-subtitle { max-width: 440px; margin: 0 auto; }
.products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .product-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.product-card--featured { border-color: var(--teal-fixed); }

.product-card__status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.product-card__status--active { background: var(--c-amber-bg); color: var(--amber-hover); }
.product-card__status--planned { background: var(--c-teal-bg); color: var(--teal); }

.product-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-teal-bg);
  border-radius: 11px;
  margin-bottom: 18px;
  color: var(--teal);
  transition: transform 0.25s ease;
}
.product-card__icon svg { width: 22px; height: 22px; }
.product-card:hover .product-card__icon { transform: translateY(-3px) scale(1.06); }
.product-card__name { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin-bottom: 4px; color: var(--c-text); }
.product-card__tagline { font-size: 14px; color: var(--c-text-3); margin-bottom: 14px; font-style: italic; }
.product-card__desc { font-size: 15px; color: var(--c-text-2); line-height: 1.65; margin-bottom: 24px; }
.product-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--teal); transition: gap 0.18s; }
.product-card__link:hover { gap: 10px; }
.product-card__link svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.about { padding: 96px 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__content .section-label,
.about__content .section-title { text-align: left; }
.about__text { font-size: 16px; color: var(--c-text-2); line-height: 1.75; margin-bottom: 16px; }

.about__values { display: flex; flex-direction: column; gap: 18px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value__icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-amber-bg);
  border-radius: 9px;
  flex-shrink: 0;
  color: var(--amber);
  transition: transform 0.25s ease;
}
.value__icon svg { width: 17px; height: 17px; }
.value:hover .value__icon { transform: rotate(-8deg) scale(1.1); }
.value__title { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: var(--c-text); }
.value__desc { font-size: 14px; color: var(--c-text-2); line-height: 1.55; }

/* ------------------------------------------------------------
   CONTACT  (always-dark section — does not invert)
   ------------------------------------------------------------ */
.contact { padding: 80px 0; background: #0A0A0A; }
[data-theme="dark"] .contact { background: #000; }
.contact__inner { text-align: center; max-width: 480px; margin: 0 auto; }
.contact .section-label   { color: var(--amber); }
.contact .section-title   { color: #F4F4F5; margin-bottom: 10px; }
.contact .section-subtitle { color: #A1A1AA; margin-bottom: 36px; }
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--amber);
  padding: 15px 28px;
  border: 1px solid #27272A;
  border-radius: var(--r-lg);
  transition: border-color 0.2s, background-color 0.2s;
}
.contact__email:hover { border-color: var(--amber); background: rgba(217, 149, 43, 0.06); }
.contact__email svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer { padding: 40px 0; border-top: 1px solid var(--c-border-sub); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__left { display: flex; flex-direction: column; gap: 3px; }
.footer__logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--teal); }
.footer__logo span { color: var(--amber); }
.footer__logo img  { width: 22px; height: 22px; }
.footer__copy { font-size: 13px; color: var(--c-text-3); }
.footer__links { display: flex; gap: 24px; list-style: none; }
.footer__links a { font-size: 13px; color: var(--c-text-3); transition: color 0.2s; }
.footer__links a:hover { color: var(--c-text-4); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--c-nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-border-sub);
    padding: 20px 24px;
    gap: 16px;
    animation: fadeIn 0.2s ease;
  }
  .hero { padding: 112px 0 80px; }
  .products__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
