/* MON&CHICHI Tech Solutions — California tech aesthetic */
:root {
  --bg-dark: #0c1222;
  --bg-card: #141c2e;
  --bg-elevated: #1a2438;
  --text: #e8ecf4;
  --text-muted: #8b9bb5;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-hover: #fbbf24;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 700px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 底层：程序员写代码的虚化背景图 */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -15%;
  background-image: url('https://images.unsplash.com/photo-1717802019159-74496e3ee504?w=1920&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  z-index: 0;
}

/* 中层：深色半透明遮罩，让文字可读且能透出背景 */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.75) 0%, rgba(12, 18, 34, 0.82) 50%, rgba(12, 18, 34, 0.88) 100%),
    radial-gradient(ellipse 70% 40% at 50% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* About */
.about {
  background: var(--bg-dark);
}

.about-content {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .about-content {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
  }
}

.about-main {
  max-width: 60ch;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.about-main p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-main p:last-child {
  margin-bottom: 0;
}

.about-main strong {
  color: var(--text);
  font-weight: 600;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-highlights {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.about-highlights h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--accent);
}

.about-highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-highlights li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.about-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.about-highlights li:last-child {
  margin-bottom: 0;
}

.about-highlights strong {
  color: var(--text);
  font-weight: 600;
}

.about-meta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.about-meta p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-meta p:last-child {
  margin-bottom: 0;
}

.about-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Services */
.services {
  background: var(--bg-card);
}

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

/* Strategy */
.strategy {
  background: var(--bg-dark);
}

.strategy-intro {
  max-width: 65ch;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.strategy-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pillar;
  display: grid;
  gap: 1.5rem;
}

.strategy-pillar {
  counter-increment: pillar;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  padding-left: 4rem;
  position: relative;
  transition: border-color 0.2s;
}

.strategy-pillar:hover {
  border-color: rgba(245, 158, 11, 0.25);
}

.strategy-pillar::before {
  content: counter(pillar);
  position: absolute;
  left: 1.25rem;
  top: 1.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.strategy-pillar h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.strategy-pillar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.team-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.team-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.team-role {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.team-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  background: var(--bg-card);
}

/* Contact form */
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row-split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 520px) {
  .form-row-split {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.required {
  color: var(--accent);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form select {
  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 12 12' fill='%238b9bb5'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.contact-form .btn {
  min-width: 160px;
}

.contact-form .btn:disabled {
  opacity: 0.9;
  cursor: default;
}

.form-config-hint {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-divider span {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-tech {
  border-left: 3px solid var(--accent);
}

.contact-billing {
  border-left: 3px solid #3b82f6;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-card > p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-billing .contact-list a {
  color: #60a5fa;
}

.contact-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-billing .contact-list a:hover {
  color: #93c5fd;
}

.contact-extra {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-extra a {
  color: var(--accent);
  text-decoration: none;
}

.contact-extra a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}

.footer-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
