:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --ink: #112135;
  --ink-soft: #4e5d6c;
  --line: #dbe2ea;
  --brand: #0b8f8c;
  --brand-dark: #065f63;
  --accent: #ff7a18;
  --accent-soft: #ffd6b6;
  --ok: #278b50;
  --warning: #b4690e;
  --danger: #b33c3c;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px rgba(18, 26, 41, 0.14);
  --shadow-sm: 0 8px 24px rgba(18, 26, 41, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 700px at 90% -20%, #d3f4f3 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 100%, #ffe6d2 0%, transparent 65%), var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.brand {
  font-family: "Outfit", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.5;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 4%;
  background: #a8e8e7;
}

.orb-2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -100px;
  background: #ffd1ac;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: stretch;
  padding: 44px 0 24px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0 0 16px;
}

.hero-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 58ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: var(--brand-dark);
  margin: 0 0 10px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  border: none;
  background: linear-gradient(135deg, var(--brand), #00a7a4);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #b8e6e6;
}

.hero-panel {
  background: linear-gradient(140deg, #12324a, #0d5f5c);
  border-radius: var(--radius-lg);
  color: #ebfcfc;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-panel h3 {
  margin-top: 0;
}

.hero-panel ul {
  padding-left: 18px;
  color: #cceeee;
}

.tiny {
  font-size: 0.9rem;
  color: #b9eceb;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: #26d97f;
  box-shadow: 0 0 0 6px rgba(38, 217, 127, 0.2);
  margin-right: 6px;
}

.section-head h2,
.section-head h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
  color: var(--ink-soft);
  max-width: 66ch;
}

.cards-section {
  padding: 40px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.app-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.app-card-body {
  padding: 18px;
}

.app-card .tag {
  color: var(--brand-dark);
  font-weight: 600;
}

.app-link {
  margin-top: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chips span {
  font-size: 0.8rem;
  background: #f1f7fb;
  border: 1px solid #d8e3ec;
  padding: 4px 9px;
  border-radius: 999px;
}

.pipeline {
  padding: 30px;
  margin: 30px auto 70px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fff 0%, #fff3e8 100%);
  border: 1px solid #f0d9c3;
  box-shadow: var(--shadow-sm);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.support-bg {
  background: radial-gradient(950px 500px at 100% -10%, #dbf2f2, transparent 60%),
    radial-gradient(650px 420px at -5% 100%, #ffe8d5, transparent 65%), #f8f9fc;
}

.form-wrap,
.simple-card,
.ticket-layout,
.admin-layout {
  padding-bottom: 50px;
}

.support-form,
.simple-card,
.ticket-meta,
.ticket-thread,
.table-wrap,
.toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.support-form,
.simple-card,
.ticket-thread,
.ticket-meta,
.table-wrap,
.toolbar {
  padding: 20px;
}

.support-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e3;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #96dddb;
  border-color: #8fd4d2;
}

.alert {
  background: #fff7f3;
  border: 1px solid #f0cfbb;
  color: #874210;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

small {
  color: var(--ink-soft);
}

.simple-card {
  margin-top: 80px;
  max-width: 720px;
}

.ticket-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
}

.status-pill {
  background: #eef5fa;
  border: 1px solid #d9e4ee;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.status-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.messages {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.message {
  border: 1px solid #dae4ed;
  border-radius: 12px;
  padding: 12px;
}

.message.user {
  background: #f8fbff;
}

.message.admin {
  background: #f2fcf7;
  border-color: #c8e8d9;
}

.message-author {
  margin: 0;
  font-weight: 700;
}

.message-date {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.attachment-list {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.attachment-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d4d68;
}

.attachment-item {
  border: 1px solid #d8e2eb;
  background: #f7fbff;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.attachment-item:hover {
  border-color: #a7c6de;
}

.attachment-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d8e2eb;
  max-width: 320px;
  background: #eef4f9;
}

.attachment-thumb img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.turnstile-wrap {
  padding: 8px 0;
}

.upload-zone {
  border: 1px dashed #9ab8ce;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.upload-zone.is-dragover {
  border-color: #3f9dc9;
  background: #eaf7ff;
}

.upload-zone-title {
  font-weight: 700;
}

.upload-zone-hint {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.upload-input {
  margin-top: 4px;
}

.upload-list {
  display: grid;
  gap: 6px;
}

.upload-file {
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.upload-empty {
  color: var(--ink-soft);
}

.upload-progress {
  height: 10px;
  background: #e4edf5;
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b8f8c, #00a7a4);
  transition: width 0.15s ease;
}

.upload-progress-label {
  color: #1c5f82;
  font-weight: 600;
}

.app-detail-page {
  padding-bottom: 60px;
}

.app-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin: 18px 0 24px;
}

.tagline {
  margin-top: 0;
  color: #1e5a7e;
  font-weight: 700;
}

.summary {
  color: var(--ink-soft);
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.detail-card h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.detail-card p {
  color: var(--ink-soft);
}

.cards-grid.compact {
  grid-template-columns: repeat(2, 1fr);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e4eaf0;
  text-align: left;
}

th {
  font-size: 0.9rem;
  color: #2c445a;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.65s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.32s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cards-grid.compact {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
