/* VibeLabCollab — Brand Foundation */

:root {
  --bg:           #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary:  #1a1a1a;
  --coral:        #E8735A;
  --coral-light:  #F09080;
  --coral-dark:   #C45A44;
  --text:         #f0ede8;
  --text-muted:   #8a8680;
  --text-faint:   #3a3835;
  --border:       #222220;
  --border-light: #2e2e2a;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)' opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 50;
}

h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--coral); }

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

header nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

header .logo {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: auto;
}

header nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

header nav a:hover { color: var(--text); }

header .btn-nav {
  font-size: 0.8125rem;
  padding: 0.375rem 1rem;
  background: var(--coral);
  color: var(--bg);
  font-weight: 500;
}

header .btn-nav:hover { background: var(--coral-light); color: var(--bg); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}

.btn-primary { background: var(--coral); color: var(--bg); }
.btn-primary:hover { background: var(--coral-light); color: var(--bg); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border-light); }
.card a.card { display: block; }

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid var(--coral-dark);
  padding: 0.2rem 0.5rem;
}

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); }

/* Hero section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
  max-width: 42rem;
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }

.hero .body { margin-top: 2.5rem; color: var(--text-muted); font-size: 1.125rem; font-weight: 300; line-height: 1.8; }
.hero .body p + p { margin-top: 1rem; }

.hero .cta { margin-top: 3.5rem; }

/* Section cards grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
}

.section-grid .card {
  background: var(--bg);
  border: none;
  padding: 3rem;
}

.section-grid .card:hover { background: var(--bg-secondary); }
.section-grid .card h2 { margin-top: 1rem; font-size: 1.5rem; }
.section-grid .card p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* Stub pages */
.stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: var(--text-muted);
  gap: 1rem;
}

.stub h1 { font-size: 2rem; color: var(--text); }

/* Forms */
.form-page {
  max-width: 28rem;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.form-page h1 { font-size: 1.75rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.4rem; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--text-muted); }

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #2a1010;
  border: 1px solid #5a2020;
  color: #f08080;
  font-size: 0.875rem;
}

.form-success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #0a2a0a;
  border: 1px solid #205a20;
  color: #80c080;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .hero { min-height: 80vh; }
  footer { flex-direction: column; text-align: center; }
}
