/* Shared styles for the TechMasti inner pages (Careers, Privacy Policy, Terms). Same look as the homepage. */
:root {
  --navy: #0a1744; --blue: #1e6cf0; --cyan: #22b8f5; --mint: #2ed3a0;
  --ink: #0b1433; --text: #3b4663; --muted: #6b7693; --line: #e6ebf5; --bg: #f6f8fd;
  --shadow: 0 20px 45px -24px rgba(14, 38, 107, 0.28); --shadow-lg: 0 40px 80px -30px rgba(10, 23, 68, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; background: #fff; color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grad { background: linear-gradient(100deg, var(--blue) 10%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header (partials/header.html) */
header.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(230,235,245,0.9); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .brand { display: flex; align-items: center; text-decoration: none; }
.nav .brand img { height: 46px; display: block; }
.nav nav { display: flex; align-items: center; }
.nav nav a { color: #4a5570; text-decoration: none; font-weight: 600; font-size: 14.5px; margin-left: 28px; transition: color 0.2s; }
.nav nav a:hover { color: var(--ink); }
.nav .cta { background: var(--ink); color: #fff !important; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.nav .cta:hover { background: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
@media (max-width: 900px) {
  .nav .brand img { height: 38px; }
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch !important; padding: 10px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); }
  header.nav.open .nav-links { display: flex !important; }
  .nav-links a { margin-left: 0 !important; padding: 12px 4px; }
  .nav-links .cta { margin-top: 8px; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-main { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 16px 30px -12px rgba(30,108,240,0.6); }
.btn-soft { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 72px; background: radial-gradient(800px 420px at 85% 0%, rgba(34,184,245,0.18), transparent 60%), radial-gradient(600px 360px at 0% 100%, rgba(46,211,160,0.14), transparent 60%), linear-gradient(180deg, #f5f8ff 0%, #fff 100%); }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(30,108,240,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(30,108,240,0.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink); }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -0.035em; color: var(--ink); font-weight: 900; margin: 0 0 16px; max-width: 820px; }
.page-hero p.lead { font-size: 18px; max-width: 640px; margin: 0; }
.page-hero .meta { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 22px; box-shadow: 0 8px 20px -14px rgba(14,38,107,0.4); }
.page-hero .meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* Sections */
section.block { padding: 88px 0; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 12px; font-weight: 900; }
.head { max-width: 680px; margin-bottom: 40px; }
.head p { font-size: 17px; margin: 0; }

/* Careers */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px -24px rgba(14,38,107,0.35); }
.perk .ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.perk .ic svg { width: 22px; height: 22px; }
.perk h3 { font-size: 16px; color: var(--ink); margin: 0 0 4px; }
.perk p { margin: 0; font-size: 14px; }
.roles-sec { background: var(--bg); }
.roles { display: grid; gap: 16px; }
.role { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4def2; }
.role h3 { font-size: 20px; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.02em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: #e8f0ff; color: #1754c4; }
.tags span.g { background: #e5f8f2; color: #0e8f67; }
.tags span.o { background: #fff1e3; color: #c46a0d; }
.role p { margin: 0; font-size: 15px; max-width: 760px; }
.role.general { background: linear-gradient(135deg, var(--navy), #1640b8); border: 0; color: #fff; }
.role.general h3 { color: #fff; }
.role.general p { color: rgba(255,255,255,0.8); }
.role.general .tags span { background: rgba(255,255,255,0.14); color: #fff; }
.role.general .btn-dark { background: #fff; color: var(--ink); }
.apply-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.apply-steps div { border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.apply-steps b { display: inline-block; font-size: 13px; font-weight: 900; color: var(--blue); background: #e8f0ff; padding: 4px 10px; border-radius: 9px; margin-bottom: 12px; }
.apply-steps h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.apply-steps p { margin: 0; font-size: 14px; }

/* Legal documents */
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; padding: 56px 24px 88px; }
.toc { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 20px; padding: 18px 12px; background: #fff; }
.toc p { margin: 0 0 8px; padding: 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; }
.toc a:hover, .toc a.on { background: #eef4ff; color: var(--blue); }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px 48px; box-shadow: var(--shadow); }
.doc .intro { font-size: 17px; padding-bottom: 22px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.doc section { padding-top: 26px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: baseline; }
.doc h2 b { font-size: 13px; font-weight: 900; color: var(--blue); background: #e8f0ff; padding: 3px 9px; border-radius: 8px; flex: none; }
.doc p { margin: 0 0 12px; text-align: justify; hyphens: auto; }
.doc .contact-box { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; flex-wrap: wrap; }
.doc .contact-box strong { color: var(--ink); display: block; }

/* Footer (partials/footer.html) */
footer { background: #070f2e; color: rgba(255,255,255,0.6); padding: 64px 0 26px; }
footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 0.8fr; gap: 32px; align-items: start; }
.footer-col h3, .footer-col h4 { color: #fff; font-size: 15.5px; margin: 0 0 16px; font-weight: 800; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 11px 14px; color: #fff; font: inherit; font-size: 14px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--cyan); }
.newsletter-form button { width: 44px; flex: none; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; margin: 0; }
.social-icons a:hover { border-color: #fff; }
footer .copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

@media (max-width: 960px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .doc-wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .toc { display: none; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  section.block { padding: 64px 0; }
  .page-hero { padding: 44px 0 52px; }
  .page-hero p.lead { font-size: 16.5px; }
  .perks, .apply-steps { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; padding: 22px; }
  .role .btn { width: 100%; }
  .doc { padding: 26px 20px; border-radius: 20px; }
  .doc p { text-align: left; }
  .doc-wrap { padding-left: 16px; padding-right: 16px; }
  footer .footer-grid { grid-template-columns: 1fr; }
}
