/* ==========================================================================
   debrutal UG — Design System & Stylesheet
   Modern Architectural Brutalism: Clean structural lines, technical precision
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --color-pine: #386749;
  --color-pine-rgb: 56, 103, 73;
  --color-slate: #263138;
  --color-slate-rgb: 38, 49, 56;
  --color-sage-light: #9EBCA6;

  /* Architectural Light Palette */
  --bg-primary: #F2F4F5;          /* Granite Mist */
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #E3E7EB;   /* Raw Concrete */
  --bg-card: #FFFFFF;
  --border-subtle: #D2D7DF;       /* Anodized Steel */
  --border-strong: #263138;       /* Basalt Slate */
  --text-main: #263138;
  --text-muted: #576574;
  --text-dim: #8395A7;
  
  --accent-pine: #386749;
  --accent-pine-hover: #2B5038;
  --accent-pine-subtle: rgba(56, 103, 73, 0.08);
  --accent-sage: #9EBCA6;
  --accent-sage-subtle: rgba(158, 188, 166, 0.2);

  --badge-bg: #E3E7EB;
  --badge-text: #263138;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

  /* Structure & Elevation */
  --max-width: 1140px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 9999px;
  --shadow-architectural: 0 4px 0 var(--border-strong);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);

  --header-height: 72px;
}

[data-theme="dark"] {
  --bg-primary: #12161A;          /* Architectural Black */
  --bg-surface: #1B2228;          /* Dark Basalt */
  --bg-surface-subtle: #242D35;
  --bg-card: #181F25;
  --border-subtle: #2C3842;
  --border-strong: #9EBCA6;
  --text-main: #F2F4F5;
  --text-muted: #9EB1C0;
  --text-dim: #687987;

  --accent-pine: #4E8C65;
  --accent-pine-hover: #5EA878;
  --accent-pine-subtle: rgba(78, 140, 101, 0.15);
  --accent-sage: #9EBCA6;
  --accent-sage-subtle: rgba(158, 188, 166, 0.15);

  --badge-bg: #242D35;
  --badge-text: #9EBCA6;

  --shadow-architectural: 0 4px 0 var(--accent-sage);
  --shadow-subtle: 0 1px 4px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    linear-gradient(to right, rgba(131, 149, 167, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(131, 149, 167, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

/* ==========================================================================
   Comparison & Controls Bar (Top Floating Bar)
   ========================================================================== */
.version-control-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  position: relative;
  z-index: 1000;
}

.version-control-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.version-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface-subtle);
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.version-switcher-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.35rem;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  color: var(--text-muted);
}

.version-pill:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.version-pill.active {
  background: var(--text-main);
  color: var(--bg-primary);
  font-weight: 700;
}

.global-toggles {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle, .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-main);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover, .theme-toggle:hover {
  border-color: var(--text-main);
}

.lang-btn {
  font-weight: 400;
  color: var(--text-dim);
  padding: 0.1rem 0.25rem;
  border-radius: 2px;
}

.lang-btn.active {
  color: var(--text-main);
  font-weight: 700;
  background: var(--bg-surface);
}

/* ==========================================================================
   Header (Hybrid Studio Layout)
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background-color: rgba(242, 244, 245, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(18, 22, 26, 0.85);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-symbol {
  width: 32px;
  height: 48px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-symbol {
  transform: scale(1.05);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent-pine);
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-pine);
  color: #FFFFFF;
  border: 1px solid var(--accent-pine);
  box-shadow: 2px 2px 0 var(--border-strong);
}

.btn-primary:hover {
  background-color: var(--accent-pine-hover);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-strong);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border-strong);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  box-shadow: 2px 2px 0 var(--border-subtle);
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-strong);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border-subtle);
}

.tag-badge.active-pulse::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-pine);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   Hero Section (Studio Version)
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-main);
  max-width: 960px;
  margin-bottom: 1.75rem;
}

.hero-title .highlight-pine {
  color: var(--accent-pine);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Manifesto Section
   ========================================================================== */
.manifesto-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-pine);
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.manifesto-body p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.manifesto-quote-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  position: relative;
  box-shadow: var(--shadow-architectural);
}

.manifesto-quote-card::before {
  content: "”";
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--border-subtle);
  pointer-events: none;
}

.manifesto-quote-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.manifesto-quote-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-pine);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Principles / Value Pillars Section
   ========================================================================== */
.principles-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.principles-header {
  margin-bottom: 3rem;
  max-width: 680px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.principle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2rem 1.75rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.principle-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-architectural);
  transform: translateY(-2px);
}

.principle-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-pine);
  margin-bottom: 1rem;
  font-weight: 700;
}

.principle-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.principle-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Venture Showcase Section (Kita-Kit Focus)
   ========================================================================== */
.venture-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.venture-card-detailed {
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 3rem;
  box-shadow: var(--shadow-architectural);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.venture-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.venture-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.venture-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.venture-h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.venture-pitch {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.venture-specs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.venture-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.venture-spec-bullet {
  color: var(--accent-pine);
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.4;
}

.venture-action-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.venture-visual-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.code-snippet-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  border-radius: var(--radius-sm);
}

.code-snippet-box .comment {
  color: var(--text-dim);
}
.code-snippet-box .keyword {
  color: var(--accent-pine);
  font-weight: 700;
}
.code-snippet-box .value {
  color: var(--text-main);
}

/* ==========================================================================
   Contact & Location Section
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
}

.contact-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.contact-meta-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-meta-val a {
  color: var(--accent-pine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-meta-val a:hover {
  color: var(--accent-pine-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-pine);
}

/* ==========================================================================
   Version 4: Minimalist Digital Brand Card Specifics
   ========================================================================== */
.card-layout-wrapper {
  min-height: calc(100vh - 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.monolith-card {
  width: 100%;
  max-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-architectural);
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.card-brand-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-logo {
  width: 44px;
  height: 66px;
  flex-shrink: 0;
}

.card-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
}

.card-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-pine);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.card-manifesto {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.card-manifesto strong {
  color: var(--text-main);
}

.card-pillars-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.card-pillar-chip {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-pillar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-pine);
  text-transform: uppercase;
  font-weight: 700;
}

.card-pillar-value {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.card-venture-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.card-venture-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-venture-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-venture-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.card-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-contact-item a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.card-contact-item a:hover {
  color: var(--accent-pine);
}

.card-legal-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.card-legal-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

.card-legal-footer a:hover {
  color: var(--accent-pine);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .manifesto-grid, .venture-card-detailed, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-nav {
    display: none; /* simple lean layout on mobile */
  }

  .venture-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .card-pillars-compact {
    grid-template-columns: 1fr;
  }

  .monolith-card {
    padding: 2.25rem 1.5rem;
  }

  .version-control-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
