/* ========================================
   Andrew · IT Services — Styles
   ======================================== */

:root {
  --bg: #0a0e17;
  --bg-alt: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #1f2937;
  --border: #1f2937;
  --border-light: #2d3748;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --nav-height: 64px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography for Japanese */
:root[lang="ja"] body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo:hover { color: var(--accent-light); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

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

.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

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

.lang-btn.active {
  background: var(--accent);
  color: white;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
  position: relative;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta { margin-bottom: 32px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-note {
  margin-top: 24px;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.detail-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Pricing Card */
.pricing-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), var(--bg-card));
}

.price-big {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.price-range {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

/* Pricing Table */
.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 24px;
  text-align: left;
  font-size: 15px;
}

.pricing-table thead th {
  background: var(--bg-card);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody td {
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: rgba(59, 130, 246, 0.03); }

.pricing-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tech-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.tech-item {
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-glow);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Consulting Grid */
.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.consulting-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.consulting-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.consulting-stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.consulting-label {
  font-size: 14px;
  color: var(--text-muted);
}

.consulting-includes {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Process */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  flex: 0 0 140px;
}

.step-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-light);
  opacity: 0.3;
  margin-bottom: 8px;
  line-height: 1;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-muted);
}

.process-arrow {
  font-size: 20px;
  color: var(--text-muted);
  margin-top: 12px;
  flex: 0 0 auto;
}

/* Case Studies */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.case-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-metrics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-metrics li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-metrics li strong {
  color: var(--green);
  font-size: 15px;
  min-width: 48px;
}

/* Contact */
.section-cta {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.contact-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 50%;
  color: var(--accent-light);
}

.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Footer */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    backdrop-filter: blur(16px);
  }

  .mobile-menu-btn { display: flex; }

  .hero { padding: 120px 0 80px; }
  .hero-title { font-size: 32px; }

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

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

  .process-steps { flex-direction: column; align-items: center; }
  .process-arrow { transform: rotate(90deg); margin: 4px 0; }

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

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-title { font-size: 28px; }
  .section-title { font-size: 28px; }
}
