@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg-start: #fff7ed;
  --bg-mid: #fef3c7;
  --bg-end: #e0f2fe;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --ink: #102a43;
  --muted: #5a718c;
  --line: rgba(16, 42, 67, 0.12);
  --brand: #0f766e;
  --brand-2: #0ea5e9;
  --brand-dark: #115e59;
  --danger: #dc2626;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -5%, rgba(14, 165, 233, 0.18), transparent 60%),
    radial-gradient(900px 420px at -5% 110%, rgba(15, 118, 110, 0.16), transparent 60%),
    linear-gradient(140deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
}

header {
  text-align: center;
  padding: 34px 16px 18px;
  animation: slideIn 0.45s ease;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
}

h2 {
  font-size: clamp(20px, 2.4vw, 30px);
}

main {
  width: min(80vw, 1800px);
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: grid;
  gap: 14px;
}

.landing-main {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 28px;
  padding: 28px;
}

.landing-header {
  text-align: center;
}

.landing-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.landing-grid {
  width: min(980px, 94vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-actions {
  display: flex;
  justify-content: center;
}

.landing-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #11415f;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  min-height: 136px;
  border-radius: 20px;
  border: 1px solid rgba(17, 65, 95, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8));
  box-shadow: 0 14px 36px rgba(16, 42, 67, 0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cardIn 0.35s ease both;
}

.landing-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.18);
}

.landing-tile-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.login-card {
  width: min(440px, 92vw);
  text-align: center;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.login-logo {
  display: block;
  width: min(300px, 72%);
  margin: 4px auto 10px;
  height: auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.08);
  animation: cardIn 0.25s ease both;
}

