/* =====================================================
   ENTROPY COOLING — DESIGN SYSTEM
   ===================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F7;
  --color-bg-dark: #1D1D1F;
  --color-text: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-accent: #0066CC;
  --color-accent-hover: #0055AA;
  --color-border: #D2D2D7;
  --color-card: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --nav-height: 56px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--color-accent); color: #fff;
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  font-size: 14px; text-decoration: none; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* CONTAINER */
.container {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex;
  align-items: center; gap: 32px;
}

.nav-logo {
  font-size: 17px; font-weight: 600;
  color: var(--color-text); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}

.nav-links {
  display: flex; list-style: none; gap: 28px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px; color: var(--color-text);
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--color-accent); }

.nav-cta { margin-left: 16px; white-space: nowrap; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: 0.2s;
}

.mobile-menu {
  display: flex; flex-direction: column;
  background: var(--color-bg); border-top: 1px solid var(--color-border);
  padding: 16px 24px 24px;
}
.mobile-menu[hidden] { display: none; }
.mobile-link {
  font-size: 16px; color: var(--color-text);
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-link:last-child { border-bottom: none; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; font-family: var(--font);
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent); color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-secondary {
  background: transparent; color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-secondary:hover { background: var(--color-accent); color: #fff; }

.btn-full { width: 100%; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: var(--color-bg-alt);
  padding: 140px 0 120px;
  margin-top: var(--nav-height);
}
.hero-sm { padding: 120px 0 80px; }

.hero-content { text-align: center; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--color-text);
  max-width: 760px; margin: 0 auto 24px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--color-text-secondary); max-width: 600px;
  margin: 0 auto; line-height: 1.55;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); padding: 80px 0; }

.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--color-text-secondary); margin-bottom: 48px; }
.section-sub-light { font-size: 17px; color: #A1A1A6; margin-bottom: 48px; }
.centered { text-align: center; }

h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
p { color: var(--color-text-secondary); }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0; background: var(--color-bg);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { text-align: center; padding: 0 24px; border-right: 1px solid var(--color-border); }
.stat:last-child { border-right: none; }
.stat-number { display: block; font-size: clamp(36px, 5vw, 52px); font-weight: 700; color: var(--color-accent); letter-spacing: -0.03em; }
.stat-label { font-size: 14px; color: var(--color-text-secondary); margin-top: 6px; display: block; }

/* =====================================================
   CARDS
   ===================================================== */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}

.card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 32px;
}
.card h3 { color: var(--color-text); }
.card p { margin-top: 8px; font-size: 15px; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-bg-alt); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--color-accent);
}

/* =====================================================
   INDUSTRIES PILLS
   ===================================================== */
.section-dark h2 { color: #fff; }
.section-dark .section-sub-light { color: #A1A1A6; }

.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.pill {
  background: #2D2D2F; color: #fff;
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  border: 1px solid #3A3A3C;
}

/* =====================================================
   HOME CTA
   ===================================================== */
.home-cta { padding: 120px 0; }
.home-cta h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-text); margin-bottom: 16px; }
.home-cta .section-sub { margin-bottom: 32px; }

/* =====================================================
   STEPS (TECHNOLOGY PAGE)
   ===================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

.step-card {
  position: relative; padding: 32px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden;
}

.step-num {
  position: absolute; top: -8px; right: 16px;
  font-size: 80px; font-weight: 700; color: var(--color-bg-alt);
  line-height: 1; z-index: 0; user-select: none;
}
.step-card h3 { position: relative; z-index: 1; color: var(--color-text); font-size: 20px; margin-bottom: 12px; }
.step-card p { position: relative; z-index: 1; font-size: 15px; }

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.table-wrapper {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--color-border); margin-top: 40px;
}

.comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; }

.comparison-table thead tr { background: var(--color-bg-alt); }
.comparison-table th {
  padding: 16px 20px; text-align: left; font-size: 14px;
  font-weight: 600; color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.comparison-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(odd) { background: var(--color-bg-alt); }
.comparison-table tbody tr:nth-child(even) { background: var(--color-bg); }
.comparison-table td:first-child { color: var(--color-text); font-weight: 500; }

.col-highlight {
  background: #EBF3FF !important;
  color: var(--color-accent);
  font-weight: 600;
}
.comparison-table thead .col-highlight { background: #D6E9FF !important; }

.badge {
  display: inline-block; background: var(--color-accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 20px;
  margin-left: 8px; vertical-align: middle;
}

/* =====================================================
   SPECS
   ===================================================== */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.specs-grid h2 { margin-bottom: 20px; }
