/* Tretech Solution — site styles */

:root {
  --navy: #00417a;
  --navy-700: #013363;
  --navy-900: #031c36;
  --cyan: #00b9f1;
  --cyan-600: #0099cc;
  --ink: #0d1b2a;
  --text: #3b4a5c;
  --muted: #6b7a8c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(3, 28, 54, .06), 0 2px 8px rgba(3, 28, 54, .04);
  --shadow: 0 10px 30px -10px rgba(3, 28, 54, .18);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cyan); color: var(--navy-900); }
.btn-primary:hover { background: #33c7f4; box-shadow: 0 8px 24px -8px rgba(0, 185, 241, .7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--navy); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
}
.lang-switch a {
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
}
.lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #c9d6e6;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 185, 241, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(0, 65, 122, .9), transparent 70%),
    linear-gradient(160deg, #04284d 0%, var(--navy-900) 70%);
  padding: 168px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 185, 241, .18); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 20px 0 22px; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--cyan); margin-left: -.06em; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 560px; color: #b6c6d9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-size: 14.5px; color: #9fb3ca; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

/* Hero visual: product dashboard mock */
.hero-visual { position: relative; }
.mock {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mock-bar b { margin-left: 12px; font: 500 12px var(--font); color: #8ea4bd; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 340px; }
.mock-side { padding: 16px 12px; border-right: 1px solid rgba(255, 255, 255, .08); display: grid; align-content: start; gap: 6px; }
.mock-side span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; font-size: 11.5px; color: #8ea4bd; }
.mock-side span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: currentColor; opacity: .6; }
.mock-side span.on { background: rgba(0, 185, 241, .14); color: #e6f7fe; }
.mock-side span.on::before { background: var(--cyan); opacity: 1; }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); }
.kpi small { display: block; font-size: 10.5px; color: #8ea4bd; }
.kpi strong { display: block; font: 700 17px var(--font-display); color: #fff; margin-top: 3px; }
.kpi em { font-style: normal; font-size: 10.5px; color: #5fe0a5; }
.chart { padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.chart small { font-size: 11px; color: #8ea4bd; }
.chart svg { width: 100%; height: 110px; margin-top: 6px; }
.rows { display: grid; gap: 7px; }
.row { display: grid; grid-template-columns: 1fr 70px 56px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 11px; color: #b6c6d9; }
.row i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--cyan); border-radius: inherit; }
.row b { font-weight: 600; text-align: right; color: #fff; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .45); font-size: 13px; line-height: 1.35;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e6f7fe; color: var(--navy); flex: none; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-a { left: -36px; bottom: -28px; animation: float 6s ease-in-out infinite; }
.float-b { right: -22px; top: -24px; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Capability strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 26px 24px; }
.strip p { font-size: 14px; font-weight: 600; color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px; }
.strip li {
  font: 600 14px var(--font-display); color: var(--navy); padding: 8px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--text); }
.eyebrow.dark { color: var(--navy); }
.eyebrow.dark::before { background: var(--cyan); }

/* Products */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.product {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ef; }
.product.wide { grid-column: span 3; }
.product .tag { position: absolute; top: 28px; right: 28px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), #0a5aa3); color: #fff; margin-bottom: 22px;
  box-shadow: 0 10px 20px -10px rgba(0, 65, 122, .7);
}
.icon svg { width: 26px; height: 26px; }
.product h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.product > p { margin-bottom: 20px; }
.checks { display: grid; gap: 9px; margin-top: auto; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: #e6f7fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099cc' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .icon { background: #e6f7fe; color: var(--navy); box-shadow: none; }
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { font-size: 15px; }
.service ul { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.service ul li::before { content: "— "; color: var(--cyan-600); }

/* Integrations band */
.integrations {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
  padding: 44px; border-radius: var(--radius-lg); color: #c9d6e6;
  background: radial-gradient(500px 300px at 100% 0%, rgba(0, 185, 241, .2), transparent 60%), var(--navy-900);
}
.integrations h3 { color: #fff; font-size: 26px; margin: 12px 0 12px; }
.integrations p { color: #a9bbd0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #e2ecf6;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.why .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.why .section-head .btn { margin-top: 30px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-item .num { font: 800 14px var(--font-display); color: var(--cyan-600); letter-spacing: .06em; }
.why-item h3 { font-size: 18px; margin: 10px 0 8px; }
.why-item p { font-size: 15px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font: 800 17px var(--font-display); color: var(--navy); background: #fff; border: 2px solid var(--cyan);
  position: relative; z-index: 1; margin-bottom: 24px;
}
.step::after { content: ""; position: absolute; top: 58px; left: 56px; right: -22px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--line)); }
.step:last-child::after { display: none; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.industry:hover { border-color: #bfe9f9; box-shadow: var(--shadow-sm); }
.industry .icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; background: #e6f7fe; color: var(--navy); box-shadow: none; flex: none; }
.industry .icon svg { width: 22px; height: 22px; }
.industry strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 16.5px; }
.industry small { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { background: linear-gradient(160deg, #04284d, var(--navy-900)); color: #c9d6e6; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 185, 241, .25), transparent 65%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.contact h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin: 14px 0 16px; }
.contact .lead { font-size: 18px; color: #a9bbd0; }
.contact-list { display: grid; gap: 16px; margin-top: 36px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; color: #e2ecf6; font-weight: 500; }
.contact-list a:hover { color: var(--cyan); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: var(--cyan); flex: none; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: #8ea4bd; font-weight: 400; font-size: 13px; }

.form { padding: 36px; border-radius: var(--radius-lg); background: #fff; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.form h3 { font-size: 22px; margin-bottom: 6px; }
.form > p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 15px var(--font); color: var(--ink); padding: 12px 14px; border-radius: 10px;
  border: 1px solid #d5dee8; background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(0, 185, 241, .15); }
.form .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.form-status.pending { background: var(--bg-soft); color: var(--text); }
.form-status.success { background: #e7f8ef; color: #136c3e; }
.form-status.error { background: #fdecec; color: #a12323; }
.form-status a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-900); color: #8ea4bd; padding: 72px 0 32px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: 15px; }
.footer-contact { margin-top: 22px; display: grid; gap: 8px; font-size: 14.5px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-a, .float-b { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { max-width: 640px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 48px; }
  .why .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 76px; left: 0; right: 0; padding: 12px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .nav a { padding: 14px 12px; font-size: 16px; }
  .products { grid-template-columns: 1fr 1fr; }
  .product, .product.wide { grid-column: span 1; }
  .product:last-child { grid-column: 1 / -1; }
  .integrations { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step::after { display: none; }
  .industries { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 132px 0 80px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .float-a { left: -6px; bottom: -26px; }
  .float-b { right: -6px; top: -30px; }
  .products, .services, .why-list, .industries, .process, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .product:last-child { grid-column: auto; }
  .product, .service, .why-item, .form { padding: 26px 22px; }
  .strip-inner { padding: 22px 16px; }
  .brand img { height: 26px; }
}
