/* =========================================================
   Datasuraksha — Global Stylesheet
   Palette: deep navy (trust/security) + teal accent (clarity/tech)
   ========================================================= */

:root {
  /* Core palette */
  --navy-900: #071a2f;
  --navy-800: #0b2545;
  --navy-700: #123a63;
  --navy-600: #1a4d80;
  --teal-500: #09b68c;
  --teal-400: #2fd0ac;
  --teal-600: #078f6f;
  --teal-050: #e6faf5;

  /* Neutrals */
  --white: #ffffff;
  --gray-050: #f6f9fb;
  --gray-100: #eef2f6;
  --gray-200: #dfe6ed;
  --gray-400: #94a3b3;
  --gray-600: #5b6b7c;
  --gray-700: #3d4c5c;
  --gray-800: #2a3644;
  --text-body: #33404d;

  /* Semantic */
  --success: #1fa971;
  --warning: #d69a1f;
  --danger: #d3453f;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(7, 26, 47, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 26, 47, 0.10);
  --shadow-lg: 0 20px 45px rgba(7, 26, 47, 0.16);
  --transition: 180ms ease;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--gray-050); }
.section--navy { background: var(--navy-800); color: var(--gray-200); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}

.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-400); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline { background: transparent; border-color: var(--navy-700); color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 26, 47, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(7,26,47,0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform var(--transition);
}
.brand:hover .brand__mark { transform: scale(1.06) rotate(-4deg); }
.brand__tag { color: var(--teal-400); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__links a {
  color: var(--gray-200);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--teal-500);
}

/* Login / Register live inside .nav__links so they appear in the mobile menu too */
.nav__links a.nav__login { color: var(--gray-200); }
.nav__links a.nav__login:hover { color: var(--white); }
.nav__links a.btn {
  border-bottom: none;
  color: var(--white);
  margin-left: 6px;
}
.nav__links a.btn:hover { border-bottom: none; color: var(--white); }

.nav__toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav__toggle:hover { background: rgba(255,255,255,0.08); }
.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}
.nav__toggle::before { top: 13px; }
.nav__toggle span { top: 19px; }
.nav__toggle::after { top: 25px; }

/* Morph into an X when the mobile menu is open */
.site-header.is-open .nav__toggle::before {
  top: 19px;
  transform: rotate(45deg);
}
.site-header.is-open .nav__toggle span {
  opacity: 0;
  transform: translateX(-6px);
}
.site-header.is-open .nav__toggle::after {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 1200px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }
  .site-header.is-open .nav__links { max-height: 480px; padding: 8px 24px 20px; }
  .nav__links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__links a.btn {
    width: 100%;
    justify-content: center;
    margin: 16px 0 4px;
    border-bottom: none;
  }
  .nav__links a.nav__login { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* -------------------- Hero -------------------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(14,184,171,0.18), transparent 45%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0 90px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--gray-200);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.85rem; color: var(--gray-400); }
.hero__trust strong { color: var(--teal-400); display: block; font-size: 1.4rem; }

.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero__card h3 { color: var(--white); font-size: 1.05rem; }
.hero__card ul { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.hero__card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-200);
}
.hero__card li .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500); margin-top: 6px; flex-shrink: 0;
}

/* Light variant — for use on white/gray sections so text stays readable */
.hero__card--light {
  background: var(--gray-050);
  border-color: var(--gray-200);
}
.hero__card--light h3 { color: var(--navy-800); }
.hero__card--light li { color: var(--gray-700); }
.hero__card--light li .dot { background: var(--teal-500); }

/* Dark variant — explicit, for use on white/gray sections when a navy card is wanted */
.hero__card--dark {
  background: var(--navy-800);
  border-color: var(--navy-700);
}
.hero__card--dark h3 { color: var(--white); }
.hero__card--dark li { color: var(--gray-200); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* -------------------- Page header (inner pages) -------------------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.page-header p { color: var(--gray-200); max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 14px; }
.breadcrumb a { color: var(--teal-400); }

/* -------------------- Cards / Grids -------------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-500); }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--teal-050);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--teal-500); transition: transform var(--transition); }
.card:hover .card__icon { background: var(--teal-500); }
.card:hover .card__icon svg { stroke: var(--white); transform: scale(1.08); }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 0; }
.card a.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-600);
  transition: gap var(--transition), color var(--transition);
}
.card a.card__link:hover { gap: 10px; color: var(--teal-500); }

.card--audience { border-top: 4px solid var(--teal-500); }
.card--bordered-navy { border-color: var(--navy-700); }

/* -------------------- Steps / Process -------------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step:last-child { border-bottom: none; }
.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--teal-400);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { color: var(--gray-600); margin-bottom: 0; }

/* -------------------- Tables -------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--gray-200); }
th { background: var(--navy-800); color: var(--white); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-050); }

/* -------------------- Tag / Badge -------------------- */
.tag {
  display: inline-block;
  background: var(--teal-050);
  color: var(--navy-700);
  border: 1px solid rgba(14,184,171,0.35);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 8px 8px 0;
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-500), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 46px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* -------------------- Coming soon -------------------- */
.coming-soon {
  text-align: center;
  padding: 90px 24px;
  max-width: 620px;
  margin: 0 auto;
}
.coming-soon .badge-icon {
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--teal-050);
  display: flex; align-items: center; justify-content: center;
}
.coming-soon .badge-icon svg { width: 36px; height: 36px; stroke: var(--teal-500); }

/* -------------------- Forms -------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(14,184,171,0.18);
}
textarea { resize: vertical; min-height: 120px; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-400);
  padding: 56px 0 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p { color: var(--gray-400); font-size: 0.92rem; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 0.92rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition), padding-left var(--transition);
}
.footer a:hover { color: var(--teal-400); padding-left: 4px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
}
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.footer__social svg { width: 16px; height: 16px; stroke: var(--gray-200); }
.footer__social a:hover { border-color: var(--teal-500); }
.footer__social a:hover svg { stroke: var(--teal-400); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* -------------------- Utility -------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* -------------------- Scroll reveal -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger.is-visible > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover, .card:hover, .brand:hover .brand__mark { transform: none !important; }
}

/* -------------------- Focus states -------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}

/* -------------------- Steps: fill-in progress line -------------------- */
.steps--numbered { position: relative; }
.step__num { transition: background var(--transition), transform var(--transition); }
.step:hover .step__num { background: var(--teal-500); color: var(--navy-900); transform: scale(1.06); }
