/* ==========================================================================
   TengPower — Computer Systems Design & Related Services
   Light theme · teal accent · warm ivory base
   ========================================================================== */

:root {
  --bg: #F5F3EC;
  --surface: #FFFFFF;
  --ink: #171815;
  --muted: #62655C;
  --accent: #0E7C76;
  --accent-deep: #0A5651;
  --accent-bright: #14A196;
  --accent-soft: #E0EFEC;
  --line: #E4E0D4;
  --dark: #10322F;
  --dark-2: #0A2624;
  --dark-text: #EAF0EE;
  --dark-muted: #A9BEBA;
  --gold: #C9A227;
  --shadow: 0 18px 40px -18px rgba(16, 50, 47, 0.28);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Sidebar navigation (unique: vertical rail) ---------- */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--dark);
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  z-index: 60;
  transition: transform 0.32s ease;
}

.nav-brand {
  margin-bottom: 34px;
}

.nav-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.nav-brand .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.nav-brand .brand-tag {
  font-size: 12px;
  color: var(--dark-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--dark-muted);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a .nav-num {
  font-size: 11px;
  color: var(--accent-bright);
  font-weight: 700;
  width: 18px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.nav-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  margin-top: 16px;
}

.nav-contact .contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 10px;
  font-weight: 700;
}

.nav-contact a,
.nav-contact span {
  display: block;
  font-size: 14px;
  color: var(--dark-muted);
  margin-bottom: 6px;
}

.nav-cta {
  margin-top: 18px;
  display: inline-block;
  background-color: var(--accent);
  color: #FFFFFF;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-bright);
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background-color: var(--dark);
  color: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 38, 36, 0.55);
  z-index: 55;
}

/* ---------- Main content shell ---------- */

.site-main {
  margin-left: 280px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero h1 {
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent-deep);
}

.hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary:hover {
  background-color: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Hero visual: floating stat cluster */

.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-card {
  position: absolute;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-card.main {
  top: 20px;
  right: 0;
  width: 74%;
  z-index: 2;
}

.hero-card.main .big-stat {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-card.main .stat-label {
  font-size: 14px;
  color: var(--muted);
}

.hero-card.float-1 {
  top: 0;
  left: 0;
  width: 46%;
  z-index: 1;
}

.hero-card.float-2 {
  bottom: 0;
  left: 12%;
  width: 52%;
  z-index: 3;
}

.hero-card .chip {
  display: inline-block;
  background-color: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.hero-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-card .card-sub {
  font-size: 13px;
  color: var(--muted);
}

.hero-card .progress {
  height: 8px;
  background-color: var(--line);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.hero-card .progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 10px;
}

/* ---------- Stats band ---------- */

.stats-band {
  background-color: var(--dark);
  color: var(--dark-text);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: left;
}

.stat-item .stat-number {
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.stat-item .stat-number .suffix {
  color: var(--accent-bright);
}

.stat-item .stat-name {
  font-size: 13px;
  color: var(--dark-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ---------- About ---------- */

.about-section {
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.about-section h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.about-section .lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 16px;
}

.about-section p {
  color: var(--muted);
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  margin-top: 8px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
}

.check-list li .tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Process (numbered) ---------- */

.process-section {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
}

.process-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.process-section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.process-head p {
  max-width: 380px;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process-item {
  position: relative;
  padding-top: 20px;
  border-top: 3px solid var(--accent);
}

.process-item .step-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 12px;
}

.process-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Capabilities (big-numeral feature rows) ---------- */

.capabilities-section {
  padding: 90px 0;
}

.capabilities-section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

.cap-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.cap-row:last-child {
  border-bottom: 1px solid var(--line);
}

.cap-row .cap-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1;
}

.cap-row h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cap-row p {
  font-size: 15px;
  color: var(--muted);
}

.cap-row .cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-row .cap-tags span {
  background-color: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---------- Comparison table ---------- */

.comparison-section {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
}

.comparison-section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface);
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.compare-table thead th {
  background-color: var(--dark);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
}

.compare-table thead th.highlight {
  background-color: var(--accent);
}

.compare-table tbody tr:hover {
  background-color: #FBF9F3;
}

.compare-table .yes {
  color: var(--accent-deep);
  font-weight: 800;
}

.compare-table .no {
  color: #B0B0A8;
}

.compare-table .row-label {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- FAQ (accordion) ---------- */

.faq-section {
  padding: 90px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq-section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.faq-section .faq-intro {
  color: var(--muted);
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .faq-icon {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--accent-deep);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--dark), var(--dark-2));
  color: var(--dark-text);
  padding: 84px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.cta-band h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--dark-muted);
  font-size: 17px;
  max-width: 520px;
}

.cta-form {
  background-color: #FFFFFF;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.cta-form .form-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.cta-form .form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  background-color: #FBF9F3;
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 88px;
}

.form-status {
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  min-height: 20px;
  color: var(--accent-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--dark-2);
  color: var(--dark-muted);
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 180px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #13342F;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.footer-news {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 44px 0;
}

.footer-news .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-news h3 {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-news p {
  font-size: 14px;
  color: var(--dark-muted);
}

.news-form {
  display: flex;
  gap: 10px;
}

.news-form input {
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 14px;
  min-width: 260px;
}

.news-form input::placeholder {
  color: var(--dark-muted);
}

.news-form button {
  padding: 12px 22px;
  border-radius: 9px;
  border: none;
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
}

.footer-main {
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--dark-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #FFFFFF;
}

.footer-contact li {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-contact a {
  color: var(--dark-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-bottom a {
  color: var(--dark-muted);
  margin-left: 18px;
  font-size: 13px;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ---------- Scroll reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 44px;
  }
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .main-nav {
    transform: translateX(-100%);
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  body.nav-open .nav-overlay {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .site-main {
    margin-left: 0;
  }

  .hero {
    padding-top: 96px;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .faq-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cap-row {
    grid-template-columns: 1fr;
  }

  .footer-watermark {
    font-size: 110px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 22px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-card.main {
    width: 90%;
  }

  .hero-card.float-1,
  .hero-card.float-2 {
    display: none;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }

  .news-form {
    width: 100%;
    flex-direction: column;
  }

  .news-form input {
    min-width: 0;
  }
}