form {
  display: grid;
  gap: 10px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

textarea {
  min-height: 68px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 11px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.list {
  min-height: 140px;
  display: grid;
  gap: 10px;
}

.task {
  border: 1px solid rgba(16, 42, 67, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.task-meta {
  color: var(--muted);
  font-size: 13px;
}

.task-description {
  margin: 8px 0;
  font-size: 14px;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.delete-btn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

fieldset {
  border: 1px solid rgba(16, 42, 67, 0.14);
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  background: rgba(255, 255, 255, 0.65);
}

legend {
  font-weight: 700;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(16, 42, 67, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.messages-layout {
  grid-template-columns: 320px 1fr;
}

.users-pane {
  display: grid;
  gap: 8px;
}

.user-item {
  text-align: left;
  color: var(--ink);
  border: 1px solid rgba(16, 42, 67, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.user-item span {
  color: var(--muted);
}

.user-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.user-item.active span {
  color: rgba(255, 255, 255, 0.9);
}

.messages-pane {
  min-height: 360px;
  max-height: 480px;
  overflow: auto;
  border: 1px solid rgba(16, 42, 67, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
  align-content: start;
}

.message-item {
  width: fit-content;
  max-width: 80%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 67, 0.14);
  background: #fff;
}

.message-item.mine {
  margin-left: auto;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.message-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.message-item.mine small {
  color: rgba(255, 255, 255, 0.85);
}

.message-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.task-form-card h2 {
  margin-bottom: 10px;
}

.task-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.task-form-grid textarea {
  grid-column: span 3;
}

.task-form-grid button {
  align-self: end;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid textarea {
  grid-column: span 2;
}

.task-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.view-tab {
  background: #f4f4f8;
  color: #2d3142;
  border: 1px solid rgba(45, 49, 66, 0.16);
}

.view-tab.active {
  color: #fff;
  border-color: transparent;
  background: #4a154b;
}

.project-filter {
  width: 220px;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}

.modal-card {
  width: min(980px, 98vw);
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  background: #fff;
  padding: 14px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-card-task {
  width: min(1100px, 98vw);
  border-radius: 16px;
  padding: 16px;
}

.modal-card-subtask {
  width: min(720px, 96vw);
}

.task-modal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.task-modal-grid textarea {
  grid-column: span 3;
  min-height: 170px;
}

.subtask-cell {
  display: grid;
  gap: 6px;
  align-content: start;
}

.subtask-btn {
  background: #fff;
  color: #4a154b;
  border: 1px solid rgba(74, 21, 75, 0.26);
  width: 100%;
}

.subtask-summary {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.modal-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.operator-vodafone {
  border-color: rgba(227, 6, 19, 0.45) !important;
  background: linear-gradient(180deg, #fff, #fff5f5) !important;
}

.operator-orange {
  border-color: rgba(255, 121, 0, 0.45) !important;
  background: linear-gradient(180deg, #fff, #fff9f2) !important;
}

.operator-telekom {
  border-color: rgba(226, 0, 116, 0.45) !important;
  background: linear-gradient(180deg, #fff, #fdf3f8) !important;
}

.operator-digi {
  border-color: rgba(0, 67, 206, 0.45) !important;
  background: linear-gradient(180deg, #fff, #f3f7ff) !important;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 14px;
  background: #fff;
}

.task-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.task-layout.details-open {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
}

.card-soft {
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.task-details h3 {
  margin-bottom: 4px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.task-details h4 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-grid span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-grid strong {
  font-size: 14px;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1650px;
}

.task-table th,
.task-table td {
  border-bottom: 1px solid #eceff6;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.task-table tr.selected-row {
  background: #eef6ff;
}

.task-table thead th {
  color: #6b7280;
  font-weight: 600;
  font-size: 13px;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.status-cell {
  width: 140px;
  margin-bottom: 6px;
}

.tiny-delete {
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  background: #ef4444;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #374151;
}

.pill.warn {
  background: #fef3c7;
  color: #92400e;
}

.pill.danger {
  background: #fee2e2;
  color: #991b1b;
}

.pill.ok {
  background: #dcfce7;
  color: #166534;
}

.empty-row {
  text-align: center;
  color: #6b7280;
}

.comments-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.comment-item {
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: #f9fbff;
}

.comment-author {
  font-weight: 700;
  font-size: 13px;
}

.comment-text {
  margin-top: 4px;
  font-size: 14px;
}

.comment-time {
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
}

.comment-form {
  margin-top: 8px;
  gap: 8px;
}

.comment-form textarea {
  min-height: 76px;
}

.task-page {
  background: #f8f8f7;
}

.task-page .task-header {
  padding: 18px 0 10px;
  text-align: left;
  width: min(96vw, 2200px);
  margin: 0 auto;
}

.task-page .task-header-top {
  margin-bottom: 8px;
}

.task-page .task-header h1 {
  font-size: clamp(34px, 3.7vw, 56px);
  margin-bottom: 4px;
}

.task-page .task-header p {
  margin: 0;
  color: #6b7280;
}

.task-main {
  width: min(96vw, 2200px);
  max-width: 2200px;
}

.task-page .card {
  background: #fff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  border-radius: 14px;
  padding: 12px;
}

.task-page .view-tab {
  border-radius: 8px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
}

.task-page .view-tab.active {
  background: #4a154b;
}

.task-page .project-filter {
  background: #fff;
}

.task-page .task-table {
  min-width: 1400px;
}

.task-page .task-table thead th {
  background: #fafaf9;
  color: #6b7280;
  border-bottom: 1px solid #e7e5e4;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.task-page .task-table td {
  border-bottom: 1px solid #f1f0ef;
  font-size: 13px;
}

.task-page .task-table tr:hover td {
  background: #fcfcfb;
}

.task-page .task-table tr.selected-row td {
  background: #f3f0ff;
}

.task-page .pill {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.task-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(460px, 95vw);
  background: rgba(15, 23, 42, 0.14);
  display: grid;
  justify-items: end;
  z-index: 60;
}

.drawer-panel {
  width: min(460px, 95vw);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e7e5e4;
  padding: 16px 16px 20px;
  overflow: auto;
  box-shadow: -12px 0 28px rgba(15, 23, 42, 0.12);
}

.task-page .detail-grid span {
  color: #6b7280;
}

.task-page .comments-list {
  background: #fafaf9;
}

.task-page .comment-item {
  background: #fff;
  border-color: #ecebea;
}

.landing-shell {
  width: min(80vw, 1800px);
  max-width: 1800px;
  margin: 0 auto;
  padding: 22px 18px 40px;
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: fixed;
  width: 52vw;
  height: 52vw;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-left {
  left: -18vw;
  bottom: -22vw;
  background: radial-gradient(circle at center, #f8bbd0 0%, #f3e8ff 50%, transparent 72%);
}

.hero-bg-right {
  right: -20vw;
  top: -22vw;
  background: radial-gradient(circle at center, #d9f99d 0%, #dbeafe 45%, transparent 72%);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 20px;
  text-align: left;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  font-size: 12px;
  color: #243b56;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #223f5a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.ghost-btn {
  background: #fff;
  color: #4c1d95;
  border: 1px solid rgba(76, 29, 149, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 8px 0 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.97;
  margin-bottom: 10px;
  max-width: 12ch;
}

.hero-sub {
  max-width: 56ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a {
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
}

.cta-primary {
  color: #fff;
  background: #4a154b;
}

.cta-secondary {
  color: #4a154b;
  border: 1px solid rgba(74, 21, 75, 0.3);
  background: #fff;
}

.hero-mock {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #4a154b;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 22, 53, 0.16);
}

.mock-bar {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: #4a154b;
}

.mock-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fda53f;
}

.mock-bar span:nth-child(2) {
  background: #2eb67d;
}

.mock-bar span:nth-child(3) {
  background: #36c5f0;
}

.mock-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
}

.mock-sidebar {
  color: #fff;
  background: linear-gradient(180deg, #4a154b, #611f69);
  padding: 14px;
}

.mock-sidebar h4 {
  font-size: 16px;
}

.mock-sidebar p {
  margin: 8px 0;
  opacity: 0.9;
  font-size: 14px;
}

.mock-content {
  padding: 14px;
  background: #f8f8fb;
}

.mock-content h3 {
  margin-bottom: 12px;
}

.mock-card {
  border: 1px solid #e1e3ec;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.modules-wrap {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 65, 95, 0.12);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(5px);
}

.modules-sub {
  margin: 0 0 12px;
  color: var(--muted);
}

.modules-wrap .landing-grid {
  width: 100%;
}

.modules-wrap .landing-tile {
  min-height: 98px;
  font-size: clamp(19px, 2.2vw, 26px);
}

.landing-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  main,
  .landing-shell {
    width: min(94vw, 94vw);
  }

  .task-main,
  .task-page .task-header {
    width: min(97vw, 97vw);
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .mock-grid {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .landing-tile {
    min-height: 94px;
    font-size: 28px;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .user-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-form-grid,
  .task-modal-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .task-form-grid textarea,
  .project-grid textarea {
    grid-column: auto;
  }

  .task-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .task-layout,
  .task-layout.details-open {
    grid-template-columns: 1fr;
  }

  .project-filter {
    width: 100%;
  }
}
