/* ===== TIsupport — Cyber-Industrial Responsive Theme (Full Edge Header Alignment) ===== */
:root {
  --bg-0: #061823;
  --bg-1: #0a2533;
  --bg-2: #0e3448;
  --primary: #0ed3f3;
  --text: #e6f7ff;
  --text-dim: #b6d3de;
  --radius: 14px;
  --maxw: 1160px;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #05131c, #091e2a 40%, #081b26 100%);
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.3; }
h2 { font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); }
p  { color: var(--text-dim); font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); line-height: 1.8; }

/* LAYOUT HELPERS */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }

/* ===== HEADER (now full-width edge alignment) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,27,38,.8);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid #0d2c3a;
}

/* separate layout: container.nav spans full width */
header .nav {
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(1.2rem, 4vw, 3rem);
}

/* left logo group */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.logo img {
  height: 34px;
  width: 34px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #0ed3f330 inset;
  transition: filter .3s ease, box-shadow .3s ease;
}
.logo img:hover {
  filter: drop-shadow(0 0 8px #0ed3f3aa);
  box-shadow: 0 0 10px #0ed3f344 inset;
}
.logo span {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 800;
}

/* right menu */
.menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.menu a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.menu a:hover { color: var(--text); }
.lang { opacity: 0.85; }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  border: none;
  background: transparent;
  padding: 0.3rem;
  border-radius: 8px;
}
.burger span {
  width: 26px;
  height: 2px;
  background: #a4c6d3;
  border-radius: 2px;
  transition: background 0.2s;
}
.burger:hover span { background: var(--primary); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #0ed3f3, #00b4d8);
  color: #00141c;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 30px #00b4d84a, 0 0 0 1px #58f0ff40 inset;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); filter: saturate(115%); }
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid #16d7f3;
  border-radius: 999px;
  box-shadow: 0 0 20px #0ed3f31a inset;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text);
  background: radial-gradient(circle at 70% 40%, #0ed3f322, transparent 70%),
              linear-gradient(180deg, #05131c 0%, #081b26 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-image.png") center/cover no-repeat;
  opacity: 0.35;
  filter: brightness(130%) saturate(120%);
  z-index: 0;
}
.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  max-width: 720px;
  margin-left: clamp(5rem, 12vw, 11rem);
  transform: translateY(-13%);
  animation: fadeInHero 1.6s ease 0.2s both;
}
.hero-wrap h1 {
  font-size: clamp(2.2rem, 1.8rem + 2.2vw, 3.3rem);
  line-height: 1.3;
  margin: 1.2rem 0 1.3rem;
}
.hero-wrap p {
  line-height: 1.9;
  margin-bottom: 2.4rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  max-width: 600px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(-13%); }
}

/* ===== ABOUT ===== */
.about { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.about .imgwrap {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px #00121a, 0 0 0 1px #0ed3f31e inset;
}
.about img { width: 100%; display: block; filter: none; }

/* ===== SERVICES ===== */
.section-title { text-align: center; margin-bottom: 1.6rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.card {
  background: linear-gradient(180deg, #0b2432, #0a2230);
  border: 1px solid #0b3546;
  border-radius: var(--radius);
  padding: 1.2rem;
  min-height: 168px;
  box-shadow: 0 0 0 1px #0ed3f312 inset, 0 12px 30px #000e15;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px #001520,
              0 0 0 1px #12d4f233 inset,
              0 0 40px #0ed3f30d inset;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p  { font-size: 0.98rem; }

/* ===== CONTACT ===== */
.contact {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-1);
  border-top: 1px solid #0b3546;
  padding: 2rem 0;
  margin-top: 2.8rem;
  color: #9cc1ce;
  text-align: center;
}

/* ===== MODAL ===== */
#tool-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 12, 18, 0.6);
  backdrop-filter: blur(8px);
  place-items: center;
}
#tool-modal .card {
  background: #071c27;
  color: var(--text);
  border: 1px solid #0b3546;
  border-radius: 14px;
  padding: 1.5rem;
  width: min(92vw, 380px);
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px #000b10, 0 0 0 1px #0ed3f325 inset;
}
#tool-modal .close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  color: #89b8c7;
  cursor: pointer;
}
#tool-pwd {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #081f2a;
  border: 1px solid #13485f;
  border-radius: 10px;
  color: #e6f7ff;
}
#tool-pwd:focus {
  outline: none;
  box-shadow: 0 0 0 3px #0ed3f31f;
  border-color: #1cd8f3;
}
#tool-submit { width: 100%; margin-top: 1rem; }
#tool-msg    { margin-top: 0.6rem; min-height: 1.2em; color: #9dd8e6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .burger { display: flex; }
  .menu.open {
    display: flex;
    position: absolute;
    inset: 60px 1rem auto 1rem;
    z-index: 40;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 14px;
    background: #071c27;
    border: 1px solid #0b3546;
    box-shadow: 0 16px 40px #000c12;
  }
  .hero-cta { justify-content: center; }
  .hero-wrap {
    margin-left: 0;
    align-items: center;
    text-align: center;
    padding-inline: 1.5rem;
    transform: none;
    animation: fadeInHero 1.2s ease 0.1s both;
  }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===== PRICING MODAL ===== */
#pricing-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 12, 18, 0.6);
  backdrop-filter: blur(8px);
  place-items: center;
}
#pricing-modal .card {
  background: #071c27;
  color: var(--text);
  border: 1px solid #0b3546;
  border-radius: 14px;
  padding: 1.8rem;
  width: min(92vw, 380px);
  text-align: center;
  box-shadow: 0 20px 60px #000b10, 0 0 0 1px #0ed3f325 inset;
  position: relative;
}
#pricing-modal .close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  color: #89b8c7;
  cursor: pointer;
}

/* ===== TOOLBOX DROPDOWN (minimal, non-invasive) ===== */
.toolbox-container { position: relative; }
.toolbox-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #071c27;
  border: 1px solid #0b3546;
  border-radius: 12px;
  box-shadow: 0 12px 30px #000e15, 0 0 0 1px #0ed3f31a inset;
  backdrop-filter: blur(8px);
  min-width: 200px;
  flex-direction: column;
  animation: toolboxFade 0.18s ease;
  z-index: 60;
}
.toolbox-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.toolbox-menu a:hover {
  background: #0a2533;
  color: var(--primary);
}
.toolbox-menu.open { display: flex; }
@keyframes toolboxFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
