/* ZarinTech – site styles
   Brand colours taken from the ZarinTech logo. */
:root {
  --navy: #0B2A4F;
  --navy-deep: #071D38;
  --blue: #0E5E93;
  --teal: #169C8C;
  --mint: #1FBF9A;
  --ink: #1B2635;
  --muted: #566376;
  --line: #E3E9F0;
  --tint: #F3F8FA;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 79, 0.08);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--white);
  background: var(--grad);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(22, 156, 140, .25);
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 156, 140, .32); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--navy); border-color: var(--teal); box-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { display: block; text-align: center; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.eyebrow-light { color: var(--mint); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 42, 79, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand-zarin { color: var(--navy); }
.brand-tech { color: var(--teal); font-weight: 500; }

.site-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  color: var(--navy); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--teal); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(31, 191, 154, .12), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(14, 94, 147, .08), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.tagline { font-family: var(--font-head); font-weight: 500; color: var(--teal); letter-spacing: .04em; margin: 0; }

.hero-visual { position: relative; }
.mock-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px rgba(11, 42, 79, .12); overflow: hidden;
}
.mock-head { display: flex; align-items: center; gap: 6px; padding: .9rem 1.1rem; background: var(--navy); }
.mock-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.mock-title { margin-left: .6rem; color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.mock-list { list-style: none; margin: 0; padding: .5rem 1.1rem; }
.mock-list li { display: flex; align-items: center; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mock-list li:last-child { border-bottom: 0; }
.mock-text { flex: 1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
.pill-red { background: #FDE8E8; color: #B42318; }
.pill-amber { background: #FEF3DC; color: #9A5B00; }
.pill-blue { background: #E4F0F8; color: var(--blue); }
.status { font-size: .78rem; color: var(--muted); }
.status-done { color: var(--teal); font-weight: 600; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--tint); border-top: 1px solid var(--line); }
.mock-stats div { padding: 1rem .5rem; text-align: center; }
.mock-stats strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; }
.mock-stats span { font-size: .75rem; color: var(--muted); }
.mock-flow {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: .4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1rem; box-shadow: var(--shadow); font-size: .78rem; font-weight: 600; color: var(--navy);
}
.mock-flow i { width: 18px; height: 2px; background: var(--mint); position: relative; }
.mock-flow i::after { content: ""; position: absolute; right: -2px; top: -3px; border: 4px solid transparent; border-left-color: var(--mint); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p:last-child { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22, 156, 140, .35); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 1.2rem;
}
.icon svg, .contact-item svg {
  width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Solutions */
.solution {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem;
  background: var(--white); border-radius: 20px; padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.badge {
  display: inline-block; background: rgba(31, 191, 154, .14); color: var(--teal);
  font-weight: 600; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.solution h3 { font-size: 1.6rem; }
.solution-copy > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.solution-facts { display: grid; gap: 1rem; align-content: center; }
.fact { background: var(--tint); border-left: 4px solid var(--teal); border-radius: 10px; padding: 1.1rem 1.25rem; }
.fact strong { display: block; font-family: var(--font-head); color: var(--navy); }
.fact span { color: var(--muted); font-size: .95rem; }
.more-note { text-align: center; margin: 2.5rem 0 0; color: var(--muted); }

/* Why */
.why { padding: 1.5rem; border-top: 3px solid var(--line); transition: border-color .2s ease; }
.why:hover { border-color: var(--teal); }
.why-num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why h3 { margin-top: .6rem; }
.why p { color: var(--muted); font-size: 1rem; margin: 0; }

/* About */
.section-dark {
  background: radial-gradient(800px 400px at 100% 0%, rgba(31, 191, 154, .18), transparent 60%), var(--navy-deep);
  color: rgba(255, 255, 255, .85);
}
.section-dark h2 { color: var(--white); }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.about-copy strong { color: var(--mint); font-weight: 600; }

/* Contact */
.contact-box {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
  background: var(--tint); border-radius: 22px; padding: clamp(1.8rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
}
.contact-box > div > p:last-child { color: var(--muted); }
.contact-details { display: grid; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink);
}
a.contact-item:hover { border-color: var(--teal); color: var(--ink); }
.contact-item svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--grad); }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; }
.contact-item span { font-weight: 500; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 2rem 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.site-footer .brand-zarin { color: var(--white); }
.site-footer .brand-tech { color: var(--mint); }
.footer-tag { color: var(--mint); }
.footer-meta { margin: 0; }

/* Reveal on scroll (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .solution, .about-inner, .contact-box { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 1rem auto 1.5rem; width: 100%; }
  .mock-flow { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-inner { gap: 1rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11, 42, 79, .08);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; text-align: center; display: block; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.3rem; }
  .mock-list .status { display: none; }
}
