/* ─── PRODUCT PAGE SHARED STYLES ─── */
/* Used by both corvus.html and kite.html                     */

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  padding: 5rem 0;
}

/* ─── FIXED HEADER / NAV ─── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 1000;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
}

/* Left side: logo image | wordmark + main nav column */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-logo-img {
  height: 56px;
  width: auto;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.logo-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.75rem;
  color: rgba(244, 241, 235, 0.45);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--gold); }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  text-decoration: none;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  color: rgba(244, 241, 235, 0.6);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Right side: product label on top, page nav below */
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

/* ─── NAV PRODUCT LABEL (right side, top row) ─── */
.nav-product-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
  line-height: 1;
  text-transform: uppercase;
}

/* ─── DARK FOOTER (matches home page) ─── */
footer {
  background: var(--ink-soft);
  padding: 3rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: rgba(244, 241, 235, 0.35);
  letter-spacing: 0.04em;
}

.footer-logo {
  display: block;
  opacity: 0.35;
}

.footer-logo img { height: 24px; }

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(244, 241, 235, 0.35);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(244, 241, 235, 0.7); }

/* ─── HERO (base; gradient overridden per product) ─── */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .mono {
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--paper);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: rgba(244, 241, 235, 0.85);
  max-width: 800px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
}

.metric-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(244, 241, 235, 0.7);
}

/* ─── OVERVIEW / TWO-COLUMN SECTION ─── */
.overview {
  background: var(--paper-warm);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.overview-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.overview-text p {
  margin-bottom: 1.5rem;
}

.overview-highlight {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem;
  border-radius: 2px;
}

.overview-highlight h3 {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.overview-highlight p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ─── WORKFLOW CHAIN ─── */
.workflow {
  background: white;
}

.workflow-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  overflow-x: auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.workflow-step {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--corvus);
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid var(--gold);
  white-space: nowrap;
}

.workflow-arrow {
  color: var(--gold);
  font-size: 1.25rem;
}

/* ─── EXPERIENCE PANELS ─── */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.experience-panel {
  background: var(--paper-warm);
  padding: 3rem;
  border-left: 3px solid var(--gold);
}

.experience-panel h3 {
  color: var(--corvus);
  margin-bottom: 2rem;
}

.experience-feature {
  margin-bottom: 2rem;
}

.experience-feature h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.experience-feature p {
  color: var(--slate);
  line-height: 1.7;
}

/* ─── FEATURES GRID (corvus style) ─── */
.features {
  background: var(--paper);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 17, 23, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: 'DM Mono', monospace;
  color: var(--paper);
  font-weight: 400;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--corvus);
}

.feature-card p {
  color: var(--slate);
  line-height: 1.7;
}

/* ─── DIFFERENTIATORS ─── */
.differentiators {
  background: var(--ink);
  color: var(--paper);
}

.differentiators .mono {
  color: var(--gold-light);
}

.differentiators h2 {
  color: var(--paper);
}

.diff-list {
  margin-top: 3rem;
}

.diff-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.diff-item:last-child {
  border-bottom: none;
}

.diff-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: block;
}

.diff-item h3 {
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.diff-item p {
  color: rgba(244, 241, 235, 0.85);
  line-height: 1.8;
  max-width: 900px;
}

/* ─── MARKET SECTION ─── */
.market {
  background: var(--paper-warm);
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.market-card {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--line);
}

.market-card h3 {
  color: var(--corvus);
  margin-bottom: 1.5rem;
}

.market-card p {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.market-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.market-card li {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--slate);
  line-height: 1.7;
}

.market-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ─── COMPARISON TABLE ─── */
.comparison {
  background: var(--paper);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
}

thead {
  background: var(--corvus);
  color: var(--paper);
}

th, td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: var(--paper-warm);
}

td {
  color: var(--slate);
  font-size: 0.95rem;
}

.table-highlight {
  background: var(--gold-light);
  color: var(--corvus);
  font-weight: 500;
}

/* ─── CTA SECTION ─── */
.cta {
  background: linear-gradient(135deg, var(--corvus) 0%, var(--kite) 100%);
  color: var(--paper);
  text-align: center;
  padding: 6rem 0;
}

