/* ==========================================================================
   Care Mane DX Lab - Portfolio & Product LP Stylesheet
   ========================================================================== */

:root {
  --color-dark: #090d16;
  --color-panel: #111827;
  --color-card: #1f2937;
  --color-light: #f9fafb;
  --color-muted: #9ca3af;
  
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-accent: #0d9488;
  --brand-teal: #14b8a6;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: #e5e7eb;

  --font-main: 'Inter', 'Noto Sans JP', sans-serif;
  --font-title: 'Outfit', 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: #f3f4f6;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.bg-panel { background-color: var(--color-panel); }
.bg-dark { background-color: var(--color-dark); }
.text-center { text-center: center; text-align: center; }
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: #f3f4f6;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #9ca3af;
}

.btn-ghost {
  background: none;
  color: var(--color-muted);
}

.btn-ghost:hover {
  color: #fff;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.825rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.text-danger { color: #ef4444; }
.text-primary { color: #3b82f6; }
.text-warning { color: #f59e0b; }
.text-success { color: #10b981; }
.style-hidden { display: none !important; }

/* Navbar */
.navbar {
  height: 72px;
  background-color: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--color-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  flex-wrap: nowrap;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a i {
  font-size: 0.85rem;
  color: var(--brand-teal);
  opacity: 0.9;
}

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

.nav-links a:hover i {
  color: #38bdf8;
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 0 4rem 0;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(20, 184, 166, 0.1) 50%, rgba(0,0,0,0) 80%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.stat-number small {
  font-size: 0.9rem;
  color: var(--brand-teal);
}

.stat-label {
  font-size: 0.775rem;
  color: var(--color-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-color);
}

/* Hero Visual Deck */
.visual-card-stack {
  position: relative;
}

.vcard {
  background-color: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}

.vcard-header {
  background-color: #111827;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.vcard-dots {
  display: flex;
  gap: 6px;
}

.vcard-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background-color: #374151;
}

.vcard-title {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.vcard-body {
  padding: 1.5rem;
}

.vcard-user-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255,255,255,0.03);
  padding: 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.vcard-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.vcard-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.vcard-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.status-chip {
  margin-left: auto;
  font-size: 0.725rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.vcard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-box {
  background-color: #111827;
  padding: 0.85rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.m-title {
  font-size: 0.725rem;
  color: var(--color-muted);
}

.m-val {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-teal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Live Developed Apps Showcase Grid */
.border-bottom-panel {
  border-bottom: 1px solid var(--border-color);
}

.apps-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.app-card {
  background-color: var(--color-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(37, 99, 235, 0.6);
}

.app-card.highlight-card {
  border-color: rgba(20, 184, 166, 0.4);
  background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
}

.app-card.highlight-card:hover {
  border-color: rgba(20, 184, 166, 0.8);
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.app-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.badge-teal {
  background-color: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.3);
  color: #2dd4bf;
}

.app-tag {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.app-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.app-card-body h3 small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.app-desc {
  font-size: 0.925rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.app-card-footer {
  margin-top: auto;
}

.btn-teal {
  background-color: #0d9488;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-teal:hover {
  background-color: #0f766e;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background-color: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.5);
}

.feature-icon-wrapper {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.icon-teal { background-color: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.icon-blue { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.icon-indigo { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-amber { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.825rem;
}

.feature-checklist i {
  color: var(--brand-teal);
  margin-right: 0.35rem;
}

/* Interactive Demo Simulator */
.demo-simulator-card {
  background-color: var(--color-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;

}

.sim-stage {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.sim-box {
  flex: 1;
  background-color: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  min-height: 220px;
}

.sim-box h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.file-item {
  background-color: #111827;
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-teal);
  font-size: 1.5rem;
}

.sim-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-align: center;
}

.folder-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.folder-card {
  background-color: #111827;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}

.folder-head {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.folder-contents {
  font-size: 0.75rem;
  color: var(--color-muted);
  padding-left: 1.2rem;
}

.empty-text { font-style: italic; color: #4b5563; }

.sim-success-banner {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #34d399;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.comp-card {
  background-color: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.comp-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.badge-red { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-green { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.925rem;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.6;
}

/* Representative Profile Section */
.profile-card-wrapper {
  background-color: var(--color-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.profile-avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-logo-frame {
  width: 140px; height: 140px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  margin-bottom: 1.25rem;
  border: 2px solid var(--brand-teal);
}

.profile-logo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.profile-name-tag h3 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.p-title {
  display: block;
  font-size: 0.775rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.p-domain {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--brand-teal);
}

.profile-text-column h2 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.profile-bio {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.profile-highlights {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ph-item {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background-color: #111827;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: #e5e7eb;
}

.ph-item i { color: var(--brand-teal); margin-right: 0.3rem; }

/* Contact Section */
.contact-box-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  background-color: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
}

.contact-info-col h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.contact-info-col p {
  color: var(--color-muted);
  font-size: 0.925rem;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ci-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ci-item i {
  width: 42px; height: 42px;
  border-radius: 10px;
  background-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ci-label {
  display: block;
  font-size: 0.725rem;
  color: var(--color-muted);
}

.ci-val {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.req { color: #ef4444; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background-color: #111827;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.success-banner {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #34d399;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: #050811;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 32px; height: 32px;
  border-radius: 6px;
}

.f-title { font-weight: 700; display: block; font-size: 0.95rem; }
.f-sub { font-size: 0.75rem; color: var(--color-muted); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-links a:hover { color: #fff; }

.copyright {
  font-size: 0.75rem;
  color: #4b5563;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

/* Responsive Adjustments */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .features-grid,
  .comparison-grid,
  .contact-box-wrapper,
  .profile-card-wrapper {
    grid-template-columns: 1fr;
  }

  .sim-stage {
    flex-direction: column;
  }

  .desktop-only { display: none; }
  .mobile-only { display: block; }
}
