/* ===========================================================================
   Tresura — main site styles
   Theme: bright & lively. Soft cream/white background, with gold / blue / teal
   accents used sparingly for icons, buttons, highlights and project cards.
   Single stylesheet, no build step. Edit freely.
   =========================================================================== */
:root {
  --bg:        #FFFDF7;   /* soft cream */
  --bg-soft:   #F8FAFC;   /* light section */
  --bg-warm:   #FDF6E3;   /* warm section */
  --surface:   #FFFFFF;   /* cards */
  --border:    #ECEAE1;
  --border-2:  #E5E7EB;

  --text:      #1F2937;   /* primary */
  --text-dim:  #6B7280;   /* secondary */
  --text-faint:#9AA1AD;

  --gold:      #D4A017;
  --gold-2:    #F4B400;
  --blue:      #2563EB;
  --blue-2:    #3B82F6;
  --teal:      #14B8A6;
  --green:     #16A34A;

  --shadow:    0 10px 30px rgba(31,41,55,0.07);
  --shadow-lg: 0 20px 48px rgba(31,41,55,0.13);

  --maxw: 1120px;
  --radius: 18px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---- Brand wordmark ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #F4B400, #D4A017);
  color: #fff; font-weight: 800; font-size: 19px;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 6px 16px rgba(212,160,23,0.35);
}
.brand-word { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.brand-logo { height: 30px; width: auto; display: block; }

/* ===========================================================================
   HEADER / NAV
   =========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,247,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); font-weight: 600; transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #fff !important; padding: 9px 18px; border-radius: 10px;
  transition: transform .16s ease, box-shadow .2s ease !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,41,55,0.18); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; transition: .2s; }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 144px) 0 clamp(60px, 9vw, 112px); }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; filter: blur(8px); }
.blob { position: absolute; border-radius: 50%; opacity: 0.5; }
.blob-gold { width: 460px; height: 460px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(244,180,0,0.30), transparent 62%); }
.blob-blue { width: 520px; height: 520px; top: -200px; right: -160px;
  background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 62%); }
.blob-teal { width: 420px; height: 420px; bottom: -220px; left: 38%;
  background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 62%); }
.hero-inner { position: relative; max-width: 840px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold); background: #FFF7DE; border: 1px solid #F4E3A8; border-radius: 999px;
}
.hero-title { margin: 0 0 16px; line-height: 0; }
.hero-logo { height: clamp(58px, 10vw, 98px); width: auto; max-width: 100%; display: block; }
.hero-tagline { font-size: clamp(20px, 3.4vw, 31px); font-weight: 700; color: var(--text); margin: 0 0 18px; }
.hero-desc { font-size: clamp(15px, 2vw, 18.5px); color: var(--text-dim); max-width: 640px; margin: 0 0 34px; }

/* ---- Buttons ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center-row { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(37,99,235,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,0.38); background: #1d4ed8; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.btn-accent { background: var(--card-accent, var(--blue)); color: #fff; align-self: flex-start; box-shadow: 0 8px 18px var(--card-accent-shadow, rgba(37,99,235,0.25)); }
.btn-disabled { background: #F1F2F4; color: var(--text-faint); align-self: flex-start; cursor: default; }

/* ===========================================================================
   SECTIONS
   =========================================================================== */
.section { padding: clamp(60px, 9vw, 104px) 0; }
.section-projects { padding: clamp(76px, 10vw, 124px) 0; background: linear-gradient(180deg, #FDF6E3, #F8FAFC); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-explore { background: var(--bg-soft); border-top: 1px solid var(--border); }
.section-label {
  display: inline-block; margin: 0 0 14px; padding: 5px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em;
}
.label-blue { color: var(--blue); background: #EAF1FE; }
.label-gold { color: var(--gold); background: #FCF3D4; }
.label-teal { color: #0D9488; background: #DBF5F0; }
.section-title { font-size: clamp(27px, 4.4vw, 42px); font-weight: 800; margin-bottom: 20px; max-width: 780px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-dim); margin: 0 0 14px; }
.lead-center { text-align: center; margin: 0 auto 8px; max-width: 620px; }

/* ===========================================================================
   PROJECT CARDS
   =========================================================================== */
.project-grid {
  display: grid; gap: 24px; margin-top: 46px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.project-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 32px 30px 34px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.project-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, var(--blue));
}
.project-card:not(.pc-soon):hover {
  transform: translateY(-6px); border-color: var(--card-accent, var(--blue));
  box-shadow: var(--shadow-lg);
}
.pc-blue { --card-accent: #2563EB; --card-accent-soft: #EAF1FE; --card-accent-shadow: rgba(37,99,235,0.25); }
.pc-teal { --card-accent: #14B8A6; --card-accent-soft: #DBF5F0; --card-accent-shadow: rgba(20,184,166,0.25); }
.pc-gold { --card-accent: #D4A017; --card-accent-soft: #FCF3D4; --card-accent-shadow: rgba(212,160,23,0.28); }
.pc-soon { --card-accent: #CBD0D9; --card-accent-soft: #F3F4F6; box-shadow: none; background: #FCFCFB; }

.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--card-accent-soft, #EAF1FE); color: var(--card-accent, var(--blue));
  flex: none;
}
.pc-icon svg { width: 28px; height: 28px; }
.pc-icon-logo { background: #fff; border: 1px solid var(--border-2); padding: 10px; overflow: hidden; }
.pc-icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.pc-icon-dark { background: #0f1424; border-color: #0f1424; }

/* Full-logo banner at the top of each project card */
.pc-logo-banner {
  display: flex; align-items: center; justify-content: center;
  height: 120px; border-radius: 12px; padding: 16px 18px;
}
.pc-logo-banner img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; display: block; }
.lb-light { background: #fff; border: 1px solid var(--border-2); }
.lb-dark  { background: #0f1424; border: 1px solid #0f1424; }
.pc-soon-banner { background: #F3F4F6; border-color: transparent; }
.pc-soon-banner svg { width: 42px; height: 42px; color: var(--text-faint); }
/* Wide (landscape) logos like Labs: cap height so they don't dominate the card */
.lb-wide img { max-height: 70px; }

/* Product name wordmark on cards (logo moved to detail pages) */
.pc-wordmark {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700; font-size: clamp(28px, 4.4vw, 36px); letter-spacing: -0.01em;
  line-height: 1.1; margin: 2px 0 0; color: var(--text);
}
.pc-by { font-size: 0.45em; font-weight: 600; color: var(--text-dim); letter-spacing: 0; white-space: nowrap; }
.pc-wordmark-soon { color: var(--text-faint); }

/* Product logo tile on the detail (More Info) pages */
.detail-logo-h1 { margin: 0 0 16px; line-height: 0; }
.detail-logo { display: inline-flex; align-items: center; justify-content: center; height: 100px; padding: 16px 24px; border-radius: 18px; }
.detail-logo img { max-height: 100%; max-width: 300px; object-fit: contain; display: block; }
.dl-light { background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.dl-dark { background: #0f1424; }
.pc-name { font-size: 19px; font-weight: 800; }
.pc-desc { color: var(--text-dim); font-size: 14.5px; margin: 0; flex: 1; }
.pc-url { font-size: 13px; font-weight: 600; color: var(--card-accent, var(--blue)); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- Status badges ---- */
.status { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.status-live { color: var(--green); background: #E7F6EC; }
.status-dev  { color: #B45309; background: #FBEFD6; }
.status-exp  { color: #0D9488; background: #DBF5F0; }
.status-soon { color: var(--text-faint); background: #F1F2F4; }

/* ===========================================================================
   VISION & MISSION
   =========================================================================== */
.vm-grid { display: grid; gap: 22px; margin-top: 38px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.vm-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--vm-accent, var(--blue)); }
.vm-blue { --vm-accent: #2563EB; }
.vm-gold { --vm-accent: #D4A017; }
.vm-heading { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.vm-card p { color: var(--text-dim); margin: 0; font-size: 15.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vm-accent, var(--blue)); flex: none; }

/* ===========================================================================
   CONTACT / EXPLORE
   =========================================================================== */
.contact-email { margin: 6px 0 26px; font-size: 18px; }
.contact-email a { color: var(--blue); font-weight: 700; }
.contact-email a:hover { text-decoration: underline; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding-top: 52px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.footer-tag { color: var(--text-faint); font-size: 14px; margin: 14px 0 0; max-width: 260px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.footer-links a { color: var(--text-dim); font-size: 14.5px; transition: color .18s ease; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 22px; padding-bottom: 30px; }
.footer-bottom p { color: var(--text-faint); font-size: 13.5px; margin: 0; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(255,253,247,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 15px 24px; border-top: 1px solid var(--border); }
  .nav-cta { margin: 12px 24px; text-align: center; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===========================================================================
   PROJECT CARD ACTIONS (two buttons)
   =========================================================================== */
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.pc-actions .btn { padding: 11px 18px; font-size: 14px; }
.btn-soft { background: var(--card-accent-soft, #EAF1FE); color: var(--card-accent, var(--blue)); }
.btn-soft:hover { transform: translateY(-2px); filter: brightness(0.96); }

/* ===========================================================================
   SCROLL REVEAL (progressive enhancement — only active when JS adds .js)
   =========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal.reveal-d1 { transition-delay: .08s; }
.js .reveal.reveal-d2 { transition-delay: .16s; }
.js .reveal.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================================
   PROJECT DETAIL PAGES
   =========================================================================== */
.detail.theme-gold { --card-accent: #D4A017; --card-accent-soft: #FCF3D4; --card-accent-shadow: rgba(212,160,23,0.28); }
.detail.theme-teal { --card-accent: #14B8A6; --card-accent-soft: #DBF5F0; --card-accent-shadow: rgba(20,184,166,0.25); }
.detail.theme-blue { --card-accent: #2563EB; --card-accent-soft: #EAF1FE; --card-accent-shadow: rgba(37,99,235,0.25); }

.detail-hero {
  position: relative; overflow: hidden;
  padding: clamp(44px, 8vw, 84px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--card-accent-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.detail-hero-inner { position: relative; max-width: 780px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--card-accent, var(--blue)); }
.back-link:hover { text-decoration: underline; }
.detail-status { display: inline-block; margin-bottom: 14px; }
.detail-title { font-size: clamp(32px, 6vw, 54px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.detail-tagline { font-size: clamp(17px, 2.6vw, 22px); font-weight: 600; color: var(--text); margin: 0 0 14px; }
.detail-desc { font-size: clamp(15px, 2vw, 17.5px); color: var(--text-dim); margin: 0 0 28px; }

.detail-section { padding: clamp(48px, 7vw, 84px) 0; }

.audience-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.audience-item {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow);
}
.audience-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--card-accent, var(--blue)); flex: none; }

.feature-grid { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.feature-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 18px 20px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow);
  transition: border-color .2s ease, transform .16s ease, box-shadow .2s ease;
}
.feature-card::before {
  content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 8px; background: var(--card-accent-soft, #EAF1FE); color: var(--card-accent, var(--blue));
  font-weight: 800; font-size: 14px;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--card-accent, var(--blue)); box-shadow: var(--shadow-lg); }

.status-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-left: 4px solid var(--card-accent, var(--blue)); border-radius: 14px;
  padding: 20px 24px; box-shadow: var(--shadow);
}
.status-banner p { margin: 0; color: var(--text-dim); font-size: 15px; }