.cta h2 {
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  color: rgba(244, 241, 235, 0.85);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--gold);
  color: var(--corvus);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background: var(--gold-light);
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0;
  text-align: center;
}

footer p {
  color: rgba(244, 241, 235, 0.6);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-links a {
  color: rgba(244, 241, 235, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* ─── DASHBOARD SHOWCASE (shared structure) ─── */
.dashboard-showcase {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.showcase-header h2 {
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.showcase-header p {
  font-size: 1.15rem;
  color: rgba(244, 241, 235, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

.dashboard-frame {
  background: #f8fafc;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 2rem;
}

.dash-logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.dash-company-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: #0f172a;
  font-weight: 500;
}

.dash-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.dash-user-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dash-user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.dash-user-name {
  color: #475569;
  font-size: 0.9rem;
}

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.dash-card {
  background: white;
  border-radius: 8px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dash-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-6  { grid-column: span 6; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-12 { grid-column: span 12; }

/* Metric cards */
.metric-card-large { text-align: center; }

.metric-card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-card-value.success {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card-value.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card-value.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card-label {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.metric-card-change {
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 500;
}

.metric-card-change.negative { color: #ef4444; }

/* Donut chart */
.donut-chart-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
}

.donut-chart { transform: rotate(-90deg); }

.donut-segment {
  transition: stroke-dashoffset 1.5s ease-out;
  animation: donutGrow 2s ease-out;
}

@keyframes donutGrow {
  from { stroke-dashoffset: 565; }
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-percentage {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1;
}

.donut-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-value {
  font-weight: 600;
  color: #0f172a;
}

/* Status list */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #e2e8f0;
  transition: all 0.3s;
}

.status-item:hover { background: #f1f5f9; transform: translateX(4px); }
.status-item.complete    { border-left-color: #10b981; }
.status-item.in-progress { border-left-color: #3b82f6; }
.status-item.pending     { border-left-color: #f59e0b; }
.status-item.critical    { border-left-color: #ef4444; }

.status-item-content { flex: 1; }

.status-item-title {
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.status-item-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.status-badge-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge-pill.complete    { background: #d1fae5; color: #065f46; }
.status-badge-pill.in-progress { background: #dbeafe; color: #1e40af; }
.status-badge-pill.pending     { background: #fef3c7; color: #92400e; }
.status-badge-pill.critical    { background: #fee2e2; color: #991b1b; }

/* Progress bars */
.progress-item { margin-bottom: 1.5rem; }
.progress-item:last-child { margin-bottom: 0; }

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label { font-weight: 500; color: #0f172a; font-size: 0.9rem; }
.progress-percentage { font-weight: 600; font-size: 0.9rem; }

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-out;
  animation: progressSlide 2s ease-out;
}

@keyframes progressSlide { from { width: 0; } }

.progress-bar-fill.success { background: linear-gradient(90deg, #10b981, #059669); }
.progress-bar-fill.warning { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-bar-fill.danger  { background: linear-gradient(90deg, #ef4444, #dc2626); }
.progress-bar-fill.primary { background: linear-gradient(90deg, #3b82f6, #2563eb); }

/* Bar / line chart */
.line-chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.line-point {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.point-bar {
  width: 100%;
  max-width: 60px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
  animation: barSlideUp 1s ease-out;
  min-height: 8px;
}

.point-bar.green { background: linear-gradient(180deg, #10b981, #059669); }
.point-bar.amber { background: linear-gradient(180deg, #f59e0b, #d97706); }
.point-bar.red   { background: linear-gradient(180deg, #ef4444, #dc2626); }

@keyframes barSlideUp { from { height: 0; opacity: 0; } to { opacity: 1; } }

.point-bar:hover { opacity: 0.8; transform: scaleY(1.02); }

.point-label {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.75rem;
  white-space: nowrap;
}

/* Client welcome banner */
.client-welcome {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.client-welcome h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.client-welcome p { opacity: 0.9; font-size: 0.95rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .dash-grid { grid-template-columns: 1fr; }
  .col-span-3, .col-span-4, .col-span-6, .col-span-8, .col-span-9, .col-span-12 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .overview-grid,
  .market-grid,
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .workflow-chain { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); }
  .nav-links { display: none; }
  .nav-product-label { display: none; }

  section { padding: 3rem 0; }

  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}
