/* ============================================
   翼颢网络 - 企业官网样式表
   Design System: 蓝图白风格
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-canvas: #fbfbfc;
  --bg-card: #ffffff;
  --bg-secondary: #f0f2f5;
  --text-primary: #1a1f2e;
  --text-secondary: #5f6368;
  --border-color: #e8eaed;
  --accent-orange: #ec652b;
  --accent-orange-hover: #d9551f;
  --accent-orange-light: rgba(236, 101, 43, 0.08);
  --status-blue: #e8f0fe;
  --status-green: #e6f4ea;
  --status-green-deep: #16ca2e;
  --footer-bg: #1a1f2e;
  --footer-text: #ffffff;

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;

  /* Spacing */
  --space-unit: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;

  /* Layout */
  --max-width: 1200px;
  --container-padding: 24px;
  --border-radius: 8px;

  /* Shadows */
  --shadow-card: rgba(0, 0, 0, 0.04) 0px 2px 8px;
  --shadow-card-hover: rgba(0, 0, 0, 0.08) 0px 4px 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 12px 12px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-orange);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: 48px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
  font-weight: 600;
}

h5 {
  font-size: 16px;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-mono {
  font-family: var(--font-mono);
  font-weight: 700;
}

.text-accent {
  color: var(--accent-orange);
}

.text-secondary {
  color: var(--text-secondary);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 101, 43, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--accent-orange-light);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-text:hover {
  color: var(--accent-orange);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

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

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand:hover {
  color: var(--text-primary);
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.navbar-brand .brand-logo {
  height: 28px;
  max-height: 28px;
  width: auto;
  max-width: 120px;
  border-radius: 4px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-normal);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-primary);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  padding-top: 144px;
  padding-bottom: var(--space-2xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: var(--space-lg);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

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

.hero-panel {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.workflow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-orange);
}

.workflow-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.workflow-connector {
  flex: 0 0 40px;
  height: 2px;
  background: var(--border-color);
  position: relative;
  margin: 0 -8px;
  margin-bottom: 20px;
}

.workflow-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-orange);
  border-bottom: 2px solid var(--accent-orange);
  transform: rotate(-45deg);
}

/* --- Capability Matrix --- */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.matrix-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.matrix-table th:first-child {
  width: 200px;
}

.matrix-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.matrix-table tbody tr {
  transition: background var(--transition-fast);
}

.matrix-table tbody tr:hover {
  background: var(--bg-secondary);
}

.matrix-table tbody tr:hover td {
  border-bottom-color: transparent;
}

.matrix-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.matrix-check.full {
  background: var(--accent-orange);
}

.matrix-check.full svg {
  stroke: white;
}

.matrix-check.partial {
  border: 2px solid var(--border-color);
  background: transparent;
}

.matrix-check.partial svg {
  stroke: var(--text-secondary);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 3px solid var(--bg-canvas);
  box-shadow: 0 0 0 2px var(--accent-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-orange); }
  50% { box-shadow: 0 0 0 6px rgba(236, 101, 43, 0.2); }
}

.timeline-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.timeline-client {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.timeline-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.timeline-stage {
  padding: 12px 16px;
  border-radius: 6px;
}

.timeline-stage.problem {
  background: var(--bg-secondary);
}

.timeline-stage.solution {
  background: var(--status-blue);
}

.timeline-stage.result {
  background: var(--status-green);
}

.stage-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.timeline-stage.result .stage-label {
  color: var(--accent-orange);
}

.stage-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-stage.result .stage-value {
  color: var(--accent-orange);
}

.stage-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Team & Trust --- */
.team-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.team-member {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  filter: saturate(0.7);
}

.member-info h5 {
  margin-bottom: 2px;
}

.member-info p {
  font-size: 12px;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cert-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  filter: grayscale(1);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.cert-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateX(4px);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--status-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 24px;
  height: 24px;
  stroke: #1a73e8;
}

.cert-info h5 {
  font-size: 14px;
  margin-bottom: 2px;
}

.cert-info p {
  font-size: 12px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.trust-item {
  text-align: center;
}

.trust-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.trust-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  position: relative;
  display: inline-block;
}

.trust-label::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
}

/* --- CTA Form --- */
.cta-section {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--accent-orange);
}

.form-input {
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--accent-orange);
  border-bottom-width: 2px;
}

.form-input::placeholder {
  color: #adb5bd;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input {
  border-bottom-color: #dc3545;
}

.form-group.error .form-error {
  display: block;
}

.receipt-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  text-align: center;
}

.receipt-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--status-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--status-green-deep);
}

.receipt-card h4 {
  margin-bottom: 8px;
}

.receipt-card p {
  font-size: 13px;
  margin-bottom: 4px;
}

.receipt-time {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-orange) !important;
  margin-top: var(--space-md) !important;
}

/* --- Footer --- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-col h5 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-tags span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* --- Services Page --- */
.page-header {
  padding-top: 120px;
  padding-bottom: var(--space-xl);
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-orange);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: var(--space-md);
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
}

.service-link:hover {
  gap: 10px;
}

