/* MartStok - Market Intelligence & Inventory Analytics
   Design system: Deep navy + warm gold, editorial serif headlines,
   crisp sans body. Built by hand for a modern, dense, trustworthy feel. */

:root {
  --navy-900: #081a33;
  --navy-800: #0b2545;
  --navy-700: #133b6a;
  --navy-600: #1d4e89;
  --gold-500: #d4a017;
  --gold-400: #e5b840;
  --gold-100: #fdf3d4;
  --ink: #14243d;
  --muted: #5b6b82;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-cream: #fbf7ee;
  --shadow-sm: 0 2px 6px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; color: #2a3a54; }
.lead { font-size: 1.15rem; color: #43536c; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold-500);
}

/* ====== NAV ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  color: var(--navy-900);
}
.brand-name span { color: var(--gold-500); }

.nav ul {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.nav ul a {
  color: var(--navy-800); font-weight: 500; font-size: 15px;
  position: relative; padding: 6px 0;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--gold-500);
  transition: width .25s ease;
}
.nav ul a:hover::after, .nav ul a.active::after { width: 100%; }
.nav ul a.active { color: var(--navy-900); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gold-500); color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(212,160,23,.35);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--gold-400); color: var(--navy-900); }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-dark {
  background: var(--navy-800); color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); background: var(--navy-700); color: #fff; }

.menu-toggle {
  display: none; background: none; border: 0; font-size: 26px; color: var(--navy-800); cursor: pointer;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(212,160,23,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(19,59,106,.10), transparent 60%),
    linear-gradient(180deg, #fbf7ee 0%, #ffffff 90%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 span { color: var(--gold-500); font-style: italic; }
.hero .lead { max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats {
  margin-top: 46px; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif); font-size: 2.1rem; color: var(--navy-900); font-weight: 700;
  display:block;
}
.stat-lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s ease;
}
.hero-visual:hover img { transform: perspective(1200px) rotateY(-1deg) rotateX(0deg); }
.hero-badge {
  position: absolute; left: -30px; bottom: 30px;
  background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
  animation: floaty 5s ease-in-out infinite;
}
.hero-badge .dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero-badge b { font-family: var(--serif); color: var(--navy-900); }
.hero-badge small { display: block; color: var(--muted); font-size: 12px; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Trust bar */
.trust {
  padding: 32px 0; border-bottom: 1px solid var(--line); background: #fff;
}
.trust-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.trust-lbl { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: flex; gap: 40px; flex-wrap: wrap; }
.trust-logos span {
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  color: #98a3b6; letter-spacing: .04em;
}

/* Section base */
section.block { padding: 90px 0; }
section.block.alt { background: var(--bg-soft); }
section.block.dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #dfe7f2;
}
section.block.dark h1, section.block.dark h2, section.block.dark h3 { color: #fff; }
section.block.dark p { color: #b7c2d4; }

.block-head { max-width: 720px; margin-bottom: 50px; }
.block-head.center { margin: 0 auto 50px; text-align: center; }

/* Feature cards */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.feature {
  background: #fff; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-100), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500); font-size: 24px; margin-bottom: 18px;
  border: 1px solid var(--gold-100);
}
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Services showcase */
.services-list { display: grid; gap: 60px; }
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-row img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%;
}
.service-row ul { padding-left: 20px; }
.service-row li { margin-bottom: 8px; }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  position: relative; counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold-500);
  font-weight: 700; display: block; margin-bottom: 8px; line-height: 1;
}
.step h4 { font-family: var(--serif); color: var(--navy-900); margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote {
  background: #fff; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); position: absolute; top: 4px; left: 18px;
  font-size: 4.5rem; color: var(--gold-400); opacity: .35; line-height: 1;
}
.quote p { font-family: var(--serif); font-size: 1.1rem; color: var(--navy-800); line-height: 1.5; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.who .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 700; }
.who b { display: block; color: var(--navy-900); }
.who small { color: var(--muted); }

/* Big CTA */
.cta {
  position: relative; padding: 110px 0; color: #fff; text-align: center;
  background:
    linear-gradient(180deg, rgba(8,26,51,.75), rgba(8,26,51,.85)),
    url('../images/cta-bg.jpg') center/cover no-repeat;
}
.cta h2 { color: #fff; }
.cta p { color: #cfd8e8; max-width: 620px; margin: 0 auto 26px; }

/* Footer */
footer {
  background: #071528; color: #a9b5c9; padding: 70px 0 30px;
}
footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid a { color: #a9b5c9; font-size: 14px; }
.foot-grid a:hover { color: var(--gold-400); }
.foot-brand p { color: #93a0b6; font-size: 14px; max-width: 320px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08);
  color: #7a879d; font-size: 13px;
}
.foot-bottom a { color: #7a879d; }
.foot-bottom a:hover { color: var(--gold-400); }

/* Pages: page hero */
.page-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(700px 300px at 100% 0, rgba(212,160,23,.13), transparent 60%),
    linear-gradient(180deg, #fbf7ee 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { max-width: 700px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 6px; }

/* Legal pages */
.legal { padding: 60px 0 90px; }
.legal .container { max-width: 860px; }
.legal h2 { margin-top: 40px; font-size: 1.5rem; }
.legal h3 { margin-top: 26px; font-size: 1.15rem; color: var(--navy-800); }
.legal p, .legal li { color: #33445e; }
.legal ul { padding-left: 20px; }
.toc {
  background: var(--bg-cream); border-left: 3px solid var(--gold-500);
  padding: 20px 24px; border-radius: 8px; margin-bottom: 30px;
}
.toc h4 { margin: 0 0 10px; color: var(--navy-900); font-family: var(--serif); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.toc ul { margin: 0; padding-left: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-card {
  background: #fff; border: 1px solid var(--line); padding: 26px;
  border-radius: var(--radius); margin-bottom: 16px; display: flex; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.info-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-100); color: var(--gold-500);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.info-card b { color: var(--navy-900); display: block; margin-bottom: 4px; }
.info-card a { color: var(--navy-700); }
form.contact { background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
form.contact label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,160,23,.15);
}
form.contact textarea { min-height: 130px; resize: vertical; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--gold-400); }
.faq summary {
  cursor: pointer; font-family: var(--serif); font-weight: 600; color: var(--navy-900);
  font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-500); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Values / team */
.values { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .3s;
}
.value:hover { transform: translateY(-4px); }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }

.founder {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center;
}
.founder img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 24px; display: none; align-items: center; gap: 22px;
  max-width: 1100px; margin: 0 auto;
  transform: translateY(20px); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.cookie-banner.show { display: flex; transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.cookie-banner p b { color: var(--navy-900); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 14px; }
.btn-ghost {
  background: transparent; color: var(--navy-800); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .service-row, .contact-grid, .founder { grid-template-columns: 1fr; }
  .features, .process, .quotes, .values { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-visual img { transform: none; }
}
@media (max-width: 600px) {
  .features, .process, .quotes, .values, .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  section.block { padding: 60px 0; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
}
