/* ============================================================
   TSY Innovations — Clean White Stylesheet
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: #ffffff;
  color: #0d1a3e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --navy:       #0d1a3e;
  --navy-mid:   rgba(13, 26, 62, 0.5);
  --navy-faint: rgba(13, 26, 62, 0.06);
  --blue:       #1a3ecf;
  --blue-hover: #1432b0;
  --border:     rgba(13, 26, 62, 0.1);
  --bg:         #ffffff;
  --bg-2:       #f7f9fc;
  --hdr:        64px;
  --ease:       0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Container ──────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── Shared ─────────────────────────────────────────────────── */
.section      { padding-block: 7rem; border-top: 1px solid var(--border); }
.section-alt  { background: var(--bg-2); }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 1.5rem;
}
.tag-light { color: rgba(255,255,255,0.55); }

.h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.sub {
  font-size: 1rem;
  color: var(--navy-mid);
  line-height: 1.8;
  max-width: 540px;
  margin-top: 1rem;
}

.body {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--navy-mid);
}
.body + .body { margin-top: 1.1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-fill, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  border: none;
  transition: background var(--ease), box-shadow var(--ease),
              color var(--ease), border-color var(--ease);
}
.btn-fill:focus-visible,
.btn-outline:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.btn-fill {
  background: var(--navy);
  color: #fff;
}
.btn-fill:hover {
  background: #1a2a5c;
  box-shadow: 0 4px 20px rgba(13, 26, 62, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy-mid);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(13, 26, 62, 0.35);
  color: var(--navy);
  background: var(--navy-faint);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--hdr);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  transition: opacity var(--ease);
}
.logo-link:hover { opacity: 0.65; }

.logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-text span { font-weight: 400; color: var(--navy-mid); }

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--navy-mid);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.nav-a:hover { color: var(--navy); background: var(--navy-faint); }

.nav-cta {
  margin-left: 0.75rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background var(--ease), box-shadow var(--ease);
}
.nav-cta:hover {
  background: #1a2a5c;
  box-shadow: 0 4px 14px rgba(13,26,62,0.2);
}

/* Mobile */
.mob-toggle { display: none; }
.mob-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.mob-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.mob-menu {
  display: none;
  position: fixed;
  top: var(--hdr);
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(100vh - var(--hdr));
  background-color: #ffffff;
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 998;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mob-menu .nav-a {
  font-size: 1.05rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mob-menu .nav-cta {
  margin-top: 1rem;
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.mob-toggle:checked ~ .mob-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mob-toggle:checked ~ .mob-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-toggle:checked ~ .mob-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mob-toggle:checked ~ .mob-menu { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--hdr));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

/* Subtle dot grid */
.hero-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13,26,62,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-noise { display: none; }

.hero-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 4rem;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 2.5rem;
}

.hero-q {
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
  line-height: 1.42;
  letter-spacing: -0.025em;
  max-width: 800px;
}

.hero-attr {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--navy-mid);
  letter-spacing: 0.06em;
}

.hero-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 3rem;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(13,26,62,0.3), transparent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 6rem;
  align-items: start;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.3rem; }

.stat strong {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-mid);
}

/* ============================================================
   FOCUS AREAS
   ============================================================ */
.section-hd { margin-bottom: 3.5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card {
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background var(--ease);
}
.card:hover { background: var(--bg-2); }

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  opacity: 0.7;
  flex-shrink: 0;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--navy-mid);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  position: relative;
  padding-block: 8rem;
  background: var(--navy);
  overflow: hidden;
}

/* Subtle dot grid on dark bg */
.contact-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.contact-wrap { position: relative; }

.contact-h {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.055em;
  line-height: 1;
  margin-top: 0.5rem;
}

.contact-sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 460px;
  margin-top: 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  font-size: clamp(0.97rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: #fff;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  padding-bottom: 0.3rem;
  transition: border-color var(--ease), gap var(--ease);
}
.contact-email:hover { border-color: rgba(255,255,255,0.8); gap: 1rem; }

.contact-email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--ease);
}
.contact-email:hover svg { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080f24;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 1.75rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand img { opacity: 0.45; object-fit: contain; }
.footer-brand span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.22);
  line-height: 1.5;
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mob-btn { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding-block: 4.5rem; }
  .contact-section { padding-block: 5rem; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-fill,
  .hero-btns .btn-outline { width: 100%; justify-content: center; }
  .contact-h { font-size: 2.8rem; }
  .stats { gap: 1.5rem; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}
