/* =========================================================
   SeqSarv — Sequential Services for Security Excellence
   Global stylesheet (design system from prototype)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:          #0a0f1a;   /* dark navy background */
  --bg-alt:      #0d1420;   /* alternating section bg */
  --card-a:      rgba(20, 30, 48, 0.80);
  --card-b:      rgba(15, 23, 42, 0.90);
  --accent:      #00d4aa;   /* teal */
  --accent-2:    #00a8cc;   /* blue */
  --accent-3:    #7c3aed;   /* violet */
  --text:        #e8edf5;   /* light gray */
  --muted:       #94a3b8;   /* slate */
  --muted-2:     #64748b;   /* deep slate */
  --line:        rgba(100, 116, 139, 0.15);
  --line-accent: rgba(0, 212, 170, 0.20);
  --radius:      16px;
  --radius-sm:   8px;
  --maxw:        1200px;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
code, .monospace { font-family: var(--mono); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(15,23,42,0.5) 0%, transparent 100%); }
.section--tight { padding: 80px 0; }
.center { text-align: center; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; letter-spacing: -1px; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 640px; line-height: 1.75; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.gradient-text {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8cc 50%, #7c3aed 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 8s ease infinite;
}

/* ---------- Decorative background ---------- */
.grid-pattern {
  background-image:
    linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.30; animation: pulse 8s ease-in-out infinite; pointer-events: none; z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s ease;
  border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--bg); padding: 16px 32px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,212,170,0.40); }
