/* ─────────────────────────────────────────
   QA Myriad — Global Stylesheet
   ───────────────────────────────────────── */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg:           #FFFFFF;
  --bg-off:       #F8F8F6;
  --black:        #0A0A0A;
  --text:         #1A1A1A;
  --muted:        #6B6B6B;
  --subtle:       #9A9A9A;
  --rule:         #E8E8E4;
  --green:        #2DBD5E;
  --green-light:  #F0FAF4;
  --green-border: #C8ECD5;

  --nav-height:   108px;
  --max-width:    1200px;
  --pad-x:        64px;
  --pad-mob:      24px;
  --section-y:    120px;
  --section-y-mob: 80px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── TYPOGRAPHY ─── */
h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--black);
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--black);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}
p { color: var(--muted); line-height: 1.7; }

/* ─── SECTION LABELS ─── */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 16px;
}
.section-header {
  max-width: 560px;
  margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; font-weight: 300; }

/* ─── TAGS / PILLS ─── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 20px;
}
.tag.launching {
  background: #FFF8F0;
  border-color: #FFD9B0;
  color: #C06800;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.18s;
}
.btn-primary:hover { opacity: 0.82; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s, gap 0.18s;
}
.btn-text:hover { color: var(--black); gap: 10px; }

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
}
.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 78px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.18s;
}
.nav-links a:hover { color: #fff; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px var(--pad-mob) 24px;
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile ul li a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile ul li:last-child a { border-bottom: none; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-height) + var(--section-y));
  padding-bottom: var(--section-y);
  background: var(--bg);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-content .tag { margin-bottom: 28px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-visual {
  background: var(--bg-off);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { width: 100%; max-width: 340px; }

/* ══════════════════════════════════════════
   STATS STRIP
   ══════════════════════════════════════════ */
.stats {
  background: var(--black);
  padding: 80px 0;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════
   ABOUT — WHAT WE DO
   ══════════════════════════════════════════ */
.about {
  padding: var(--section-y) 0;
  background: var(--bg);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--rule);
}
.pillar {
  background: var(--bg);
  padding: 52px 40px;
  transition: background 0.18s;
}
.pillar:hover { background: var(--bg-off); }
.pillar-number {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 28px;
}
.pillar-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: 15px; line-height: 1.65; }

/* ══════════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════════ */
.portfolio {
  padding: var(--section-y) 0;
  background: var(--bg-off);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.portfolio-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  border-color: #d8d8d4;
}
.portfolio-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.portfolio-card p { font-size: 15px; line-height: 1.65; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-top: 24px;
  transition: gap 0.18s;
}
.card-link:hover { gap: 10px; }

/* Coming soon card */
.portfolio-card.coming-soon {
  border: 1.5px dashed var(--rule);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  gap: 12px;
}
.portfolio-card.coming-soon:hover { box-shadow: none; border-color: #ccc; }
.coming-soon-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px dashed var(--subtle);
  font-size: 22px;
  color: var(--subtle);
  margin-bottom: 4px;
}
.coming-soon h3 { font-size: 17px; font-weight: 500; color: var(--subtle); }
.coming-soon p { font-size: 14px; color: var(--subtle); margin-top: 4px; }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact {
  padding: var(--section-y) 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  background: var(--bg-off);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px 28px;
}
.contact-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 8px;
}
.contact-card-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}
.contact-card-value a { color: var(--green); transition: opacity 0.18s; }
.contact-card-value a:hover { opacity: 0.75; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 40px 0;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo img { height: 54px; width: auto; }
.footer-copy {
  font-size: 13px;
  color: var(--subtle);
  text-align: center;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--black); }

/* ─── CONTACT PAGE ─── */
.contact-page {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 120px;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-left h1 {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 0;
}
.contact-left > p { font-size: 17px; font-weight: 300; line-height: 1.75; margin-top: -16px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--subtle); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,189,94,0.1);
}
.contact-form .btn-primary { align-self: flex-start; }

/* ══════════════════════════════════════════
   POLICY PAGES (privacy.html, terms.html)
   ══════════════════════════════════════════ */
.policy-body {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 120px;
}
.policy-body .container {
  max-width: 720px;
}
.policy-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.policy-header h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 12px;
}
.policy-meta {
  font-size: 14px;
  color: var(--subtle);
}
.policy-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.policy-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.policy-content ul li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.policy-content a { color: var(--green); }
.policy-content a:hover { text-decoration: underline; }
.policy-content strong { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════
   THANKS / 404 PAGES
   ══════════════════════════════════════════ */
.thanks-page {
  min-height: calc(100vh - var(--nav-height) - 120px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 120px;
}
.thanks-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.thanks-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.thanks-icon.not-found {
  background: var(--bg-off);
  border-color: var(--rule);
  color: var(--subtle);
  font-size: 18px;
  width: 80px;
  height: 80px;
}
.thanks-content h1 { font-size: clamp(28px, 3vw, 40px); }
.thanks-content p { font-size: 17px; font-weight: 300; }

/* ══════════════════════════════════════════
   COOKIE NOTICE
   ══════════════════════════════════════════ */
.cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-notice p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.cookie-notice a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.cookie-notice a:hover { color: #fff; }
.cookie-dismiss {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.cookie-dismiss:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: var(--pad-mob);
    --section-y: var(--section-y-mob);
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }

  /* Stats */
  .stats .container { grid-template-columns: 1fr; }
  .stat-item {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:last-child { border-bottom: none; }

  /* About pillars */
  .pillars-grid { grid-template-columns: 1fr; border-radius: 16px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form .btn-primary { width: 100%; justify-content: center; }

  /* Footer */
  .footer-container { flex-direction: column; text-align: center; gap: 20px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Cookie notice */
  .cookie-notice { flex-direction: column; align-items: flex-start; padding: 20px var(--pad-mob); gap: 12px; }
  .cookie-dismiss { align-self: flex-start; }
}
