:root {
  --porthos-bg: #f5f9ff;
  --porthos-surface: #ffffff;
  --porthos-surface-alt: #f8fbff;
  --porthos-border: #e2e8f0;
  --porthos-border-strong: #d5deeb;
  --porthos-text: #1a202c;
  --porthos-muted: #718096;
  --porthos-primary: #22c55e;
  --porthos-primary-dark: #16a34a;
  --porthos-accent: #0f172a;
  --porthos-danger: #dc2626;
  --porthos-success-bg: #ecfdf3;
  --porthos-error-bg: #fef2f2;
  --porthos-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

html {
  background: var(--porthos-bg);
}

body {
  font-family: "Urbanist", sans-serif;
  color: var(--porthos-text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 20%),
    var(--porthos-bg);
}

a {
  color: inherit;
}

.porthos-marketing-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.porthos-marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--porthos-shadow);
  backdrop-filter: blur(18px);
}

.porthos-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.porthos-brand img {
  width: 38px;
  height: 38px;
}

.porthos-brand-copy {
  display: grid;
  gap: 3px;
}

.porthos-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.porthos-brand-meta {
  font-size: 0.78rem;
  color: var(--porthos-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.porthos-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.porthos-nav-links a,
.porthos-nav-links button {
  border: 0;
  background: transparent;
  color: var(--porthos-text);
  text-decoration: none;
}

.porthos-hero {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: 58px 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.93)),
    var(--porthos-surface);
  box-shadow: var(--porthos-shadow);
}

.porthos-hero::before,
.porthos-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.porthos-hero::before {
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: rgba(34, 197, 94, 0.1);
}

.porthos-hero::after {
  bottom: -120px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: rgba(59, 130, 246, 0.08);
}

.porthos-eyebrow {
  margin: 0 0 14px;
  color: var(--porthos-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 800;
}

.porthos-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.porthos-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.porthos-hero-copy p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--porthos-muted);
  font-size: 1.08rem;
}

.porthos-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.porthos-button,
.porthos-button-secondary,
.porthos-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.porthos-button {
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.22);
}

.porthos-button-secondary {
  color: var(--porthos-text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--porthos-border);
}

.porthos-button-ghost {
  color: var(--porthos-text);
  background: transparent;
  border: 1px solid transparent;
}

.porthos-button:hover,
.porthos-button-secondary:hover,
.porthos-button-ghost:hover {
  transform: translateY(-1px);
}

.porthos-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.porthos-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #334155;
  font-size: 0.93rem;
  font-weight: 700;
}

.porthos-showcase,
.porthos-section-card,
.porthos-metric-card,
.porthos-app-panel,
.porthos-login-card,
.porthos-step-pane,
.porthos-stat-card {
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--porthos-shadow);
}

.porthos-showcase {
  padding: 24px;
}

.porthos-grid-3,
.porthos-grid-2 {
  display: grid;
  gap: 22px;
}

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

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

.porthos-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.porthos-channel-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid var(--porthos-border);
}

.porthos-channel-card img {
  width: 100%;
  max-width: 128px;
  height: 60px;
  object-fit: contain;
}

.porthos-dashboard-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 24px;
}

.porthos-metric-card,
.porthos-stat-card {
  padding: 22px;
}

.porthos-stat-value {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.porthos-muted {
  color: var(--porthos-muted);
}

.porthos-section {
  margin-top: 28px;
}

.porthos-section-card {
  padding: 28px;
}

.porthos-section-card h2,
.porthos-app-panel h2,
.porthos-login-card h1,
.porthos-login-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.porthos-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--porthos-muted);
}

.porthos-list li + li {
  margin-top: 8px;
}

.porthos-app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.porthos-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--porthos-border);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.porthos-sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.porthos-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.porthos-sidebar-link.is-active,
.porthos-sidebar-link:hover {
  background: #ecfdf3;
  color: #166534;
}

.porthos-sidebar-section {
  margin-top: 26px;
}

.porthos-sidebar-label {
  margin: 0 0 10px;
  color: var(--porthos-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.porthos-content {
  padding: 28px;
}

.porthos-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.porthos-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.porthos-app-panel {
  padding: 24px;
}

.porthos-filter-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--porthos-border);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.9);
}

.porthos-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.porthos-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.porthos-kpi-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid var(--porthos-border);
}

.porthos-kpi-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.porthos-kpi-card span {
  display: block;
  margin-top: 10px;
  color: var(--porthos-muted);
  font-weight: 600;
}

.porthos-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.porthos-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.porthos-table th,
.porthos-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--porthos-border);
  vertical-align: top;
  text-align: left;
}