.btn-secondary {
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
  padding: 14px 30px;
}
.btn-secondary:hover { background: rgba(0,212,170,0.10); transform: translateY(-2px); }
.btn-sm { padding: 12px 24px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0;
  background: rgba(10,15,26,0.90); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--bg);
}
.brand__name { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav-link {
  position: relative; color: var(--muted); font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.3s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 110px; }
.hero__wrap { max-width: 820px; position: relative; z-index: 1; }
.badge {
  display: inline-block; padding: 8px 16px; background: rgba(0,212,170,0.10);
  border: 1px solid var(--line-accent); border-radius: 100px; font-size: 12px;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.08; margin-bottom: 24px; letter-spacing: -2px; }
.hero__lead { font-size: 20px; line-height: 1.7; color: var(--muted); margin-bottom: 40px; max-width: 620px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { margin-top: 60px; display: flex; gap: 48px; flex-wrap: wrap; }
.stat__value { font-size: 32px; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.stat__label { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }

/* page hero (interior pages) */
.page-hero { padding: 150px 0 60px; position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -1.5px; margin-bottom: 20px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 720px; line-height: 1.75; }
.breadcrumb { font-size: 13px; color: var(--muted-2); margin-bottom: 24px; letter-spacing: 0.5px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: linear-gradient(145deg, var(--card-a) 0%, var(--card-b) 100%);
  border: 1px solid rgba(0,212,170,0.10); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card--link:hover { transform: translateY(-8px); border-color: var(--line-accent); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 60px rgba(0,212,170,0.10); }
.card--link:hover::before { transform: scaleX(1); }
.card__icon { font-size: 36px; margin-bottom: 20px; color: var(--accent); line-height: 1; }
.card__title { font-size: 22px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.5px; }
.card__subtitle { font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.card__list li {
  font-size: 15px; color: var(--muted); padding: 8px 0; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.card__list li:last-child { border-bottom: none; }
.card__list li::before { content: '●'; color: var(--accent); font-size: 8px; }
.card__more { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.5px; }
.card__more::after { content: ' →'; transition: all 0.3s ease; }
.card--link:hover .card__more::after { margin-left: 4px; }

/* ---------- Certifications & chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 8px 16px; background: rgba(0,212,170,0.10); border: 1px solid var(--line-accent);
  border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--accent); font-family: var(--mono);
}

/* ---------- Skill bars ---------- */
.panel {
  background: linear-gradient(145deg, var(--card-a) 0%, var(--card-b) 100%);
  border: 1px solid rgba(0,212,170,0.10); border-radius: 20px; padding: 40px; position: relative;
}
.panel__accent {
  position: absolute; top: -1px; left: 40px; right: 40px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 0 0 4px 4px;
}
.skill { margin-bottom: 22px; }
.skill:last-child { margin-bottom: 0; }
.skill__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill__label { font-size: 14px; color: var(--muted); }
.skill__pct { font-size: 14px; color: var(--accent); font-family: var(--mono); }
.skill__track { height: 6px; background: rgba(100,116,139,0.2); border-radius: 3px; overflow: hidden; }
.skill__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ---------- Process timeline ---------- */
.grid--process { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.phase { padding: 8px 0 8px 32px; border-left: 2px solid var(--line-accent); position: relative; }
.phase__dot { position: absolute; left: -8px; top: 10px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 20px rgba(0,212,170,0.5); }
.phase__num { font-size: 46px; font-weight: 700; color: rgba(0,212,170,0.2); font-family: var(--mono); margin-bottom: 16px; line-height: 1; }
.phase__title { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.phase__desc { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---------- Rich content (service detail / legal) ---------- */
.prose { max-width: 860px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 8px; letter-spacing: -0.5px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + .prose__kicker, .prose .prose__kicker { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 20px; display: block; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; color: var(--text); }
.prose h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 22px 0 10px; font-weight: 600; }
.prose p { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 16px; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose ul.bullets { margin: 8px 0 20px; }
.prose ul.bullets li { color: var(--muted); font-size: 16px; line-height: 1.7; padding: 6px 0 6px 24px; position: relative; }
.prose ul.bullets li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 48px 0; }
.prose a.inline { color: var(--accent); border-bottom: 1px solid var(--line-accent); }
.prose a.inline:hover { border-color: var(--accent); }

/* pill list of technologies */
.tech-block { margin: 12px 0 24px; }
.tech-block strong { display: block; color: var(--text); margin-bottom: 10px; font-size: 15px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0 28px; border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; background: rgba(0,212,170,0.05); }
table.data td { color: var(--muted); }
table.data td strong { color: var(--text); }
table.data tbody tr:hover { background: rgba(0,212,170,0.03); }

/* ---------- Callout / scenario ---------- */
.callout {
  background: linear-gradient(145deg, var(--card-a) 0%, var(--card-b) 100%);
  border: 1px solid var(--line-accent); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 24px 28px; margin: 20px 0 28px;
}
.callout h4 { margin-top: 0; }
.callout p { font-size: 16px; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-info li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .ic { width: 40px; height: 40px; background: rgba(0,212,170,0.10); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.contact-info .lbl { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }
.contact-info .val { font-size: 16px; color: var(--text); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.field {
  width: 100%; background: rgba(15,23,42,0.8); border: 1px solid rgba(100,116,139,0.3);
  border-radius: var(--radius-sm); padding: 15px 18px; color: var(--text); font-size: 16px;
  font-family: inherit; transition: all 0.3s ease; outline: none;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,170,0.1); }
.field::placeholder { color: var(--muted-2); }
select.field { cursor: pointer; }
textarea.field { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.hp { position: absolute; left: -9999px; top: -9999px; }  /* honeypot */

.form-status { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: rgba(0,212,170,0.10); border: 1px solid var(--line-accent); color: var(--accent); }
.form-status.err { display: block; background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  background: linear-gradient(145deg, var(--card-a) 0%, var(--card-b) 100%);
  border: 1px solid var(--line-accent); border-radius: 24px; padding: 64px 40px; text-align: center; position: relative; z-index: 1;
}
.cta-band__inner h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.cta-band__inner p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 16px; max-width: 320px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; transition: color 0.3s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__bottom p { color: var(--muted-2); font-size: 14px; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--muted-2); font-size: 14px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Reveal animation ----------
   Only hide when JS is active (html.js). Without JS, content shows normally. */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.7; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10,15,26,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-120%); transition: transform 0.35s ease; z-index: 999;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links .nav-link { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__links .nav-link::after { display: none; }
  .nav__links .btn { width: 100%; margin-top: 16px; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
  .hero__stats { gap: 32px; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn, .cta-actions .btn { width: 100%; }
  .card { padding: 26px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