/* --- Service Detail Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.service-sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.service-sidebar h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.service-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.service-nav a:hover,
.service-nav a.active {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
}

.service-main {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}

.service-main h2 {
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.service-main .service-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.feature-text h5 {
  font-size: 14px;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 12px;
}

.service-architecture {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.service-architecture h4 {
  margin-bottom: var(--space-md);
}

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.arch-node {
  text-align: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  min-width: 120px;
}

.arch-node svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-orange);
  margin-bottom: 8px;
}

.arch-node span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.arch-arrow {
  color: var(--text-secondary);
  font-size: 20px;
}

.service-pricing {
  margin-top: var(--space-lg);
}

.service-pricing h4 {
  margin-bottom: var(--space-md);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background: var(--bg-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pricing-table td {
  font-size: 14px;
}

.pricing-table .price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-orange);
}

/* --- Case Studies Page --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.case-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.case-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.case-header {
  padding: var(--space-lg);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-orange);
  font-size: 18px;
  flex-shrink: 0;
}

.case-header-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.case-header-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

.case-body {
  padding: var(--space-lg);
}

.case-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.case-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.case-summary-item .label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
}

.case-summary-item.result .value {
  color: var(--accent-orange);
  font-weight: 600;
}

.case-footer {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* --- Case Detail Page --- */
.case-detail-hero {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.case-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.case-detail-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--accent-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-orange);
}

.case-detail-title h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.case-detail-title .meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.case-detail-title .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.case-stages-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.stage-detail-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.stage-detail-card.problem {
  border-top: 3px solid var(--text-secondary);
}

.stage-detail-card.solution {
  border-top: 3px solid #1a73e8;
}

.stage-detail-card.result {
  border-top: 3px solid var(--accent-orange);
}

.stage-detail-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.stage-detail-card.problem h4 { color: var(--text-secondary); }
.stage-detail-card.solution h4 { color: #1a73e8; }
.stage-detail-card.result h4 { color: var(--accent-orange); }

.stage-detail-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-detail-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.stage-detail-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
}

.stage-detail-card.result ul li::before {
  background: var(--accent-orange);
}

.stage-detail-card .metric {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: var(--space-md);
}

.case-tech-stack {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.case-tech-stack h4 {
  margin-bottom: var(--space-md);
}

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

.tech-tag {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.about-intro h2 {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.about-intro p {
  font-size: 16px;
  line-height: 1.8;
}

.about-visual {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  text-align: center;
}

.about-visual .big-number {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
}

.about-visual .big-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.history-timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

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

.history-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.history-item:nth-child(odd) {
  flex-direction: row;
}

.history-item:nth-child(even) {
  flex-direction: row-reverse;
}

.history-content {
  width: 45%;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.history-item:nth-child(odd) .history-content {
  margin-right: auto;
}

.history-item:nth-child(even) .history-content {
  margin-left: auto;
}

.history-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 3px solid var(--bg-canvas);
  z-index: 1;
}

.history-year {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 4px;
}

.history-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.history-content p {
  font-size: 13px;
}

.about-team {
  margin-top: var(--space-2xl);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.about-member {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  text-align: center;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-secondary);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-secondary);
}

.about-member h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.about-member .role {
  font-size: 13px;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.about-member .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.about-member .skills span {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  color: var(--text-secondary);
}

.about-certs {
  margin-top: var(--space-2xl);
}

.certs-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.cert-badge {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  text-align: center;
  filter: grayscale(0.8);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.cert-badge:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px);
}

.cert-badge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: var(--status-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge-icon svg {
  width: 32px;
  height: 32px;
  stroke: #1a73e8;
}

.cert-badge h5 {
  font-size: 14px;
  margin-bottom: 4px;
}

.cert-badge p {
  font-size: 12px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-orange);
}

.contact-item h5 {
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
}

.contact-map {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.contact-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.map-pin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.map-pin svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-orange);
  fill: var(--accent-orange-light);
}

.map-pin span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}

.contact-form-card h3 {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-select {
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-select:focus {
  border-bottom-color: var(--accent-orange);
  border-bottom-width: 2px;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload:hover {
  border-color: var(--accent-orange);
  background: var(--accent-orange-light);
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

.file-upload span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(236, 101, 43, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-orange-dark, #d4571f);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 500px;
  }

  .team-trust {
    grid-template-columns: 1fr;
  }

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

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

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

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

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

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

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .section { padding: var(--space-xl) 0; }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav a {
    padding: 12px 16px;
    width: 100%;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-actions .btn-text {
    display: none;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

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

  .hero-workflow {
    flex-wrap: wrap;
    gap: 16px;
  }

  .workflow-connector {
    display: none;
  }

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

  .timeline-stages {
    grid-template-columns: 1fr;
  }

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

  .service-features {
    grid-template-columns: 1fr;
  }

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

  .case-stages-detail {
    grid-template-columns: 1fr;
  }

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

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

  .about-intro {
    grid-template-columns: 1fr;
  }

  .history-timeline::before {
    left: 20px;
  }

  .history-item,
  .history-item:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }

  .history-content {
    width: 100%;
  }

  .history-dot {
    left: 20px;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .certs-wall {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
