/* ═══════════════════════════════════════════════════════════
   TENSAW — Global Stylesheet
   Aesthetic: Refined dark enterprise · Gold accent · Editorial
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --bg:             #0B0F1A;
  --bg-card:        #111827;
  --bg-card-hover:  #1a2235;
  --surface:        #162032;
  --surface-light:  #1e2d45;
  --accent:         #D4A853;
  --accent-dim:     rgba(212,168,83,0.15);
  --accent-bright:  #F0C96E;
  --text:           #E8ECF2;
  --text-dim:       #8B95A8;
  --text-muted:     #5A6478;
  --border:         rgba(212,168,83,0.12);
  --border-light:   rgba(255,255,255,0.06);
  --success:        #34D399;
  --warning:        #FBBF24;
  --danger:         #EF4444;
  --info:           #60A5FA;
  --purple:         #A78BFA;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-xs:      6px;
  --max-w:          1200px;
  --nav-h:          72px;
  --font-display:   'DM Serif Display', serif;
  --font-body:      'Outfit', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(212,168,83,0.35);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── Typography ─────────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}

h1.t-display { font-size: clamp(40px, 5.5vw, 72px); }
h2.t-display { font-size: clamp(28px, 3.5vw, 48px); }
h3.t-display { font-size: clamp(22px, 2.5vw, 36px); }

.t-accent { color: var(--accent); }

.t-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
}

.t-body-lg {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-dim);
}

.t-small {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.t-xs {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section {
  padding: 120px 0;
}

.section--sm {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex       { display: flex; }
.flex-wrap  { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.text-center { text-align: center; }

.max-w-600 { max-width: 600px; }
.max-w-640 { max-width: 640px; }
.max-w-680 { max-width: 680px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.mt-80 { margin-top: 80px; }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-light);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

.nav__divider {
  width: 1px;
  height: 20px;
  background: var(--border-light);
  margin: 0 8px;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Panel */
.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(11,15,26,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 32px 24px;
}

.nav__mobile.open { display: block; }

.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__mobile a:hover,
.nav__mobile a.active { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(212,168,83,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 15px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.card--static {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
}

.card--bordered-left {
  padding: 32px 28px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(212,168,83,0.25);
}

.badge--blue    { background: rgba(96,165,250,0.12);  color: var(--info);    border-color: rgba(96,165,250,0.25); }
.badge--green   { background: rgba(52,211,153,0.12);  color: var(--success); border-color: rgba(52,211,153,0.25); }
.badge--yellow  { background: rgba(245,158,11,0.12);  color: #F59E0B;       border-color: rgba(245,158,11,0.25); }
.badge--purple  { background: rgba(167,139,250,0.12); color: var(--purple);  border-color: rgba(167,139,250,0.25); }
.badge--danger  { background: rgba(239,68,68,0.12);   color: var(--danger);  border-color: rgba(239,68,68,0.25); }

/* ── Section Label ──────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label__line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-label__text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Dot & Bullet Decorations ───────────────────────────── */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dot--diamond {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}

.check-icon {
  color: var(--success);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.cross-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.cross-icon {
  color: var(--danger);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 48px;
}

.tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Pill tabs */
.pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
}

.pill-tab:hover { border-color: var(--text-muted); color: var(--text); }

.pill-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Filter pills (smaller) */
.filter-pill {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
}

.filter-pill:hover { border-color: var(--text-muted); }
.filter-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Flow Visualization ─────────────────────────────────── */
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22,32,50,0.55), rgba(17,24,39,0.55));
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 0;
}

.flow-step {
  text-align: center;
  padding: 8px 20px;
  min-width: 140px;
}

.flow-step__icon { font-size: 28px; margin-bottom: 8px; }
.flow-step__label { font-size: 16px; font-weight: 700; color: var(--text); }
.flow-step__desc  { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* ── Blockquote ─────────────────────────────────────────── */
.blockquote {
  padding: 40px 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface), var(--bg-card));
  border-left: 4px solid var(--accent);
}

.blockquote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

/* ── Step Counter ───────────────────────────────────────── */
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* ── Numbered Differentiator ────────────────────────────── */
.differ {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.differ__num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.differ__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* ── Metric Tag ─────────────────────────────────────────── */
.metric-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}

/* ── Form Inputs ────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea { resize: vertical; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(212,168,83,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(96,165,250,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.2), transparent);
}

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  padding-top: 80px;
}

/* ── Surface Backgrounds ────────────────────────────────── */
.bg-surface  { background: linear-gradient(180deg, rgba(22,32,50,0.28), transparent); }
.bg-gradient { background: linear-gradient(135deg, var(--surface), var(--bg-card)); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Scroll Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Image Placeholders ─────────────────────────────────── */
/* Use this class for image containers where you plan to add images later */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Use this for actual images */
.img-rounded {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links   { display: none !important; }
  .nav__toggle  { display: flex !important; }

  .container { padding-left: 20px; padding-right: 20px; }
  .section   { padding: 80px 0; }

  .hero { min-height: 80vh; }

  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }

  .differ {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .differ__num { font-size: 32px; }

  .flow-bar { flex-direction: column; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }

  .blockquote { padding: 28px 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .solutions-detail { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  h1.t-display { font-size: 32px; }
  .btn--lg { padding: 14px 28px; font-size: 14px; }
}
