/* =========================================================
   U Square Technologies Limited — Site Stylesheet
   ========================================================= */

:root {
  --primary-500: #1877c9;
  --primary-600: #0e5fae;
  --primary-700: #0a4a8a;
  --primary-50: #eaf2fc;
  --navy-900: #081b34;
  --navy-800: #0b2544;
  --gray-900: #16212f;
  --gray-700: #45536a;
  --gray-600: #5b6b7f;
  --gray-300: #d7e0ec;
  --gray-100: #eef2f7;
  --gray-50: #f7f9fc;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(10, 30, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 30, 60, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 30, 60, 0.16);

  --container-w: 1180px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: currentColor; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.btn-outline:hover { border-color: var(--primary-500); color: var(--primary-600); }

.btn-light {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: var(--shadow-md);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-900);
}
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.brand-name em { font-style: normal; color: var(--primary-600); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list a {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}
.nav-list a:hover { color: var(--primary-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--primary-50), transparent),
              linear-gradient(180deg, var(--gray-50), var(--white));
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  display: inline-block;
  color: var(--primary-600);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-badges li {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-media { position: relative; }
.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-900);
  padding: 26px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-inner p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
}
.trust-tags { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-tags span {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.section-lead { color: var(--gray-600); font-size: 17px; }
.section-head.light .eyebrow { color: #8fc2ff; }
.section-head.light h2 { color: var(--white); }

/* ---------- Features ---------- */
.features { padding: 100px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; fill: #fff; }
.feature-card h3 { font-size: 18px; color: var(--navy-900); }
.feature-card p { color: var(--gray-600); font-size: 15px; margin-bottom: 0; }

/* ---------- Products ---------- */
.products { padding: 40px 0 100px; background: var(--gray-50); }
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-100);
}
.product-row:last-child { border-bottom: none; }
.product-row.reverse .product-media { order: 2; }
.product-row.reverse .product-copy { order: 1; }

.product-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.product-img-tall { max-width: 340px; margin: 0 auto; }

.tag {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--navy-900); }
.product-copy p { color: var(--gray-600); font-size: 16px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- How it works ---------- */
.how-it-works {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  padding: 100px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 30px 24px;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), #46a3ff);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { color: #fff; font-size: 17px; }
.step p { color: rgba(255,255,255,0.65); font-size: 14.5px; margin-bottom: 0; }

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-copy h2 { color: var(--navy-900); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about-copy p { color: var(--gray-600); font-size: 16px; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
}
.about-facts h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary-600);
  margin-bottom: 6px;
}
.about-facts p { color: var(--navy-900); font-weight: 600; font-size: 15px; margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  padding: 70px 0;
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 16px; color: var(--navy-900); }
.contact-card p { color: var(--gray-600); font-size: 15px; margin-bottom: 0; }
.contact-card a { color: var(--primary-600); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding: 70px 24px 50px;
}
.footer-logo { width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,0.55); max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-address li { color: rgba(255,255,255,0.7); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .product-row, .product-row.reverse { grid-template-columns: 1fr; }
  .product-row.reverse .product-media,
  .product-row.reverse .product-copy { order: initial; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav-list a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-cta { margin-top: 16px; width: 100%; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .header-inner { height: 68px; }
  .brand-name { font-size: 16px; }
  .hero { padding: 56px 0 60px; }
  .features, .about, .contact { padding: 70px 0; }
  .products { padding: 20px 0 70px; }
  .how-it-works { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 56px 24px 40px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
