/* ==========================================================================
   Techroad Global — site stylesheet
   Built section by section. Only the hero is implemented so far.
   ========================================================================== */

:root{
  --brand: #4064d7;
  --brand-dark: #2d4bb0;
  --text: #14161f;
  --text-dim: #565b6e;
  --radius: 16px;
  --container: 1320px;
  --ease: cubic-bezier(.16,1,.3,1);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection{
  background: var(--brand);
  color: #ffffff;
}

/* Keyboard-navigation focus ring; mouse/touch clicks stay clean */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar{ width: 11px; }
::-webkit-scrollbar-track{ background: #f2f3f8; }
::-webkit-scrollbar-thumb{
  background: #c3cbe8;
  border-radius: 999px;
  border: 3px solid #f2f3f8;
}
::-webkit-scrollbar-thumb:hover{ background: var(--brand); }
html{ scrollbar-color: #c3cbe8 #f2f3f8; scrollbar-width: thin; }

#services, #help, #products, #talk{ scroll-margin-top: 96px; }

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

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled{
  padding: 14px 0;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -14px rgba(20,22,40,0.25);
}
.site-header.scrolled .brand{ color: var(--text); }

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  white-space: nowrap;
}

.brand .mark{
  width: 34px;
  height: 34px;
  background: #ffffff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid lightblue;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-main{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-sub{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .72;
  margin-top: 2px;
  text-align: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}

.btn-light{
  background: #ffffff;
  color: var(--brand);
}
.btn-light:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.35);
}

.btn-solid{
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.45);
}
.btn-solid:hover{
  transform: translateY(-2px);
  background: var(--brand-dark);
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: var(--brand);
  overflow: hidden;
  min-height: 550px;
}