.porthos-table th {
  color: var(--porthos-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.porthos-table td {
  color: #334155;
}

.porthos-table strong {
  color: var(--porthos-text);
}

.porthos-progress {
  width: 100%;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.porthos-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.porthos-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 800;
}

.porthos-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.porthos-field {
  display: grid;
  gap: 8px;
}

.porthos-field label,
.porthos-field > span {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.porthos-field input,
.porthos-field select,
.porthos-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--porthos-border);
  background: #ffffff;
  color: var(--porthos-text);
  font: inherit;
}

.porthos-field textarea {
  min-height: 120px;
  resize: vertical;
}

.porthos-upload-field {
  margin-top: 22px;
}

.porthos-upload-field input[type="file"] {
  min-height: auto;
  padding: 14px;
  cursor: pointer;
}

.porthos-field-hint {
  margin: 0;
  color: var(--porthos-muted);
  font-size: 0.9rem;
}

.porthos-field input:focus,
.porthos-field select:focus,
.porthos-field textarea:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.porthos-flash,
.porthos-note {
  padding: 14px 16px;
  border-radius: 18px;
  margin-top: 18px;
  font-weight: 600;
}

.porthos-flash.success {
  border: 1px solid #bbf7d0;
  background: var(--porthos-success-bg);
  color: #166534;
}

.porthos-flash.error {
  border: 1px solid #fecaca;
  background: var(--porthos-error-bg);
  color: #991b1b;
}

.porthos-note {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.porthos-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.porthos-step {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--porthos-border);
  background: #ffffff;
}

.porthos-step small {
  display: block;
  color: var(--porthos-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.porthos-step strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--porthos-text);
}

.porthos-step.is-active {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(180deg, #ffffff, #ecfdf3);
}

.porthos-step-pane {
  display: none;
  margin-top: 22px;
  padding: 24px;
}

.porthos-step-pane.is-active {
  display: block;
}

.porthos-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.porthos-channel-inline {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.porthos-channel-inline .porthos-channel-card {
  min-height: 92px;
  padding: 12px;
}

.porthos-channel-inline .porthos-channel-card img {
  max-width: 108px;
  height: 44px;
}

.porthos-inline-stack {
  display: grid;
  gap: 12px;
}

.porthos-notification-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.porthos-notification-card {
  padding: 18px 20px;
  border: 1px solid var(--porthos-border);
  border-radius: 20px;
  background: #ffffff;
}

.porthos-notification-card.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.porthos-notification-card.is-info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.porthos-notification-card p {
  margin: 8px 0 0;
  color: var(--porthos-text);
}

.porthos-notification-card strong a,
.porthos-table strong a {
  color: inherit;
  text-decoration: none;
}

.porthos-notification-card strong a:hover,
.porthos-table strong a:hover {
  text-decoration: underline;
}

.porthos-notification-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--porthos-text);
}

.porthos-notification-header span {
  color: var(--porthos-muted);
  font-size: 0.9rem;
}

.porthos-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.porthos-timeline-item {
  padding: 18px 20px;
  border: 1px solid var(--porthos-border);
  border-radius: 20px;
  background: #ffffff;
}

.porthos-timeline-item strong {
  display: block;
  color: var(--porthos-text);
}

.porthos-timeline-item span {
  display: block;
  margin-top: 6px;
  color: var(--porthos-muted);
  font-size: 0.92rem;
}

.porthos-timeline-item p {
  margin: 10px 0 0;
  color: var(--porthos-text);
}

.porthos-footer-copy {
  margin-top: 22px;
  color: var(--porthos-muted);
  font-size: 0.94rem;
}

.porthos-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1000;
}

.porthos-modal.is-open {
  display: flex;
}

.porthos-modal-card {
  width: min(100%, 760px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--porthos-shadow);
}

.porthos-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--porthos-border);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.porthos-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
}

.porthos-login-panel,
.porthos-login-visual {
  padding: 48px 32px;
}

.porthos-login-panel {
  display: flex;
  flex-direction: column;
}

.porthos-login-card {
  width: min(100%, 520px);
  margin: auto;
  padding: 30px;
}

.porthos-login-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f0f9ff, #eff6ff);
}

.porthos-login-visual img {
  width: min(100%, 520px);
  height: auto;
}

.porthos-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.porthos-hidden {
  display: none;
}

@media (max-width: 1200px) {
  .porthos-grid-3,
  .porthos-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .porthos-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .porthos-channel-inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .porthos-marketing-nav,
  .porthos-hero,
  .porthos-section-card,
  .porthos-app-panel,
  .porthos-login-card {
    border-radius: 24px;
  }

  .porthos-hero-grid,
  .porthos-grid-2,
  .porthos-dashboard-preview,
  .porthos-form-grid,
  .porthos-login-shell {
    grid-template-columns: 1fr;
  }

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

  .porthos-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--porthos-border);
  }
}

@media (max-width: 768px) {
  .porthos-marketing-shell,
  .porthos-content {
    padding: 18px 14px 34px;
  }

  .porthos-marketing-nav,
  .porthos-topbar,
  .porthos-step-actions,
  .porthos-nav-links,
  .porthos-topbar-actions,
  .porthos-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .porthos-hero {
    padding: 34px 20px;
  }

  .porthos-showcase,
  .porthos-section-card,
  .porthos-app-panel,
  .porthos-step-pane,
  .porthos-modal-card,
  .porthos-login-card {
    padding: 20px;
  }

  .porthos-grid-3,
  .porthos-kpi-grid,
  .porthos-filter-grid,
  .porthos-stepper,
  .porthos-channel-grid,
  .porthos-channel-inline {
    grid-template-columns: 1fr;
  }

  .porthos-login-panel,
  .porthos-login-visual {
    padding: 28px 18px;
  }
}