.specs-grid p { font-size: 16px; }

.spec-list { list-style: none; }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
  gap: 16px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-size: 14px; color: var(--color-text-secondary); flex: 1; }
.spec-row dd { font-size: 14px; font-weight: 500; color: var(--color-text); text-align: right; }

/* =====================================================
   PULL QUOTE
   ===================================================== */
.pull-quote {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 64px 0; border: none;
}
.pull-quote p {
  font-size: clamp(22px, 3vw, 32px); font-weight: 300;
  font-style: italic; line-height: 1.4; color: var(--color-text);
}
.pull-quote p::before { content: '\201C'; color: var(--color-accent); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; }
.pull-quote p::after  { content: '\201D'; color: var(--color-accent); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; }

/* =====================================================
   TEAM
   ===================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }

.team-card {
  text-align: center; padding: 32px 24px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
}
.avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--color-bg-alt); display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--color-accent);
  margin: 0 auto 20px;
}
.team-title { font-size: 13px; color: var(--color-accent); font-weight: 500; margin: 4px 0 10px; }
.team-bio { font-size: 14px; }
.team-card h3 { color: var(--color-text); }

/* =====================================================
   TIMELINE
   ===================================================== */
.timeline { list-style: none; position: relative; max-width: 640px; margin: 48px auto 0; }

.timeline::before {
  content: ''; position: absolute; left: 72px; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}

.timeline-item {
  display: flex; gap: 32px; align-items: flex-start;
  padding-bottom: 40px; position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-year {
  font-size: 14px; font-weight: 700; color: var(--color-accent);
  min-width: 56px; padding-top: 3px; text-align: right;
  position: relative;
}
.timeline-year::after {
  content: ''; position: absolute; right: -21px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-accent); border: 2px solid var(--color-bg-alt);
}

.timeline-content { padding-left: 12px; }
.timeline-content h3 { font-size: 17px; color: var(--color-text); margin-bottom: 6px; }
.timeline-content p { font-size: 15px; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-grid h2 { margin-bottom: 28px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--color-text); }
.form-group label span { color: var(--color-accent); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font);
  color: var(--color-text); background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 13px; color: var(--color-text-secondary); margin-top: -8px; }

.form-success {
  background: #EBF3FF; color: #004499;
  border: 1px solid #B3D4FF; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 15px; font-weight: 500;
}

.contact-info { padding: 40px; background: var(--color-bg-alt); border-radius: var(--radius); }
.contact-info h3 { font-size: 19px; color: var(--color-text); margin-bottom: 20px; }
.contact-detail { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-detail span { font-size: 14px; color: var(--color-text-secondary); display: block; }
.contact-detail a { color: var(--color-accent); text-decoration: none; font-size: 15px; }
.contact-detail p { font-size: 15px; color: var(--color-text); margin: 0; }
.contact-divider { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }

.map-placeholder {
  height: 280px; background: #E5E5EA; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-top: 48px; color: var(--color-text-secondary);
  font-size: 14px; text-align: center; padding: 24px;
  border: 2px dashed var(--color-border);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--color-bg-dark); padding: 60px 0 40px; }

.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid #2D2D2F;
}

.footer-logo { font-size: 17px; font-weight: 600; color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: #6E6E73; margin-top: 4px; }

.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 14px; color: #A1A1A6; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }

.footer-legal p { font-size: 12px; color: #6E6E73; margin-bottom: 8px; }
.footer-legal a { font-size: 13px; color: #A1A1A6; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .cards-grid, .steps-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .specs-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 100px 0 80px; }
  .hero-sm { padding: 100px 0 60px; }

  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat { border-right: none; border-bottom: 1px solid var(--color-border); padding: 0 0 32px; }
  .stat:last-child { border-bottom: none; }

  .cards-grid, .steps-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 56px; }
  .timeline-year { min-width: 40px; font-size: 13px; }

  .contact-info { padding: 24px; }

  .home-cta { padding: 80px 0; }
}
