:root {
  --color-primary: #1e3a8a;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #16a34a;
  --color-error: #dc2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}

header.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
}
.brand-link .logo {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  background: var(--color-primary);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.icon-link {
  display: flex;
  align-items: center;
}
.icon {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.25rem;
}

.section {
  padding: 4rem 1rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
}
.container.narrow {
  max-width: 480px;
}
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}
.btn {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: #162c6d;
}
.btn-block {
  width: 100%;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
form label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}
form input,
form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font: inherit;
}
form textarea {
  resize: vertical;
  min-height: 120px;
}
.success-message {
  color: var(--color-success);
}
.error-message {
  color: var(--color-error);
}
footer.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1rem 2rem;
  text-align: center;
}
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.footer-links a {
  display: flex;
  align-items: center;
}