.hero-media{
  position: absolute;
  inset: 0;
  left: 54%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  background: var(--brand);
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-content{
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 150px;
}

.hero-text{
  max-width: 620px;
}

.hero-content h1{
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  overflow-wrap: break-word;
  margin: 0 0 24px;
}

.hero-content p{
  font-size: 1.08rem;
  color: rgba(255,255,255,0.86);
  max-width: 46ch;
  margin: 0 0 36px;
}

/* ---------- Services ---------- */
.services{
  position: relative;
  z-index: 5;
  margin-top: -50px;
  padding: 0 0 90px;
}

.services-card{
  border: 1px solid rgba(20,22,40,0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -35px rgba(20,22,40,0.18);
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid rgba(20,22,40,0.08);
}

.service-item{
  padding: 48px 40px;
  text-align: center;
  border-left: 1px solid rgba(20,22,40,0.08);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-item:first-child{ border-left: none; }

.service-item:hover{
  background: #ffffff;
  transform: translateY(-8px);
  box-shadow: 0 24px 44px -28px rgba(20,22,40,0.28);
  position: relative;
  z-index: 1;
}

.service-icon{
  width: 78px;
  height: 78px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.service-icon svg{
  width: 34px;
  height: 34px;
}

.service-item:hover .service-icon{
  background: var(--brand-dark);
  transform: scale(1.08);
}

.service-item h3{
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.service-item p{
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- How We Help ---------- */
.help{
  padding: 30px 0 100px;
}

.help-head{
  text-align: center;
  margin: 0 0 48px;
}

.pill{
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--brand);
  background: #ffffff;
  border: 1px solid rgba(64,100,215,0.28);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 20px;
}

/* ---------- Shared heading style ---------- */
.help-head h2,
.products-head h2{
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.accent{ color: var(--brand); }

.accent-invert{
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.45);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.help-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-card{
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(20,22,40,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.help-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(20,22,40,0.28);
}

.help-media{
  position: relative;
  height: 168px;
  overflow: hidden;
  background: #eef1fb;
  color: var(--brand);
}
.help-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.help-card:hover .help-media img{
  transform: scale(1.06);
}

.help-badge{
  position: absolute;
  left: 20px;
  top: 140px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(20,22,40,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-badge svg{ width: 22px; height: 22px; }

.help-body{ padding: 36px 24px 24px; }

.help-body h3{
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.help-body p{
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.read-more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.read-more span{ transition: transform .2s var(--ease); }
.read-more:hover{ color: var(--brand); gap: 10px; }

/* ---------- Products ---------- */
.products{
  padding: 30px 0 100px;
  background: #f7f8fc;
}

.products-head{
  text-align: center;
  margin: 0 0 48px;
}


.products-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card{
  background: #ffffff;
  border: 1px solid rgba(20,22,40,0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(20,22,40,0.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -26px rgba(20,22,40,0.28);
}

.product-media{
  position: relative;
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid rgba(20,22,40,0.07);
}

.product-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transition: transform .5s var(--ease);
}

.product-body{
  padding: 22px 24px 24px;
}

.product-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.product-info{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-name{
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  width: fit-content;
  transition: color .2s var(--ease);
}
.product-name:hover{ color: var(--brand); }

.product-tagline{
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-points{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.product-points li{
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: #f4f6fb;
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Tech Stack ---------- */
.stack{
  padding: 90px 0;
}

.stack-flex{
  display: flex;
  align-items: center;
  gap: 64px;
}

.stack-intro{
  flex: 0 0 400px;
}

.stack-intro h2{
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.stack-stats{
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat + .stat{
  padding-left: 24px;
  border-left: 1px solid rgba(20,22,40,0.12);
}

.stat-num{
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.stat-label{
  font-size: 1rem;
  color: var(--text-dim);
}

.stack-logos{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-row{ overflow: hidden; }

.marquee-track{
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-row-reverse .marquee-track{
  animation-direction: reverse;
  animation-duration: 34s;
}
.marquee-row:hover .marquee-track{
  animation-play-state: paused;
}

.stack-card{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
}

.stack-card img{
  max-width: 95%;
  max-height: 95%;
  width: auto;
  object-fit: contain;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.stack-card:hover img{
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}

@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- Contact ---------- */
.contact{
  padding: 30px 0 110px;
}

.contact-panel{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 2px 30px 60px 5px rgba(20, 22, 40, 0.22);
}

.contact-info{
  background: var(--brand);
  color: #ffffff;
  padding: 56px 48px;
}

.pill-light{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}

.contact-info h2{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.contact-info p{
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
  max-width: 38ch;
  margin: 0 0 36px;
}

.contact-detail{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.contact-detail .ico{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail .ico svg{ width: 18px; height: 18px; }

.contact-form-wrap{
  background: #ffffff;
  padding: 56px 48px;
}

#form-messages{
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
#form-messages.success{ color: #0f9d70; }
#form-messages.error{ color: #d64545; }

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full{ grid-column: 1 / -1; }

.field label{
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field textarea{
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(20,22,40,0.12);
  background: #f7f8fc;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(64,100,215,0.16);
}

.field.honeypot{
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.form-grid button{
  width: 100%;
  padding: 15px;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(20,22,40,0.08);
  padding: 15px 0;
}

.footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-dark{ color: var(--text); }
.brand-dark .mark{ background: var(--brand); color: #ffffff; }

.footer-copy{
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero{ min-height: 0; }
  .hero-media{
    position: relative;
    left: 0;
    clip-path: none;
    height: 320px;
    order: 2;
  }
  .hero-content{
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .services{ margin-top: -70px; padding: 0 0 60px; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-item{
    border-left: none;
    border-top: 1px solid rgba(20,22,40,0.08);
    padding: 40px 28px;
  }
  .service-item:first-child{ border-top: none; }

  .help{ padding: 10px 0 70px; }
  .help-grid{ grid-template-columns: 1fr 1fr; }

  .products{ padding: 10px 0 70px; }
  .products-grid{ grid-template-columns: 1fr 1fr; }
  .product-media{ height: 200px; }

  .stack{ padding: 60px 0; }
  .stack-flex{ flex-direction: column; align-items: flex-start; gap: 40px; }
  .stack-intro{ flex-basis: auto; }
  .stack-logos{ width: 100%; }

  .contact{ padding: 10px 0 70px; }
  .contact-panel{ grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap{ padding: 40px; }
}

@media (max-width: 560px){
  .site-header{ padding: 18px 0; }
  .site-header.scrolled{ padding: 12px 0; }
  .brand-main{ font-size: 16px; }
  .brand .mark{ width: 30px; height: 30px; font-size: 12px; }
  .btn{ padding: 11px 18px; font-size: 12px; }
  .hero-content{ padding-top: 110px; padding-bottom: 48px; }
  .hero-media{ height: 240px; }
  .services{ margin-top: -44px; }

  .help-grid{ grid-template-columns: 1fr; }
  .products-grid{ grid-template-columns: 1fr; }
  .product-media{ height: 200px; }
  .product-top{ flex-wrap: wrap; }

  .stack-stats{ gap: 18px; }
  .stack-logos{ gap: 20px; }
  .marquee-track{ gap: 26px; animation-duration: 20s; }
  .marquee-row-reverse .marquee-track{ animation-duration: 24s; }
  .stack-card{ height: 44px; }

  .contact-panel{ border-radius: 18px; }
  .contact-info, .contact-form-wrap{ padding: 28px; }
  .form-grid{ grid-template-columns: 1fr; }

  .footer-row{ flex-direction: column; text-align: center; }
}
