:root {
  --color-background-primary: #ffffff;
  --color-background-secondary: #f5f5f5;
  --color-text-primary: #222222;
  --color-text-secondary: #666666;
  --color-text-success: #1D9E75;
  --color-border-tertiary: #dddddd;
  --border-radius-md: 8px;
  --border-radius-lg: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-background-primary);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.narrow {
  max-width: 420px;
}

a { color: #378ADD; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.topbar .brand img {
  height: 28px;
  width: auto;
}

.btn {
  padding: 8px 16px !important;
  border-radius: 6px !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background: var(--color-background-primary) !important;
  color: var(--color-text-primary) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  text-decoration: none !important;
  display: inline-block;
}
.btn:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  transform: translateY(-1px) !important;
}
.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}
.btn-primary {
  background: #378ADD !important;
  color: white !important;
}
.btn-primary:hover { background: #2d75c4 !important; }
.btn-danger {
  background: #E24B4A !important;
  color: white !important;
}
.btn-danger:hover { background: #c93e3d !important; }
.btn-success {
  background: #639922 !important;
  color: white !important;
}
.btn-success:hover { background: #527f1c !important; }

.btn-lang {
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  padding: 8px 10px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: 6px;
  font-size: 14px;
}

.error-msg {
  color: var(--color-text-error, #E24B4A);
  font-size: 13px;
  margin-top: 0.5rem;
  min-height: 1em;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
}

.project-row .project-info { display: flex; flex-direction: column; gap: 2px; }
.project-row .project-name { font-weight: 600; font-size: 15px; }
.project-row .project-meta { font-size: 12px; color: var(--color-text-secondary); }
.project-row .project-actions { display: flex; gap: 8px; }

/* Landing page */
.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(55,138,221,0.16), transparent),
              linear-gradient(180deg, #f8fbff 0%, var(--color-background-primary) 100%);
  border-bottom: 1px solid var(--color-border-tertiary);
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #222 20%, #378ADD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.hero .btn-primary {
  font-size: 16px !important;
  padding: 13px 32px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(55,138,221,0.35) !important;
}

.hero-shot {
  margin: -1rem auto 0;
  max-width: 880px;
  padding: 0 1.5rem;
}

.hero-shot img {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-tertiary);
  box-shadow: 0 20px 50px -20px rgba(20,40,70,0.35);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 3rem 0;
}

.feature-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -12px rgba(20,40,70,0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 10px;
  background: rgba(55,138,221,0.12);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.site-footer {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-border-tertiary);
  margin-top: 1rem;
}

.site-footer p { margin: 0.25rem 0; }
