/* TAKAWASI Industrial Design System */
/* Tone: Industrial - Monochrome, Bold Typography, Clear Hierarchy */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-secondary: #141414;
  --text: #ffffff;
  --text-muted: #888888;
  --accent: #ff3c00;
  --border: #333333;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 12vw, 8rem); }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

p {
  color: var(--text-muted);
  max-width: 60ch;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.1em;
}

nav a {
  color: var(--text);
  margin-left: 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.lang-switch {
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero */
.hero {
  padding: 8rem 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .subtitle {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero p {
  margin-top: 2rem;
  font-size: 1.125rem;
}

/* Section */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 4rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text);
  display: inline-block;
}

/* Cards / Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2px;
  background: var(--border);
  margin: 2rem 0;
}

.project-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.3s;
}

.project-card:hover {
  background: var(--bg-secondary);
}

.project-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.project-card p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Badges */
.project-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.active {
  border-color: var(--accent);
  color: var(--accent);
}

.badge.new {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Buttons */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

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

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

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Footer */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--text);
  margin-right: 1.5rem;
}

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

/* Utility */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 4rem 1rem; }
  .container { padding: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
  nav { flex-direction: column; gap: 1rem; }
  nav a { margin-left: 0; margin-right: 1rem; }
}

/* Special: Feature highlight card */
.card-highlight {
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
}

/* Special: Stats/Numbers */
.stat {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Forms (for contact, etc) */
input, textarea, select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Table (for weather, kakutei tools) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

tr:hover {
  background: var(--bg-secondary);
}
